This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 3ec92508e8c5b6f240dd71ccc06933c02a643af9 Author: John Poth <poth.j...@gmail.com> AuthorDate: Wed Jun 9 14:41:27 2021 +0200 chore #2132: Add unit test --- pkg/cmd/install_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/cmd/install_test.go b/pkg/cmd/install_test.go index aae198c..c0d0ed2 100644 --- a/pkg/cmd/install_test.go +++ b/pkg/cmd/install_test.go @@ -374,3 +374,11 @@ func TestInstallTolerationFlag(t *testing.T) { assert.Equal(t, "key1=value1:NoSchedule", installCmdOptions.Tolerations[0]) assert.Equal(t, "key2=value2:NoExecute", installCmdOptions.Tolerations[1]) } + +func TestInstallMavenExtension(t *testing.T) { + installCmdOptions, rootCmd, _ := initializeInstallCmdOptions(t) + _, err := test.ExecuteCommand(rootCmd, cmdInstall, + "--maven-extension", "fi.yle.tools:aws-maven:1.4.2") + assert.Nil(t, err) + assert.Equal(t, "fi.yle.tools:aws-maven:1.4.2", installCmdOptions.MavenExtensions[0]) +}