Skip to content

Commit

Permalink
Update e2e.bats to not use interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoch authored Jun 4, 2024
1 parent fb7ec14 commit 3a37c70
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/bats/e2e.bats
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ SLEEP_TIME=10
sleep ${SLEEP_TIME}

# This test is looking inside our pod to the requested mount point
kubectl exec -it my-csi-app-inline -- ls /mnt/oras | grep container.sif
kubectl exec -t my-csi-app-inline -- ls /mnt/oras | grep container.sif
pod=$(kubectl get -n kube-system pods -o json | jq -r .items[].metadata.name | grep csi)
echo pod is ${pod}

# These tests are looking inside the csi driver pod!
# Top level has the namespace of the pod
kubectl exec -it -n kube-system ${pod} -c csi-oras-plugin -- ls /pv_data | grep default
kubectl exec -t -n kube-system ${pod} -c csi-oras-plugin -- ls /pv_data | grep default

# Next level is the container URI (repository name + tag)
kubectl exec -it -n kube-system ${pod} -c csi-oras-plugin -- ls /pv_data/default | grep ghcr-io-singularityhub-github-ci-latest
kubectl exec -t -n kube-system ${pod} -c csi-oras-plugin -- ls /pv_data/default | grep ghcr-io-singularityhub-github-ci-latest

# Next level is the container URI (repository name + tag)
kubectl exec -it -n kube-system ${pod} -c csi-oras-plugin -- ls /pv_data/default | grep ghcr-io-singularityhub-github-ci-latest
kubectl exec -t -n kube-system ${pod} -c csi-oras-plugin -- ls /pv_data/default | grep ghcr-io-singularityhub-github-ci-latest

# And then the container.sif
kubectl exec -it -n kube-system ${pod} -c csi-oras-plugin -- ls /pv_data/default/ghcr-io-singularityhub-github-ci-latest | grep container.sif
kubectl exec -t -n kube-system ${pod} -c csi-oras-plugin -- ls /pv_data/default/ghcr-io-singularityhub-github-ci-latest | grep container.sif
kubectl delete -f ${EXAMPLES_DIR}/pod.yaml
}

Expand Down

0 comments on commit 3a37c70

Please sign in to comment.