@@ -1405,6 +1405,7 @@ func TestAppendDefaultMountOptions(t *testing.T) {
14051405 containerName : "containerName" ,
14061406 expected : []string {"--cancel-list-on-mount-seconds=10" ,
14071407 "--container-name=containerName" ,
1408+ "--disable-version-check=true" ,
14081409 "--pre-mount-validate=true" ,
14091410 "--empty-dir-check=false" ,
14101411 "--tmp-path=/tmp" ,
@@ -1418,6 +1419,7 @@ func TestAppendDefaultMountOptions(t *testing.T) {
14181419 containerName : "containerName" ,
14191420 expected : []string {"--cancel-list-on-mount-seconds=0" ,
14201421 "--container-name=containerName" ,
1422+ "--disable-version-check=true" ,
14211423 "--pre-mount-validate=false" ,
14221424 "--empty-dir-check=false" ,
14231425 "--tmp-path=/tmp" ,
@@ -1431,13 +1433,28 @@ func TestAppendDefaultMountOptions(t *testing.T) {
14311433 containerName : "containerName" ,
14321434 expected : []string {"--cancel-list-on-mount-seconds=10" ,
14331435 "--container-name=containerName" ,
1436+ "--disable-version-check=true" ,
14341437 "--pre-mount-validate=false" ,
14351438 "--empty-dir-check=false" ,
14361439 "--tmp-path=/var/log" ,
14371440 "--use-https=true" ,
14381441 "targetPath" ,
14391442 },
14401443 },
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+ },
14411458 }
14421459
14431460 for _ , test := range tests {
0 commit comments