Skip to content

Commit

Permalink
feat: workflow special cases - write (100MB) + read (limited) + read …
Browse files Browse the repository at this point in the history
…(DD) (#6228)

* workflow special cases - write (100MB)  + read (limited + read (DD)

* shell multi-line

* write-read workflow cleanup
  • Loading branch information
tkonieczny authored Mar 7, 2025
1 parent 8b8270b commit 78e7e84
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/special-cases/test-workflows/file-read-write.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: testworkflows.testkube.io/v1
kind: TestWorkflow
metadata:
name: write-read-100mb
labels:
core-tests: write-read
description: "Write 100 MB, read (redirected to /dev/null)"
spec:
container:
image: alpine:latest
steps:
- name: Run test
shell: |
apk add pv
echo "creating /data/random.txt"
dd if=/dev/zero bs=1M count=100 | tr '\0' 'A' | pv -L 10M > /data/random.txt
echo "finished creating file"
ls -lh /data/random.txt
echo "reading file"
pv -L 10M /data/random.txt > /dev/null
echo "finished reading file"
sleep 2
echo "reading file with DD"
dd if=/data/random.txt of=/dev/null bs=1M iflag=direct
echo "finished reading file"

0 comments on commit 78e7e84

Please sign in to comment.