Skip to content

Commit

Permalink
Add test case to validate no err is returned when cmd is kapp
Browse files Browse the repository at this point in the history
Signed-off-by: Devanshu <devanshu.d@broadcom.com>
  • Loading branch information
devanshuVmware committed Nov 18, 2024
1 parent 8185bfa commit 6566ae3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cli/pkg/kctrl/cmd/app/release/release_cmd_runner_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package release

import (
"os"
"os/exec"
"testing"

"github.com/stretchr/testify/require"
)

func TestReleaseCmdRunnerForKappCmd(t *testing.T) {
ReleaseCmdRunner := NewReleaseCmdRunner(os.Stdout, false, "", false, nil)
cmd := exec.Command("kapp", "deploy", "-f", "-", "-a", "pkg-test", "-y")
err := ReleaseCmdRunner.RunWithCancel(cmd, nil)
require.NoError(t, err)
}

0 comments on commit 6566ae3

Please sign in to comment.