Skip to content

Commit

Permalink
test: remove all decorators
Browse files Browse the repository at this point in the history
Signed-off-by: LukasAuerbeck <[email protected]>
  • Loading branch information
LukasAuerbeck committed Sep 22, 2023
1 parent 09d7f40 commit 696edb1
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion pkg/agent/agent_suite_test.go
Original file line number Diff line number Diff line change
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/agentserver/agentserver_suite_test.go
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 @@ -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 @@ -54,5 +54,5 @@ var _ = Describe("VaultKVSecretEngine Webhooks", func() {
}
Expect(K8sClient.Create(ctx, key)).To(Succeed())
})
}, 60)
})
})
2 changes: 1 addition & 1 deletion pkg/apis/heist.youniqx.com/v1alpha1/webhook_suite_test.go
Original file line number Diff line number Diff line change
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/vaultbinding/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 @@ -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 @@ -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 @@ -35,6 +35,6 @@ func TestAPIs(t *testing.T) {
}

var (
_ = BeforeSuite(Test.BeforeSuiteSetup, 60)
_ = BeforeSuite(Test.BeforeSuiteSetup)
_ = AfterSuite(Test.AfterSuiteTeardown)
)
2 changes: 1 addition & 1 deletion pkg/controllers/e2e_test/vaultkvengine/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 @@ -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)
})
})
2 changes: 1 addition & 1 deletion pkg/controllers/e2e_test/vaultkvsecret/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ func TestAPIs(t *testing.T) {
}

var (
_ = BeforeSuite(Test.BeforeSuiteSetup, 60)
_ = BeforeSuite(Test.BeforeSuiteSetup)
_ = AfterSuite(Test.AfterSuiteTeardown)
)
2 changes: 1 addition & 1 deletion pkg/controllers/e2e_test/vaultsyncsecret/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ func TestAPIs(t *testing.T) {
}

var (
_ = BeforeSuite(Test.BeforeSuiteSetup, 60)
_ = BeforeSuite(Test.BeforeSuiteSetup)
_ = AfterSuite(Test.AfterSuiteTeardown)
)
2 changes: 1 addition & 1 deletion pkg/controllers/e2e_test/vaulttransitengine/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ func TestAPIs(t *testing.T) {
}

var (
_ = BeforeSuite(Test.BeforeSuiteSetup, 60)
_ = BeforeSuite(Test.BeforeSuiteSetup)
_ = AfterSuite(Test.AfterSuiteTeardown)
)
2 changes: 1 addition & 1 deletion pkg/controllers/e2e_test/vaulttransitkey/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ func TestAPIs(t *testing.T) {
}

var (
_ = BeforeSuite(Test.BeforeSuiteSetup, 60)
_ = BeforeSuite(Test.BeforeSuiteSetup)
_ = AfterSuite(Test.AfterSuiteTeardown)
)
2 changes: 1 addition & 1 deletion pkg/controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func TestAPIs(t *testing.T) {
RunSpecs(t, "Controller Suite")
}

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

func BeforeSuiteSetup() func() {
return func() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/injector/injector_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,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/vault/e2e_test/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var _ = BeforeSuite(func() {
vaultAPI, err = vaultEnv.GetAPI()
Expect(err).NotTo(HaveOccurred())
Expect(vaultAPI).NotTo(BeNil())
}, 60)
})

var _ = AfterSuite(func() {
By("tearing down the test environment")
Expand Down

0 comments on commit 696edb1

Please sign in to comment.