Skip to content

Commit 105acef

Browse files
andyzhangxk8s-infra-cherrypick-robot
authored andcommitted
test: fix ut
1 parent 1107fa7 commit 105acef

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

pkg/blob/blob_test.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,6 +1414,7 @@ func TestAppendDefaultMountOptions(t *testing.T) {
14141414
containerName: "containerName",
14151415
expected: []string{"--cancel-list-on-mount-seconds=10",
14161416
"--container-name=containerName",
1417+
"--disable-version-check=true",
14171418
"--pre-mount-validate=true",
14181419
"--empty-dir-check=false",
14191420
"--tmp-path=/tmp",
@@ -1427,6 +1428,7 @@ func TestAppendDefaultMountOptions(t *testing.T) {
14271428
containerName: "containerName",
14281429
expected: []string{"--cancel-list-on-mount-seconds=0",
14291430
"--container-name=containerName",
1431+
"--disable-version-check=true",
14301432
"--pre-mount-validate=false",
14311433
"--empty-dir-check=false",
14321434
"--tmp-path=/tmp",
@@ -1440,13 +1442,28 @@ func TestAppendDefaultMountOptions(t *testing.T) {
14401442
containerName: "containerName",
14411443
expected: []string{"--cancel-list-on-mount-seconds=10",
14421444
"--container-name=containerName",
1445+
"--disable-version-check=true",
14431446
"--pre-mount-validate=false",
14441447
"--empty-dir-check=false",
14451448
"--tmp-path=/var/log",
14461449
"--use-https=true",
14471450
"targetPath",
14481451
},
14491452
},
1453+
{
1454+
options: []string{"targetPath", "--tmp-path=/var/log", "--disable-version-check=false"},
1455+
tmpPath: "/tmp",
1456+
containerName: "containerName",
1457+
expected: []string{"--cancel-list-on-mount-seconds=10",
1458+
"--container-name=containerName",
1459+
"--disable-version-check=false",
1460+
"--pre-mount-validate=true",
1461+
"--empty-dir-check=false",
1462+
"--tmp-path=/var/log",
1463+
"--use-https=true",
1464+
"targetPath",
1465+
},
1466+
},
14501467
}
14511468

14521469
for _, test := range tests {

0 commit comments

Comments
 (0)