Skip to content

Commit

Permalink
tests adaptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jancis committed Jan 21, 2025
1 parent 5b7523d commit 3b2ee0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/cloud_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ func TestCloudLoginCmd(t *testing.T) {
// Custom kubeconfig
command := "cloud login --kubeconfig `echo \"TEST\" | base64` --kubeconfigpath tmpkubeconfig --debug; cat tmpkubeconfig; rm tmpkubeconfig"
environment := []string{}
testString := "TEST\n"
testString := `Command (not executed):
TEST
`
CliExecTest(t, command, environment, testString, true)

// Custom kubeconfig as env variable
Expand All @@ -23,7 +25,9 @@ func TestCloudLoginCmd(t *testing.T) {
// echo "TEST2" | base64 => "VEVTVDIK"
"KUBECTL_CONFIG=VEVTVDIK",
}
testString = "TEST2\n"
testString = `Command (not executed):
TEST2
`
CliExecTest(t, command, environment, testString, true)

// TODO: test gcp, aws and aks
Expand Down
2 changes: 2 additions & 0 deletions tests/release_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ func TestReleaseDeployCmd(t *testing.T) {
else
true
fi
rm -f helm-output.log
}
trap show_failing_pods ERR
Expand Down Expand Up @@ -308,6 +309,7 @@ func TestReleaseDeployCmd(t *testing.T) {
else
true
fi
rm -f helm-output.log
}
trap show_failing_pods ERR
Expand Down

0 comments on commit 3b2ee0a

Please sign in to comment.