name: file-directory-upload
file_mounts:
~/${TEST_DIR}: ./${TEST_DIR}
~/static_dir: ./static_dir
~/${TEST_FILE}: ./${TEST_FILE}
~/static.txt: ./static.txt
resources:
cpus: 1
memory: 1
image_id: ubuntu
labels:
kueue.x-k8s.io/queue-name: user-queue
maxRunDurationSeconds: "600"
run: |
if [ -f ~/${TEST_DIR}/b.txt ]; then
echo "File exists"
else
echo "File does not exist"
exit 1
fi
if [ -f ~/static_dir/a.txt ]; then
echo "File exists"
else
echo "File does not exist"
exit 1
fi
if [ -f ~/${TEST_FILE} ]; then
echo "File exists"
else
echo "File does not exist"
exit 1
fi
if [ -f ~/static.txt ]; then
echo "File exists"
else
echo "File does not exist"
exit 1
fi