Full blown kubectl create job

This commit is contained in:
Maciej Szulik
2018-08-01 15:03:46 +02:00
parent 8e2d37ee63
commit 4ced88b162
5 changed files with 304 additions and 161 deletions

View File

@@ -574,6 +574,7 @@ runTests() {
if kube::test::if_supports_resource "${job}" ; then
record_command run_job_tests
record_command run_create_job_tests
fi
#################
@@ -721,7 +722,7 @@ runTests() {
output_message=$(kubectl auth can-i list jobs.batch/bar -n foo --quiet 2>&1 "${kube_flags[@]}")
kube::test::if_empty_string "${output_message}"
output_message=$(kubectl auth can-i get pods --subresource=log 2>&1 "${kube_flags[@]}"; echo $?)
kube::test::if_has_string "${output_message}" '0'