Skip to content

Commit 45ba875

Browse files
committed
test: add blobfuse2 external tests
v2 test
1 parent 6d84562 commit 45ba875

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
apiVersion: storage.k8s.io/v1
3+
kind: StorageClass
4+
metadata:
5+
name: blob-fuse
6+
provisioner: blob.csi.azure.com
7+
parameters:
8+
skuName: Premium_LRS # available values: Standard_LRS, Premium_LRS, Standard_GRS, Standard_RAGRS
9+
protocol: fuse2
10+
reclaimPolicy: Delete
11+
volumeBindingMode: Immediate
12+
allowVolumeExpansion: true
13+
mountOptions:
14+
- -o allow_other
15+
- --file-cache-timeout-in-seconds=120
16+
- --use-attr-cache=true
17+
- --cancel-list-on-mount-seconds=10 # prevent billing charges on mounting
18+
- -o attr_timeout=120
19+
- -o entry_timeout=120
20+
- -o negative_timeout=120
21+
- --log-level=LOG_WARNING # LOG_WARNING, LOG_INFO, LOG_DEBUG
22+
- --cache-size-mb=1000 # Default will be 80% of available memory, eviction will happen beyond that.

test/external-e2e/run.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ trap print_logs EXIT
5656
mkdir -p /tmp/csi
5757

5858
if [ ! -z ${EXTERNAL_E2E_TEST_BLOBFUSE} ]; then
59-
echo "begin to run blobfuse tests ...."
59+
echo "begin to run blobfuse v1 tests ...."
6060
cp deploy/example/storageclass-blobfuse.yaml /tmp/csi/storageclass.yaml
6161
# achieve close-to-open cache consistency like in NFSv3
6262
sed -i 's/file-cache-timeout-in-seconds=120/file-cache-timeout-in-seconds=0/g' /tmp/csi/storageclass.yaml
@@ -66,6 +66,17 @@ if [ ! -z ${EXTERNAL_E2E_TEST_BLOBFUSE} ]; then
6666
--kubeconfig=$KUBECONFIG
6767
fi
6868

69+
if [ ! -z ${EXTERNAL_E2E_TEST_BLOBFUSE_v2} ]; then
70+
echo "begin to run blobfuse v2 tests ...."
71+
cp deploy/example/storageclass-blobfuse2.yaml /tmp/csi/storageclass.yaml
72+
# achieve close-to-open cache consistency like in NFSv3
73+
sed -i 's/file-cache-timeout-in-seconds=120/file-cache-timeout-in-seconds=0/g' /tmp/csi/storageclass.yaml
74+
ginkgo -p --progress --v -focus="External.Storage.*$DRIVER.csi.azure.com" \
75+
-skip='\[Disruptive\]|allow exec of files on the volume|unmount after the subpath directory is deleted|should concurrently access the single volume from pods on different node|pod created with an initial fsgroup, volume contents ownership changed via chgrp in first pod, new pod with same fsgroup skips ownership changes to the volume contents|should provision storage with any volume data source|should mount multiple PV pointing to the same storage on the same node' kubernetes/test/bin/e2e.test -- \
76+
-storage.testdriver=$PROJECT_ROOT/test/external-e2e/testdriver-blobfuse.yaml \
77+
--kubeconfig=$KUBECONFIG
78+
fi
79+
6980
if [ ! -z ${EXTERNAL_E2E_TEST_NFS} ]; then
7081
echo "begin to run NFSv3 tests ...."
7182
cp deploy/example/storageclass-blob-nfs.yaml /tmp/csi/storageclass.yaml

0 commit comments

Comments
 (0)