Skip to content

Commit e636e86

Browse files
devanshuVmware100mik
authored andcommitted
Add test case to validate no err is returned when cmd is kapp
Signed-off-by: Devanshu <[email protected]>
1 parent eca9815 commit e636e86

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package release
2+
3+
import (
4+
"os"
5+
"os/exec"
6+
"testing"
7+
8+
"github.com/stretchr/testify/require"
9+
)
10+
11+
func TestReleaseCmdRunnerForKappCmd(t *testing.T) {
12+
ReleaseCmdRunner := NewReleaseCmdRunner(os.Stdout, false, "", false, nil)
13+
cmd := exec.Command("kapp", "deploy", "-f", "-", "-a", "pkg-test", "-y")
14+
err := ReleaseCmdRunner.RunWithCancel(cmd, nil)
15+
require.NoError(t, err)
16+
}

0 commit comments

Comments
 (0)