Skip to content

Instantly share code, notes, and snippets.

@chrigl
Created June 3, 2022 11:25
Show Gist options
  • Save chrigl/91478ad5dfeeee5e3baba99c6ef708c3 to your computer and use it in GitHub Desktop.
Save chrigl/91478ad5dfeeee5e3baba99c6ef708c3 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -x
set -e
set -o pipefail
cd $GOPATH/src/k8s.io/cloud-provider-openstack
mkdir -p /var/log/csi-pod
# TODO(chrigl): No idea why both tests fail in CI. On a real OpenStack both pass.
/tmp/kubernetes/test/bin/e2e.test \
-storage.testdriver=tests/e2e/csi/cinder/test-driver.yaml \
-ginkgo.focus='External\s+Storage\s+\[Driver:\s+cinder.csi.openstack.org\]\s+\[Testpattern:\s+Dynamic\s+PV\s+\(block\s+volmode\)\]\s+multiVolume\s+\[Slow\]\s+should\s+access\s+to\s+two\s+volumes\s+with\s+the\s+same\s+volume\s+mode\s+and\s+retain\s+data\s+across\s+pod\s+recreation\s+on\s+the\s+same\s+node' \
-ginkgo.skip='\[Disruptive\]|\[Testpattern:\s+Dynamic\s+PV\s+\(default\s+fs\)\]\s+provisioning\s+should\s+mount\s+multiple\s+PV\s+pointing\s+to\s+the\s+same\s+storage\s+on\s+the\s+same\s+node|\[Testpattern:\s+Dynamic\s+PV\s+\(default\s+fs\)\]\s+provisioning\s+should\s+provision\s+storage\s+with\s+any\s+volume\s+data\s+source\s+\[Serial\]' \
-ginkgo.noColor \
-ginkgo.progress \
-ginkgo.v \
-test.timeout=0 \
-report-dir="/var/log/csi-pod" | tee "/var/log/csi-pod/cinder-csi-e2e.log"
# -ginkgo.focus='External.Storage' \
# -ginkgo.focus='External\s+Storage\s+\[Driver:\s+cinder.csi.openstack.org\]\s+\[Testpattern:\s+Dynamic\s+PV\s+\(filesystem\s+volmode\)\]\s+multiVolume\s+\[Slow\]\s+should\s+concurrently\s+access\s+the\s+volume\s+and\s+its\s+clone\s+from\s+pods\s+on\s+the\s+same\s+node\s+\[LinuxOnly\]\[Feature:VolumeSnapshotDataSource\]\[Feature:VolumeSourceXFS\]' \
# -ginkgo.focus='External\s+Storage\s+\[Driver:\s+cinder.csi.openstack.org\]\s+\[Testpattern:\s+Dynamic\s+PV\s+\(block\s+volmode\)\]\s+multiVolume\s+\[Slow\]\s+should\s+access\s+to\s+two\s+volumes\s+with\s+the\s+same\s+volume\s+mode\s+and\s+retain\s+data\s+across\s+pod\s+recreation\s+on\s+the\s+same\s+node' \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment