Skip to content

Commit

Permalink
Add integration test for odo list namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
valaparthvi committed Dec 4, 2022
1 parent ffe2183 commit 62044cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration/cmd_namespace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ ComponentSettings:
})

Describe("list "+commandName, func() {
It("should fail, without cluster", Label(helper.LabelNoCluster), func() {
out := helper.Cmd("odo", "list", commandName).ShouldFail().Err()
Expect(out).To(ContainSubstring("Please ensure you have an active kubernetes context to your cluster."))
})

It(fmt.Sprintf("should successfully list all the %ss", commandName), func() {
Eventually(func() string {
out := helper.Cmd("odo", "list", commandName).ShouldPass().Out()
Expand Down

0 comments on commit 62044cb

Please sign in to comment.