Skip to content

Commit 9798e89

Browse files
authored
Merge pull request #538 from andyzhangx/enable-blobfuse-proxy-test
test: enable blobfuse-proxy in install/uninstall CSI Driver script test
2 parents e56bfff + c23bf78 commit 9798e89

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

deploy/install-driver.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ if [ $ver != "master" ]; then
3333
repo="$repo/$ver"
3434
fi
3535

36+
if [[ "$#" -gt 1 ]]; then
37+
if [[ "$2" == *"local"* ]] && [[ "$2" == *"enable-blobfuse-proxy"* ]]; then
38+
echo "set enable-blobfuse-proxy as true ..."
39+
kubectl apply -f ./deploy/blobfuse-proxy/blobfuse-proxy.yaml
40+
sed -i 's/enable-blobfuse-proxy=false/enable-blobfuse-proxy=true/g' $repo/csi-blob-node.yaml
41+
fi
42+
fi
43+
3644
echo "Installing Azure Blob Storage CSI driver, version: $ver ..."
3745
kubectl apply -f $repo/rbac-csi-blob-controller.yaml
3846
kubectl apply -f $repo/rbac-csi-blob-node.yaml

test/e2e/suite_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ var _ = ginkgo.AfterSuite(func() {
156156
// install/uninstall CSI Driver deployment scripts test
157157
installDriver := testCmd{
158158
command: "bash",
159-
args: []string{"deploy/install-driver.sh", "master", "local"},
159+
args: []string{"deploy/install-driver.sh", "master", "local,enable-blobfuse-proxy"},
160160
startLog: "===================install CSI Driver deployment scripts test===================",
161161
endLog: "===================================================",
162162
}
163163
uninstallDriver := testCmd{
164164
command: "bash",
165-
args: []string{"deploy/uninstall-driver.sh", "master", "local"},
165+
args: []string{"deploy/uninstall-driver.sh", "master", "local,enable-blobfuse-proxy"},
166166
startLog: "===================uninstall CSI Driver deployment scripts test===================",
167167
endLog: "===================================================",
168168
}

0 commit comments

Comments
 (0)