Skip to content

Commit

Permalink
Use volumeClaimTemplate for volumes in e2e tests
Browse files Browse the repository at this point in the history
That way, we make sure it works with PVC (and not only emptydir)

Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Dec 1, 2023
1 parent e4c60a4 commit 3dc876a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/e2e.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions test/e2e/resources/workspace-template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 250Mi

0 comments on commit 3dc876a

Please sign in to comment.