Skip to content

Commit

Permalink
Create 2nd namespace for e2e test scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianZaccaria committed Nov 6, 2023
1 parent f3f7858 commit 8ceae8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,9 @@ var _ = Describe("AppWrapper E2E Test", func() {
appwrappersPtr := &appwrappers
defer cleanupTestObjectsPtr(context, appwrappersPtr)

namespaces := []string{"nstest1", "nstest2"}
namespaces := []string{"test", "test2"}
for _, ns := range namespaces {
context.namespace = ns
aw := createDeploymentAW(context, "aw-deployment-3", ns)
appwrappers = append(appwrappers, aw)

Expand Down
7 changes: 7 additions & 0 deletions test/e2e/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ func initTestContext() *context {
Name: cxt.namespace,
},
}, metav1.CreateOptions{})

// Create the second namespace: "test2"
_, err = cxt.kubeclient.CoreV1().Namespaces().Create(gcontext.Background(), &v1.Namespace{
ObjectMeta: metav1.ObjectMeta{
Name: "test2",
},
}, metav1.CreateOptions{})
// Expect(err).NotTo(HaveOccurred())

/* _, err = cxt.kubeclient.SchedulingV1beta1().PriorityClasses().Create(gcontext.Background(), &schedv1.PriorityClass{
Expand Down

0 comments on commit 8ceae8e

Please sign in to comment.