From 4b5f215d7a690195babd9657889fd4b797ba547f Mon Sep 17 00:00:00 2001 From: Nicola Ferraro Date: Fri, 8 May 2020 15:04:17 +0200 Subject: [PATCH] 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 a0b0e9c78c..74956ce7e6 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)