File tree Expand file tree Collapse file tree 3 files changed +33
-5
lines changed Expand file tree Collapse file tree 3 files changed +33
-5
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,25 @@ set -eo pipefail
18
18
19
19
GO111MODULE=off go get github.com/rexray/gocsi/csc
20
20
21
+ function install_blobfuse_bin {
22
+ echo ' Installing blobfuse...'
23
+ apt-get update && apt install ca-certificates pkg-config libfuse-dev cmake libcurl4-gnutls-dev libgnutls28-dev uuid-dev libgcrypt20-dev wget -y
24
+ wget https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
25
+ dpkg -i packages-microsoft-prod.deb
26
+ apt-get update && apt install blobfuse fuse -y
27
+ rm -f packages-microsoft-prod.deb
28
+ }
29
+
21
30
readonly resource_group=" $1 "
22
31
readonly cloud=" $2 "
23
32
24
33
# copy blobfuse binary
25
- mkdir -p /usr/blob
26
- cp test/artifacts/blobfuse /usr/bin/blobfuse
34
+ if [[ " $cloud " == " AzureStackCloud" ]]; then
35
+ install_blobfuse_bin
36
+ else
37
+ mkdir -p /usr/blob
38
+ cp test/artifacts/blobfuse /usr/bin/blobfuse
39
+ fi
27
40
28
41
apt update && apt install libfuse2 -y
29
42
test/integration/run-test.sh " tcp://127.0.0.1:10000" " /tmp/stagingtargetpath" " /tmp/targetpath" " $resource_group " " $cloud "
Original file line number Diff line number Diff line change 16
16
17
17
set -eo pipefail
18
18
19
+ readonly cloud=" $1 "
20
+
19
21
function install_csi_sanity_bin {
20
22
echo ' Installing CSI sanity test binary...'
21
23
git clone https://github.com/kubernetes-csi/csi-test.git -b v2.2.0
@@ -24,9 +26,22 @@ function install_csi_sanity_bin {
24
26
popd
25
27
}
26
28
29
+ function install_blobfuse_bin {
30
+ echo ' Installing blobfuse...'
31
+ apt-get update && apt install ca-certificates pkg-config libfuse-dev cmake libcurl4-gnutls-dev libgnutls28-dev uuid-dev libgcrypt20-dev wget -y
32
+ wget https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
33
+ dpkg -i packages-microsoft-prod.deb
34
+ apt-get update && apt install blobfuse fuse -y
35
+ rm -f packages-microsoft-prod.deb
36
+ }
37
+
27
38
# copy blobfuse binary
28
- mkdir -p /usr/blob
29
- cp test/artifacts/blobfuse /usr/bin/blobfuse
39
+ if [[ " $cloud " == " AzureStackCloud" ]]; then
40
+ install_blobfuse_bin
41
+ else
42
+ mkdir -p /usr/blob
43
+ cp test/artifacts/blobfuse /usr/bin/blobfuse
44
+ fi
30
45
31
46
install_csi_sanity_bin
32
47
apt update && apt install libfuse2 -y
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ func TestSanity(t *testing.T) {
71
71
assert .NoError (t , err )
72
72
assert .True (t , strings .HasSuffix (projectRoot , "blob-csi-driver" ))
73
73
74
- cmd := exec .Command ("./test/sanity/run-tests-all-clouds.sh" )
74
+ cmd := exec .Command ("./test/sanity/run-tests-all-clouds.sh" , creds . Cloud )
75
75
cmd .Dir = projectRoot
76
76
cmd .Stdout = os .Stdout
77
77
cmd .Stderr = os .Stderr
You can’t perform that action at this time.
0 commit comments