This is an automated email from the ASF dual-hosted git repository. nferraro pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 4b5f215d7a690195babd9657889fd4b797ba547f Author: Nicola Ferraro <ni.ferr...@gmail.com> AuthorDate: Fri May 8 15:04:17 2020 +0200 Fix #1449: add e2e check on help option --- e2e/common/offline_commands_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/e2e/common/offline_commands_test.go b/e2e/common/offline_commands_test.go index a0b0e9c..74956ce 100644 --- a/e2e/common/offline_commands_test.go +++ b/e2e/common/offline_commands_test.go @@ -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)