From 3dc876abe7ab87848398361a046e0a1babd88b02 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Fri, 1 Dec 2023 16:29:33 +0100 Subject: [PATCH] Use volumeClaimTemplate for volumes in e2e tests That way, we make sure it works with PVC (and not only emptydir) Signed-off-by: Vincent Demeester --- test/e2e/e2e.bats | 4 ++-- test/e2e/resources/workspace-template.yaml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 test/e2e/resources/workspace-template.yaml diff --git a/test/e2e/e2e.bats b/test/e2e/e2e.bats index b9fc15a..cdc2bae 100644 --- a/test/e2e/e2e.bats +++ b/test/e2e/e2e.bats @@ -7,13 +7,13 @@ source ./test/helper/helper.sh run kubectl delete taskrun --all assert_success - + run tkn task start git \ --param="URL=https://github.com/tektoncd/community.git" \ --param="DEPTH=1" \ --param="VERBOSE=true" \ --use-param-defaults \ - --workspace="name=output,emptyDir=" \ + --workspace name=output,volumeClaimTemplateFile=./test/e2e/resources/workspace-template.yaml \ --skip-optional-workspace \ --showlog >&3 assert_success diff --git a/test/e2e/resources/workspace-template.yaml b/test/e2e/resources/workspace-template.yaml new file mode 100644 index 0000000..9073255 --- /dev/null +++ b/test/e2e/resources/workspace-template.yaml @@ -0,0 +1,6 @@ +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 250Mi