Skip to content

Commit

Permalink
test: install SnapshotClass in external e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wozniakjan committed Mar 18, 2023
1 parent b6adee9 commit 23a969f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/external-e2e/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ setup_e2e_binaries() {
# test on alternative driver name
sed -i "s/nfs.csi.k8s.io/$DRIVER.csi.k8s.io/g" deploy/example/storageclass-nfs.yaml
# install csi driver
mkdir -p /tmp/csi && cp deploy/example/storageclass-nfs.yaml /tmp/csi/storageclass.yaml
mkdir -p /tmp/csi
cp deploy/example/storageclass-nfs.yaml /tmp/csi/storageclass.yaml
cp deploy/example/snapshotclass-nfs.yaml /tmp/csi/snapshotclass.yaml
make e2e-bootstrap
make install-nfs-server
}
Expand Down
2 changes: 2 additions & 0 deletions test/external-e2e/testdriver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

StorageClass:
FromFile: /tmp/csi/storageclass.yaml
SnapshotClass:
FromFile: /tmp/csi/snapshotclass.yaml
DriverInfo:
Name: test.csi.k8s.io
SupportedFsType: {"nfs"}
Expand Down

0 comments on commit 23a969f

Please sign in to comment.