Skip to content

Commit d0d2a80

Browse files
committed
upgrade to ginkgo v2
1 parent 0390fc7 commit d0d2a80

16 files changed

+16
-18
lines changed

go.mod

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/jstemmer/go-junit-report v0.9.1
88
github.com/mattfenwick/collections v0.0.8
99
github.com/olekukonko/tablewriter v0.0.4
10-
github.com/onsi/ginkgo v1.14.0
10+
github.com/onsi/ginkgo/v2 v2.1.4
1111
github.com/onsi/gomega v1.19.0
1212
github.com/pkg/errors v0.9.1
1313
github.com/sirupsen/logrus v1.8.1
@@ -25,7 +25,6 @@ require (
2525
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
2626
github.com/davecgh/go-spew v1.1.1 // indirect
2727
github.com/emicklei/go-restful v2.9.5+incompatible // indirect
28-
github.com/fsnotify/fsnotify v1.4.9 // indirect
2928
github.com/go-logr/logr v1.2.0 // indirect
3029
github.com/go-openapi/jsonpointer v0.19.5 // indirect
3130
github.com/go-openapi/jsonreference v0.19.5 // indirect
@@ -44,7 +43,6 @@ require (
4443
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4544
github.com/modern-go/reflect2 v1.0.2 // indirect
4645
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
47-
github.com/nxadm/tail v1.4.4 // indirect
4846
github.com/spf13/pflag v1.0.5 // indirect
4947
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect
5048
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
@@ -55,7 +53,6 @@ require (
5553
google.golang.org/appengine v1.6.7 // indirect
5654
google.golang.org/protobuf v1.27.1 // indirect
5755
gopkg.in/inf.v0 v0.9.1 // indirect
58-
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
5956
gopkg.in/yaml.v2 v2.4.0 // indirect
6057
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
6158
k8s.io/klog/v2 v2.60.1 // indirect

go.sum

+1
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108
274274
github.com/onsi/ginkgo v1.14.0 h1:2mOpI4JVVPBN+WQRa0WKH2eXR+Ey+uK4n7Zj0aYpIQA=
275275
github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY=
276276
github.com/onsi/ginkgo/v2 v2.1.4 h1:GNapqRSid3zijZ9H77KrgVG4/8KqiyRsxcSxe+7ApXY=
277+
github.com/onsi/ginkgo/v2 v2.1.4/go.mod h1:um6tUpWM/cxCK3/FK8BXqEiUMUwRgSM4JXG47RKZmLU=
277278
github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
278279
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
279280
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=

pkg/connectivity/printer_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package connectivity
22

33
import (
44
junit "github.com/jstemmer/go-junit-report/formatter"
5-
. "github.com/onsi/ginkgo"
5+
. "github.com/onsi/ginkgo/v2"
66
. "github.com/onsi/gomega"
77
)
88

pkg/connectivity/probe/resources_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package probe
22

33
import (
4-
. "github.com/onsi/ginkgo"
4+
. "github.com/onsi/ginkgo/v2"
55
. "github.com/onsi/gomega"
66
)
77

pkg/connectivity/probe/suite_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package probe
33
import (
44
"testing"
55

6-
. "github.com/onsi/ginkgo"
6+
. "github.com/onsi/ginkgo/v2"
77
. "github.com/onsi/gomega"
88
)
99

pkg/connectivity/suite_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package connectivity
33
import (
44
"testing"
55

6-
. "github.com/onsi/ginkgo"
6+
. "github.com/onsi/ginkgo/v2"
77
. "github.com/onsi/gomega"
88
)
99

pkg/connectivity/testcasestate_tests.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package connectivity
22

33
import (
44
"fmt"
5-
. "github.com/onsi/ginkgo"
5+
. "github.com/onsi/ginkgo/v2"
66
. "github.com/onsi/gomega"
77
)
88

pkg/generator/suite_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package generator
33
import (
44
"testing"
55

6-
. "github.com/onsi/ginkgo"
6+
. "github.com/onsi/ginkgo/v2"
77
. "github.com/onsi/gomega"
88
)
99

pkg/generator/testcasegenerator_tests.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package generator
22

33
import (
4-
. "github.com/onsi/ginkgo"
4+
. "github.com/onsi/ginkgo/v2"
55
. "github.com/onsi/gomega"
66
)
77

pkg/kube/ipaddress_tests.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package kube
22

33
import (
44
"fmt"
5-
. "github.com/onsi/ginkgo"
5+
. "github.com/onsi/ginkgo/v2"
66
. "github.com/onsi/gomega"
77
log "github.com/sirupsen/logrus"
88
v1 "k8s.io/api/networking/v1"

pkg/kube/labelselector_tests.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package kube
22

33
import (
4-
. "github.com/onsi/ginkgo"
4+
. "github.com/onsi/ginkgo/v2"
55
. "github.com/onsi/gomega"
66
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
77
)

pkg/kube/suite_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package kube
33
import (
44
"testing"
55

6-
. "github.com/onsi/ginkgo"
6+
. "github.com/onsi/ginkgo/v2"
77
. "github.com/onsi/gomega"
88
)
99

pkg/matcher/builder_tests.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package matcher
22

33
import (
44
"github.com/mattfenwick/cyclonus/pkg/kube/netpol"
5-
. "github.com/onsi/ginkgo"
5+
. "github.com/onsi/ginkgo/v2"
66
. "github.com/onsi/gomega"
77
v1 "k8s.io/api/core/v1"
88
networkingv1 "k8s.io/api/networking/v1"

pkg/matcher/policy_tests.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package matcher
22

33
import (
44
"github.com/mattfenwick/cyclonus/pkg/utils"
5-
. "github.com/onsi/ginkgo"
5+
. "github.com/onsi/ginkgo/v2"
66
. "github.com/onsi/gomega"
77
v1 "k8s.io/api/core/v1"
88
networkingv1 "k8s.io/api/networking/v1"

pkg/matcher/simplifier_tests.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package matcher
22

33
import (
44
"github.com/mattfenwick/cyclonus/pkg/kube/netpol"
5-
. "github.com/onsi/ginkgo"
5+
. "github.com/onsi/ginkgo/v2"
66
. "github.com/onsi/gomega"
77
v1 "k8s.io/api/core/v1"
88
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

pkg/matcher/suite_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package matcher
33
import (
44
"testing"
55

6-
. "github.com/onsi/ginkgo"
6+
. "github.com/onsi/ginkgo/v2"
77
. "github.com/onsi/gomega"
88
)
99

0 commit comments

Comments
 (0)