Skip to content

Commit 5ae54d6

Browse files
committed
test(e2e/charts): create and delete tenant once
Signed-off-by: Massimiliano Giovagnoli <[email protected]>
1 parent 3a0bbff commit 5ae54d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/charts/serviceaccount_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var _ = Describe("Creating a new ServiceAccount", func() {
5050
})
5151

5252
Context("set as owner of the Tenant", func() {
53-
BeforeEach(func() {
53+
BeforeAll(func() {
5454
Expect(adminClient.Create(context.TODO(), &capsulev1beta2.Tenant{
5555
ObjectMeta: metav1.ObjectMeta{
5656
Name: TenantName,
@@ -66,7 +66,7 @@ var _ = Describe("Creating a new ServiceAccount", func() {
6666
},
6767
})).Should(Succeed())
6868
})
69-
AfterEach(func() {
69+
AfterAll(func() {
7070
Expect(adminClient.Delete(context.TODO(), &capsulev1beta2.Tenant{
7171
ObjectMeta: metav1.ObjectMeta{
7272
Name: TenantName,

0 commit comments

Comments
 (0)