Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update module github.com/onsi/ginkgo to v2 #153

Merged
merged 2 commits into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/hashicorp/vault/sdk v0.10.0
github.com/mattbaird/jsonpatch v0.0.0-20230413205102-771768614e91
github.com/mitchellh/go-homedir v1.1.0
github.com/onsi/ginkgo v1.16.5
github.com/onsi/ginkgo/v2 v2.12.1
github.com/onsi/gomega v1.27.10
github.com/spf13/cobra v1.7.0
github.com/spf13/viper v1.16.0
Expand Down Expand Up @@ -40,12 +40,14 @@ require (
github.com/go-openapi/jsonpointer v0.19.6 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/swag v0.22.3 // indirect
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect
github.com/hashicorp/hcl v1.0.1-vault-5 // indirect
Expand All @@ -65,7 +67,6 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/nxadm/tail v1.4.8 // indirect
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_golang v1.15.1 // indirect
Expand All @@ -82,18 +83,18 @@ require (
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.8.0 // indirect
go.uber.org/zap v1.24.0 // indirect
golang.org/x/crypto v0.11.0 // indirect
golang.org/x/net v0.13.0 // indirect
golang.org/x/crypto v0.12.0 // indirect
golang.org/x/net v0.14.0 // indirect
golang.org/x/oauth2 v0.8.0 // indirect
golang.org/x/sys v0.12.0 // indirect
golang.org/x/text v0.11.0 // indirect
golang.org/x/text v0.12.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/tools v0.12.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.3.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
k8s.io/apiextensions-apiserver v0.27.2 // indirect
k8s.io/component-base v0.27.2 // indirect
Expand Down
47 changes: 14 additions & 33 deletions go.sum

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion hack/tools/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ require (
github.com/nunnatsa/ginkgolinter v0.13.5 // indirect
github.com/nxadm/tail v1.4.8 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/onsi/ginkgo/v2 v2.12.1 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
github.com/pkg/errors v0.9.1 // indirect
Expand Down Expand Up @@ -204,7 +205,7 @@ require (
golang.org/x/mod v0.12.0 // indirect
golang.org/x/net v0.14.0 // indirect
golang.org/x/sync v0.3.0 // indirect
golang.org/x/sys v0.11.0 // indirect
golang.org/x/sys v0.12.0 // indirect
golang.org/x/text v0.12.0 // indirect
golang.org/x/tools v0.12.0 // indirect
google.golang.org/protobuf v1.30.0 // indirect
Expand Down
7 changes: 4 additions & 3 deletions hack/tools/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+W
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE=
github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU=
github.com/onsi/ginkgo/v2 v2.11.0 h1:WgqUCUt/lT6yXoQ8Wef0fsNn5cAuMK7+KT9UFRz2tcU=
github.com/onsi/ginkgo/v2 v2.12.1 h1:uHNEO1RP2SpuZApSkel9nEh1/Mu+hmQe7Q+Pepg5OYA=
github.com/onsi/ginkgo/v2 v2.12.1/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o=
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI=
Expand Down Expand Up @@ -837,8 +838,8 @@ golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM=
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o=
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
Expand Down
4 changes: 2 additions & 2 deletions pkg/agent/agent_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"testing"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec"
heistv1alpha1 "github.com/youniqx/heist/pkg/apis/heist.youniqx.com/v1alpha1"
Expand Down Expand Up @@ -60,7 +60,7 @@ func TestAPIs(t *testing.T) {
RunSpecs(t, "Agent Suite")
}

var _ = BeforeSuite(BeforeSuiteSetup(), 60)
var _ = BeforeSuite(BeforeSuiteSetup())

func BeforeSuiteSetup() func() {
return func() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"os"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/youniqx/heist/pkg/agent"
heistv1alpha1 "github.com/youniqx/heist/pkg/apis/heist.youniqx.com/v1alpha1"
Expand Down
4 changes: 2 additions & 2 deletions pkg/agentserver/agentserver_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"testing"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec"
heistv1alpha1 "github.com/youniqx/heist/pkg/apis/heist.youniqx.com/v1alpha1"
Expand Down Expand Up @@ -63,7 +63,7 @@ func TestAPIs(t *testing.T) {
RunSpecs(t, "Agent Server Suite")
}

var _ = BeforeSuite(BeforeSuiteSetup(), 60)
var _ = BeforeSuite(BeforeSuiteSetup())

func BeforeSuiteSetup() func() {
return func() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/agentserver/agentserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"path/filepath"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/youniqx/heist/pkg/agent"
"github.com/youniqx/heist/pkg/agentserver"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package v1alpha1

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package v1alpha1

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down Expand Up @@ -126,5 +126,5 @@ var _ = Describe("VaultKVSecretEngine Webhooks", func() {
return K8sClient.Delete(ctx, engine)
}).Should(Succeed())
})
}, 60)
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package v1alpha1

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand All @@ -39,5 +39,5 @@ var _ = Describe("VaultKVSecretEngine Webhooks", func() {
}
Expect(K8sClient.Create(ctx, engine)).To(Succeed())
})
}, 60)
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ limitations under the License.
package v1alpha1

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/youniqx/heist/pkg/vault/transit"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -54,5 +54,5 @@ var _ = Describe("VaultKVSecretEngine Webhooks", func() {
}
Expect(K8sClient.Create(ctx, key)).To(Succeed())
})
}, 60)
})
})
4 changes: 2 additions & 2 deletions pkg/apis/heist.youniqx.com/v1alpha1/webhook_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"testing"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/youniqx/heist/pkg/managed"
"github.com/youniqx/heist/pkg/operator"
Expand Down Expand Up @@ -173,7 +173,7 @@ var _ = BeforeSuite(func() {

K8sClient = mgr.GetClient()
Expect(K8sClient).NotTo(BeNil())
}, 60)
})

var _ = AfterSuite(func() {
cancel()
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllers/e2e_test/test_commons.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"path/filepath"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec"
heistv1alpha1 "github.com/youniqx/heist/pkg/apis/heist.youniqx.com/v1alpha1"
Expand Down
4 changes: 2 additions & 2 deletions pkg/controllers/e2e_test/vaultbinding/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package vaultbinding
import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/youniqx/heist/pkg/controllers/e2e_test"
)
Expand All @@ -35,6 +35,6 @@ func TestAPIs(t *testing.T) {
}

var (
_ = BeforeSuite(Test.BeforeSuiteSetup, 60)
_ = BeforeSuite(Test.BeforeSuiteSetup)
_ = AfterSuite(Test.AfterSuiteTeardown)
)
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
heistv1alpha1 "github.com/youniqx/heist/pkg/apis/heist.youniqx.com/v1alpha1"
"github.com/youniqx/heist/pkg/managed"
Expand Down Expand Up @@ -333,5 +333,5 @@ var _ = Describe("VaultBinding Controller", func() {
By("Deleting the Auth Role if all bindings are deleted")
Expect(Test.K8sClient.Delete(context.TODO(), secondBinding)).To(Succeed())
Test.VaultEnv.KubernetesAuthRole(managed.KubernetesAuth, roleName).WithTimeout(5 * time.Minute).Should(BeNil())
}, 60)
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package vaultcertificateauthority
import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/youniqx/heist/pkg/controllers/e2e_test"
)
Expand All @@ -35,6 +35,6 @@ func TestAPIs(t *testing.T) {
}

var (
_ = BeforeSuite(Test.BeforeSuiteSetup, 60)
_ = BeforeSuite(Test.BeforeSuiteSetup)
_ = AfterSuite(Test.AfterSuiteTeardown)
)
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
heistv1alpha1 "github.com/youniqx/heist/pkg/apis/heist.youniqx.com/v1alpha1"
"github.com/youniqx/heist/pkg/controllers/common"
Expand Down
4 changes: 2 additions & 2 deletions pkg/controllers/e2e_test/vaultcertificaterole/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package vaultcertificaterole
import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/youniqx/heist/pkg/controllers/e2e_test"
)
Expand All @@ -35,6 +35,6 @@ func TestAPIs(t *testing.T) {
}

var (
_ = BeforeSuite(Test.BeforeSuiteSetup, 60)
_ = BeforeSuite(Test.BeforeSuiteSetup)
_ = AfterSuite(Test.AfterSuiteTeardown)
)
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
heistv1alpha1 "github.com/youniqx/heist/pkg/apis/heist.youniqx.com/v1alpha1"
"github.com/youniqx/heist/pkg/vault/pki"
Expand Down
4 changes: 2 additions & 2 deletions pkg/controllers/e2e_test/vaultkvengine/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package vaultkvengine
import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/youniqx/heist/pkg/controllers/e2e_test"
)
Expand All @@ -35,6 +35,6 @@ func TestAPIs(t *testing.T) {
}

var (
_ = BeforeSuite(Test.BeforeSuiteSetup, 60)
_ = BeforeSuite(Test.BeforeSuiteSetup)
_ = AfterSuite(Test.AfterSuiteTeardown)
)
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package vaultkvengine
import (
"context"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
heistv1alpha1 "github.com/youniqx/heist/pkg/apis/heist.youniqx.com/v1alpha1"
. "github.com/youniqx/heist/pkg/testhelper"
Expand Down Expand Up @@ -51,5 +51,5 @@ var _ = Describe("VaultKVSecretEngine Controller", func() {
Expect(Test.K8sClient.Delete(context.TODO(), engine)).To(Succeed())
Test.K8sEnv.Object(engine).Should(BeNil())
Test.VaultEnv.KvEngine(engine).Should(BeNil())
}, 60)
})
})
4 changes: 2 additions & 2 deletions pkg/controllers/e2e_test/vaultkvsecret/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package vaultkvsecret
import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/youniqx/heist/pkg/controllers/e2e_test"
)
Expand All @@ -35,6 +35,6 @@ func TestAPIs(t *testing.T) {
}

var (
_ = BeforeSuite(Test.BeforeSuiteSetup, 60)
_ = BeforeSuite(Test.BeforeSuiteSetup)
_ = AfterSuite(Test.AfterSuiteTeardown)
)
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"path/filepath"
"time"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
heistv1alpha1 "github.com/youniqx/heist/pkg/apis/heist.youniqx.com/v1alpha1"
. "github.com/youniqx/heist/pkg/testhelper"
Expand Down
4 changes: 2 additions & 2 deletions pkg/controllers/e2e_test/vaultsyncsecret/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package vaultsyncsecret
import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/youniqx/heist/pkg/controllers/e2e_test"
)
Expand All @@ -35,6 +35,6 @@ func TestAPIs(t *testing.T) {
}

var (
_ = BeforeSuite(Test.BeforeSuiteSetup, 60)
_ = BeforeSuite(Test.BeforeSuiteSetup)
_ = AfterSuite(Test.AfterSuiteTeardown)
)
Loading
Loading