Skip to content

Commit

Permalink
test(e2e/charts): create and delete tenant once
Browse files Browse the repository at this point in the history
Signed-off-by: Massimiliano Giovagnoli <[email protected]>
  • Loading branch information
maxgio92 committed Feb 9, 2024
1 parent 3a0bbff commit ab1aaec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/charts/serviceaccount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var _ = Describe("Creating a new ServiceAccount", func() {
})

Context("set as owner of the Tenant", func() {
BeforeEach(func() {
BeforeAll(func() {
Expect(adminClient.Create(context.TODO(), &capsulev1beta2.Tenant{
ObjectMeta: metav1.ObjectMeta{
Name: TenantName,
Expand All @@ -66,7 +66,7 @@ var _ = Describe("Creating a new ServiceAccount", func() {
},
})).Should(Succeed())
})
AfterEach(func() {
AfterAll(func() {
Expect(adminClient.Delete(context.TODO(), &capsulev1beta2.Tenant{
ObjectMeta: metav1.ObjectMeta{
Name: TenantName,
Expand Down

0 comments on commit ab1aaec

Please sign in to comment.