Skip to content

Commit fc5b30f

Browse files
committed
tests adaptions
1 parent 5b7523d commit fc5b30f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tests/cloud_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ func TestCloudLoginCmd(t *testing.T) {
1414
// Custom kubeconfig
1515
command := "cloud login --kubeconfig `echo \"TEST\" | base64` --kubeconfigpath tmpkubeconfig --debug; cat tmpkubeconfig; rm tmpkubeconfig"
1616
environment := []string{}
17-
testString := "TEST\n"
17+
testString := `Command (not executed):
18+
TEST
19+
`
1820
CliExecTest(t, command, environment, testString, true)
1921

2022
// Custom kubeconfig as env variable
@@ -23,7 +25,9 @@ func TestCloudLoginCmd(t *testing.T) {
2325
// echo "TEST2" | base64 => "VEVTVDIK"
2426
"KUBECTL_CONFIG=VEVTVDIK",
2527
}
26-
testString = "TEST2\n"
28+
testString = `Command (not executed):
29+
TEST2
30+
`
2731
CliExecTest(t, command, environment, testString, true)
2832

2933
// TODO: test gcp, aws and aks

tests/release_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ func TestReleaseDeployCmd(t *testing.T) {
197197
else
198198
true
199199
fi
200+
rm -f helm-output.log
200201
}
201202
202203
trap show_failing_pods ERR
@@ -308,6 +309,7 @@ func TestReleaseDeployCmd(t *testing.T) {
308309
else
309310
true
310311
fi
312+
rm -f helm-output.log
311313
}
312314
313315
trap show_failing_pods ERR

0 commit comments

Comments
 (0)