@@ -1414,6 +1414,7 @@ func TestAppendDefaultMountOptions(t *testing.T) {
1414
1414
containerName : "containerName" ,
1415
1415
expected : []string {"--cancel-list-on-mount-seconds=10" ,
1416
1416
"--container-name=containerName" ,
1417
+ "--disable-version-check=true" ,
1417
1418
"--pre-mount-validate=true" ,
1418
1419
"--empty-dir-check=false" ,
1419
1420
"--tmp-path=/tmp" ,
@@ -1427,6 +1428,7 @@ func TestAppendDefaultMountOptions(t *testing.T) {
1427
1428
containerName : "containerName" ,
1428
1429
expected : []string {"--cancel-list-on-mount-seconds=0" ,
1429
1430
"--container-name=containerName" ,
1431
+ "--disable-version-check=true" ,
1430
1432
"--pre-mount-validate=false" ,
1431
1433
"--empty-dir-check=false" ,
1432
1434
"--tmp-path=/tmp" ,
@@ -1440,13 +1442,28 @@ func TestAppendDefaultMountOptions(t *testing.T) {
1440
1442
containerName : "containerName" ,
1441
1443
expected : []string {"--cancel-list-on-mount-seconds=10" ,
1442
1444
"--container-name=containerName" ,
1445
+ "--disable-version-check=true" ,
1443
1446
"--pre-mount-validate=false" ,
1444
1447
"--empty-dir-check=false" ,
1445
1448
"--tmp-path=/var/log" ,
1446
1449
"--use-https=true" ,
1447
1450
"targetPath" ,
1448
1451
},
1449
1452
},
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
+ },
1450
1467
}
1451
1468
1452
1469
for _ , test := range tests {
0 commit comments