diff --git a/test/bats/e2e.bats b/test/bats/e2e.bats index 69574f0..3a8b7ae 100644 --- a/test/bats/e2e.bats +++ b/test/bats/e2e.bats @@ -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 }