diff --git a/test/e2e-common.sh b/test/e2e-common.sh index 8d95a94afd..902b382dc3 100755 --- a/test/e2e-common.sh +++ b/test/e2e-common.sh @@ -199,7 +199,7 @@ run_test() { local desc="$1"; shift echo "Running $@" - $@ || fail_test "failed to $desc" + "$@" || fail_test "failed to $desc" echo } diff --git a/test/e2e-tests.sh b/test/e2e-tests.sh index 83dc3ea7fd..1b24e5ade8 100755 --- a/test/e2e-tests.sh +++ b/test/e2e-tests.sh @@ -111,4 +111,17 @@ run_test "show logs" tkn taskrun logs test-template-volume run_test "list pipelineresources" tkn resource list run_test "describe pipelineresource" tkn resource desc skaffold-git +# delete pipeline, pipelinerun, task, taskrun, and pipelineresource +run_test "delete pipeline" tkn pipeline delete output-pipeline -f +run_test "delete pipelinerun" tkn pipelinerun delete output-pipeline-run -f +run_test "delete resource" tkn resource delete skaffold-git -f +run_test "delete task" tkn task delete create-file -f +run_test "delete taskrun" tkn taskrun delete test-template-volume -f + +# confirm deletion (TODO: Add task test when added desc or logs to task command) +must_fail "describe deleted pipeline" tkn pipeline describe output-pipeline +must_fail "describe deleted pipelinerun" tkn pipelinerun describe output-pipeline-run +must_fail "describe deleted resource" tkn resource describe skaffold-git +must_fail "show logs deleted taskrun" tkn taskrun logs test-template-volume + success