Skip to content

Commit

Permalink
Add integration test to check flag is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Aug 4, 2023
1 parent 04aba8b commit e51734c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/integration/generic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ var _ = Describe("odo generic", func() {
BeforeEach(func() {
output = helper.Cmd("odo", "--help").ShouldPass().Out()
})
It("retuns full help contents including usage, examples, commands, utility commands, component shortcuts, and flags sections", func() {
It("returns full help contents including usage, examples, commands, utility commands, component shortcuts, and flags sections", func() {
helper.MatchAllInOutput(output, []string{"Usage:", "Examples:", "Main Commands:", "OpenShift Commands:", "Utility Commands:", "Flags:"})
helper.DontMatchAllInOutput(output, []string{"--kubeconfig"})
})
It("does not support the --kubeconfig flag", func() {
helper.DontMatchAllInOutput(output, []string{"--kubeconfig"})
})

})

When("running odo without subcommand and flags", func() {
Expand Down

0 comments on commit e51734c

Please sign in to comment.