Skip to content

Commit

Permalink
Fix #1449: add e2e check on help option
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro committed May 8, 2020
1 parent fd0449a commit aafb2db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions e2e/common/offline_commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ func TestKamelHelpTraitWorksOffline(t *testing.T) {
assert.Nil(t, traitCmd.Execute())
}

func TestKamelHelpOptionWorksOffline(t *testing.T) {
traitCmd := Kamel("run", "Xxx.java", "--help")
traitCmd.SetOut(ioutil.Discard)
assert.Nil(t, traitCmd.Execute())
}

func TestKamelCompletionWorksOffline(t *testing.T) {
bashCmd := Kamel("completion", "bash", "--config", "non-existent-kubeconfig-file")
bashCmd.SetOut(ioutil.Discard)
Expand Down

0 comments on commit aafb2db

Please sign in to comment.