From 8208f32f3f7047ed5f315523dcf89ba86329d0ee Mon Sep 17 00:00:00 2001 From: washcycle Date: Sat, 22 Apr 2023 15:56:02 -0500 Subject: -fixed several csi sanity tests -removed deprecated/unneeded passthrough import -added test.sh (needs work) --- test/sanity/params.yaml | 0 test/test.sh | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 test/sanity/params.yaml create mode 100644 test/test.sh (limited to 'test') diff --git a/test/sanity/params.yaml b/test/sanity/params.yaml new file mode 100644 index 0000000..e69de29 diff --git a/test/test.sh b/test/test.sh new file mode 100644 index 0000000..c96e99b --- /dev/null +++ b/test/test.sh @@ -0,0 +1,22 @@ +endpoint='unix:///tmp/csi.sock' + +# Install csi-sanity +cd .. +git clone https://github.com/kubernetes-csi/csi-test.git -b v5.0.0 +cd csi-test +make install + +## Start Local weed server with filer +weed server -dir=/tmp/seaweedfs/data -s3 -volume.max=100 -volume.port=8090 + +## Run CSI Driver +cd ../seaweedfs-csi-driver +make build +./_output/seaweedfs-csi-driver -endpoint="$endpoint" -alsologtostderr -v=5 -filer=localhost:8888 + +# Run CSI Sanity Tests +../csi-test/cmd/csi-sanity/csi-sanity\ + --ginkgo.v\ + --csi.testvolumeparameters="$(pwd)/test/sanity/params.yaml"\ + --csi.endpoint="$endpoint"\ + --ginkgo.skip="should not fail when requesting to create a volume with already existing name and same capacity|should fail when requesting to create a volume with already existing name and different capacity|should work|should fail when the requested volume does not exist|should return appropriate capabilities" \ No newline at end of file -- cgit v1.2.3