migrate ginkgo to v2 (#8826)

* Migrate ginkgo to v2

* Update test/e2e/annotations/ipwhitelist.go

Co-authored-by: Jintao Zhang <tao12345666333@163.com>

* Update test/e2e/annotations/modsecurity/modsecurity.go

Co-authored-by: Jintao Zhang <tao12345666333@163.com>

* Update test/e2e/settings/access_log.go

Co-authored-by: Jintao Zhang <tao12345666333@163.com>

* remove unnecessary blank line

* re-order packages

* less change

Co-authored-by: Jintao Zhang <tao12345666333@163.com>
This commit is contained in:
Lien Li 2022-08-01 00:16:28 +08:00 committed by GitHub
parent 5e6093cf59
commit 5b0cc8edca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
129 changed files with 152 additions and 156 deletions

View file

@ -19,7 +19,8 @@ package settings
import (
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -21,7 +21,7 @@ import (
"net/http"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -22,7 +22,7 @@ import (
"strconv"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -20,7 +20,7 @@ import (
"regexp"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
"k8s.io/ingress-nginx/test/e2e/framework"

View file

@ -21,7 +21,7 @@ import (
"net/http"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
"k8s.io/ingress-nginx/test/e2e/framework"

View file

@ -22,7 +22,7 @@ import (
"fmt"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
appsv1 "k8s.io/api/apps/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View file

@ -21,7 +21,7 @@ import (
"net/http"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
appsv1 "k8s.io/api/apps/v1"
networking "k8s.io/api/networking/v1"

View file

@ -22,7 +22,7 @@ import (
"strings"
"github.com/gavv/httpexpect/v2"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"

View file

@ -21,7 +21,7 @@ import (
"net/http"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
"k8s.io/ingress-nginx/test/e2e/framework"

View file

@ -21,7 +21,7 @@ import (
"net/http"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
"k8s.io/ingress-nginx/test/e2e/framework"

View file

@ -24,7 +24,7 @@ import (
"net/http"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
appsv1 "k8s.io/api/apps/v1"

View file

@ -20,7 +20,7 @@ import (
"net/http"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -23,7 +23,7 @@ import (
"regexp"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View file

@ -21,7 +21,7 @@ import (
"strings"
"syscall"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -22,7 +22,7 @@ import (
"strconv"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -19,7 +19,7 @@ package settings
import (
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -23,7 +23,7 @@ import (
"strings"
"sync"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
appsv1 "k8s.io/api/apps/v1"
networkingv1 "k8s.io/api/networking/v1"

View file

@ -21,7 +21,7 @@ import (
"regexp"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -20,7 +20,7 @@ import (
"fmt"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -22,7 +22,7 @@ import (
"net/http"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View file

@ -20,7 +20,7 @@ import (
"net/http"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -19,7 +19,7 @@ package settings
import (
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -19,7 +19,7 @@ package settings
import (
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -19,7 +19,7 @@ package modsecurity
import (
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -19,7 +19,7 @@ package settings
import (
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -21,7 +21,7 @@ import (
"net/http"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/ingress-nginx/test/e2e/framework"

View file

@ -22,7 +22,7 @@ import (
"os/exec"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
corev1 "k8s.io/api/core/v1"
networking "k8s.io/api/networking/v1"

View file

@ -20,7 +20,7 @@ import (
"fmt"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -28,7 +28,7 @@ import (
"strings"
"syscall"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
"golang.org/x/crypto/ocsp"
appsv1 "k8s.io/api/apps/v1"

View file

@ -22,7 +22,7 @@ import (
"strings"
"time"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
"k8s.io/ingress-nginx/test/e2e/framework"

View file

@ -21,7 +21,7 @@ import (
"net/http"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -21,7 +21,7 @@ import (
"net/http"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"

View file

@ -21,7 +21,7 @@ import (
"net/http"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
appsv1 "k8s.io/api/apps/v1"

View file

@ -20,7 +20,7 @@ import (
"fmt"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -21,7 +21,7 @@ import (
"net/http"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -20,7 +20,7 @@ import (
"fmt"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -24,7 +24,7 @@ import (
"net"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View file

@ -20,7 +20,7 @@ import (
"fmt"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -20,7 +20,7 @@ import (
"fmt"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -19,7 +19,7 @@ package settings
import (
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -20,7 +20,7 @@ import (
"net/http"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -19,7 +19,7 @@ package settings
import (
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
networking "k8s.io/api/networking/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View file

@ -20,7 +20,7 @@ import (
"fmt"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -19,14 +19,15 @@ package settings
import (
"context"
"fmt"
"github.com/stretchr/testify/assert"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
"net/http"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/ingress-nginx/test/e2e/framework"
)

View file

@ -22,7 +22,7 @@ import (
"net/http"
"strings"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"
"k8s.io/ingress-nginx/test/e2e/framework"