@@ -1405,6 +1405,7 @@ func TestAppendDefaultMountOptions(t *testing.T) {
1405
1405
containerName : "containerName" ,
1406
1406
expected : []string {"--cancel-list-on-mount-seconds=10" ,
1407
1407
"--container-name=containerName" ,
1408
+ "--disable-version-check=true" ,
1408
1409
"--pre-mount-validate=true" ,
1409
1410
"--empty-dir-check=false" ,
1410
1411
"--tmp-path=/tmp" ,
@@ -1418,6 +1419,7 @@ func TestAppendDefaultMountOptions(t *testing.T) {
1418
1419
containerName : "containerName" ,
1419
1420
expected : []string {"--cancel-list-on-mount-seconds=0" ,
1420
1421
"--container-name=containerName" ,
1422
+ "--disable-version-check=true" ,
1421
1423
"--pre-mount-validate=false" ,
1422
1424
"--empty-dir-check=false" ,
1423
1425
"--tmp-path=/tmp" ,
@@ -1431,13 +1433,28 @@ func TestAppendDefaultMountOptions(t *testing.T) {
1431
1433
containerName : "containerName" ,
1432
1434
expected : []string {"--cancel-list-on-mount-seconds=10" ,
1433
1435
"--container-name=containerName" ,
1436
+ "--disable-version-check=true" ,
1434
1437
"--pre-mount-validate=false" ,
1435
1438
"--empty-dir-check=false" ,
1436
1439
"--tmp-path=/var/log" ,
1437
1440
"--use-https=true" ,
1438
1441
"targetPath" ,
1439
1442
},
1440
1443
},
1444
+ {
1445
+ options : []string {"targetPath" , "--tmp-path=/var/log" , "--disable-version-check=false" },
1446
+ tmpPath : "/tmp" ,
1447
+ containerName : "containerName" ,
1448
+ expected : []string {"--cancel-list-on-mount-seconds=10" ,
1449
+ "--container-name=containerName" ,
1450
+ "--disable-version-check=false" ,
1451
+ "--pre-mount-validate=true" ,
1452
+ "--empty-dir-check=false" ,
1453
+ "--tmp-path=/var/log" ,
1454
+ "--use-https=true" ,
1455
+ "targetPath" ,
1456
+ },
1457
+ },
1441
1458
}
1442
1459
1443
1460
for _ , test := range tests {
0 commit comments