aboutsummaryrefslogtreecommitdiff
path: root/test/test.sh
blob: a96d4ce1c8645492ab4d813dee666dd479572567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 -master.volumeSizeLimitMB=256

## Run CSI Driver
cd ../seaweedfs-csi-driver
make build
./_output/seaweedfs-csi-driver -endpoint="$endpoint" -alsologtostderr -v=5 -filer=localhost:8888 -nodeid=test 

# 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"

../csi-test/cmd/csi-sanity/csi-test\
    --ginkgo.v\
    --csi.testvolumeparameters="$(pwd)/test/sanity/params.yaml"\
    --csi.endpoint="$endpoint"\
    --ginkgo.label-filter=""