|
@@ -394,7 +394,7 @@ public class TestDockerContainerRuntime {
|
|
List<String> dockerCommands = Files.readAllLines(Paths.get
|
|
List<String> dockerCommands = Files.readAllLines(Paths.get
|
|
(dockerCommandFile), Charset.forName("UTF-8"));
|
|
(dockerCommandFile), Charset.forName("UTF-8"));
|
|
|
|
|
|
- int expected = 14;
|
|
|
|
|
|
+ int expected = 13;
|
|
int counter = 0;
|
|
int counter = 0;
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
@@ -411,17 +411,16 @@ public class TestDockerContainerRuntime {
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
|
|
+ Assert.assertEquals(" mounts="
|
|
|
|
+ + "/test_container_log_dir:/test_container_log_dir:rw,"
|
|
|
|
+ + "/test_application_local_dir:/test_application_local_dir:rw,"
|
|
|
|
+ + "/test_filecache_dir:/test_filecache_dir:ro,"
|
|
|
|
+ + "/test_user_filecache_dir:/test_user_filecache_dir:ro",
|
|
|
|
+ dockerCommands.get(counter++));
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
- Assert.assertEquals(" ro-mounts=/test_filecache_dir:/test_filecache_dir,"
|
|
|
|
- + "/test_user_filecache_dir:/test_user_filecache_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
- Assert.assertEquals(
|
|
|
|
- " rw-mounts=/test_container_log_dir:/test_container_log_dir,"
|
|
|
|
- + "/test_application_local_dir:/test_application_local_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
dockerCommands.get(counter));
|
|
dockerCommands.get(counter));
|
|
@@ -445,7 +444,7 @@ public class TestDockerContainerRuntime {
|
|
List<String> dockerCommands = Files.readAllLines(
|
|
List<String> dockerCommands = Files.readAllLines(
|
|
Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
|
|
|
|
- Assert.assertEquals(14, dockerCommands.size());
|
|
|
|
|
|
+ Assert.assertEquals(13, dockerCommands.size());
|
|
int counter = 0;
|
|
int counter = 0;
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
@@ -461,18 +460,17 @@ public class TestDockerContainerRuntime {
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
|
|
+ Assert.assertEquals(" mounts="
|
|
|
|
+ + "/test_container_log_dir:/test_container_log_dir:rw,"
|
|
|
|
+ + "/test_application_local_dir:/test_application_local_dir:rw,"
|
|
|
|
+ + "/test_filecache_dir:/test_filecache_dir:ro,"
|
|
|
|
+ + "/test_user_filecache_dir:/test_user_filecache_dir:ro",
|
|
|
|
+ dockerCommands.get(counter++));
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
Assert
|
|
Assert
|
|
.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
- Assert.assertEquals(" ro-mounts=/test_filecache_dir:/test_filecache_dir,"
|
|
|
|
- + "/test_user_filecache_dir:/test_user_filecache_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
- Assert.assertEquals(
|
|
|
|
- " rw-mounts=/test_container_log_dir:/test_container_log_dir,"
|
|
|
|
- + "/test_application_local_dir:/test_application_local_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
dockerCommands.get(counter));
|
|
dockerCommands.get(counter));
|
|
@@ -560,7 +558,7 @@ public class TestDockerContainerRuntime {
|
|
//This is the expected docker invocation for this case
|
|
//This is the expected docker invocation for this case
|
|
List<String> dockerCommands = Files
|
|
List<String> dockerCommands = Files
|
|
.readAllLines(Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
.readAllLines(Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
- int expected = 15;
|
|
|
|
|
|
+ int expected = 14;
|
|
int counter = 0;
|
|
int counter = 0;
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
@@ -579,18 +577,17 @@ public class TestDockerContainerRuntime {
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
|
|
+ Assert.assertEquals(" mounts="
|
|
|
|
+ + "/test_container_log_dir:/test_container_log_dir:rw,"
|
|
|
|
+ + "/test_application_local_dir:/test_application_local_dir:rw,"
|
|
|
|
+ + "/test_filecache_dir:/test_filecache_dir:ro,"
|
|
|
|
+ + "/test_user_filecache_dir:/test_user_filecache_dir:ro",
|
|
|
|
+ dockerCommands.get(counter++));
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
Assert
|
|
Assert
|
|
.assertEquals(" net=" + allowedNetwork, dockerCommands.get(counter++));
|
|
.assertEquals(" net=" + allowedNetwork, dockerCommands.get(counter++));
|
|
- Assert.assertEquals(" ro-mounts=/test_filecache_dir:/test_filecache_dir,"
|
|
|
|
- + "/test_user_filecache_dir:/test_user_filecache_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
- Assert.assertEquals(
|
|
|
|
- " rw-mounts=/test_container_log_dir:/test_container_log_dir,"
|
|
|
|
- + "/test_application_local_dir:/test_application_local_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
dockerCommands.get(counter));
|
|
dockerCommands.get(counter));
|
|
@@ -620,7 +617,7 @@ public class TestDockerContainerRuntime {
|
|
//This is the expected docker invocation for this case
|
|
//This is the expected docker invocation for this case
|
|
List<String> dockerCommands = Files
|
|
List<String> dockerCommands = Files
|
|
.readAllLines(Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
.readAllLines(Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
- int expected = 15;
|
|
|
|
|
|
+ int expected = 14;
|
|
int counter = 0;
|
|
int counter = 0;
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
@@ -639,18 +636,17 @@ public class TestDockerContainerRuntime {
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
|
|
+ Assert.assertEquals(" mounts="
|
|
|
|
+ + "/test_container_log_dir:/test_container_log_dir:rw,"
|
|
|
|
+ + "/test_application_local_dir:/test_application_local_dir:rw,"
|
|
|
|
+ + "/test_filecache_dir:/test_filecache_dir:ro,"
|
|
|
|
+ + "/test_user_filecache_dir:/test_user_filecache_dir:ro",
|
|
|
|
+ dockerCommands.get(counter++));
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
Assert
|
|
Assert
|
|
.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
- Assert.assertEquals(" ro-mounts=/test_filecache_dir:/test_filecache_dir,"
|
|
|
|
- + "/test_user_filecache_dir:/test_user_filecache_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
- Assert.assertEquals(
|
|
|
|
- " rw-mounts=/test_container_log_dir:/test_container_log_dir,"
|
|
|
|
- + "/test_application_local_dir:/test_application_local_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
dockerCommands.get(counter));
|
|
dockerCommands.get(counter));
|
|
@@ -690,7 +686,7 @@ public class TestDockerContainerRuntime {
|
|
List<String> dockerCommands = Files
|
|
List<String> dockerCommands = Files
|
|
.readAllLines(Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
.readAllLines(Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
|
|
|
|
- int expected = 15;
|
|
|
|
|
|
+ int expected = 14;
|
|
int counter = 0;
|
|
int counter = 0;
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
@@ -711,16 +707,16 @@ public class TestDockerContainerRuntime {
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
- " name=container_e11_1518975676334_14532816_01_000001",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
- Assert.assertEquals(" net=sdn1", dockerCommands.get(counter++));
|
|
|
|
- Assert.assertEquals(" ro-mounts=/test_filecache_dir:/test_filecache_dir,"
|
|
|
|
- + "/test_user_filecache_dir:/test_user_filecache_dir",
|
|
|
|
|
|
+ " mounts="
|
|
|
|
+ + "/test_container_log_dir:/test_container_log_dir:rw,"
|
|
|
|
+ + "/test_application_local_dir:/test_application_local_dir:rw,"
|
|
|
|
+ + "/test_filecache_dir:/test_filecache_dir:ro,"
|
|
|
|
+ + "/test_user_filecache_dir:/test_user_filecache_dir:ro",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
- " rw-mounts=/test_container_log_dir:/test_container_log_dir,"
|
|
|
|
- + "/test_application_local_dir:/test_application_local_dir",
|
|
|
|
|
|
+ " name=container_e11_1518975676334_14532816_01_000001",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
|
|
+ Assert.assertEquals(" net=sdn1", dockerCommands.get(counter++));
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
dockerCommands.get(counter));
|
|
dockerCommands.get(counter));
|
|
@@ -759,18 +755,16 @@ public class TestDockerContainerRuntime {
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
-
|
|
|
|
|
|
+ Assert.assertEquals(" mounts="
|
|
|
|
+ + "/test_container_log_dir:/test_container_log_dir:rw,"
|
|
|
|
+ + "/test_application_local_dir:/test_application_local_dir:rw,"
|
|
|
|
+ + "/test_filecache_dir:/test_filecache_dir:ro,"
|
|
|
|
+ + "/test_user_filecache_dir:/test_user_filecache_dir:ro",
|
|
|
|
+ dockerCommands.get(counter++));
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=sdn2", dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=sdn2", dockerCommands.get(counter++));
|
|
- Assert.assertEquals(" ro-mounts=/test_filecache_dir:/test_filecache_dir,"
|
|
|
|
- + "/test_user_filecache_dir:/test_user_filecache_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
- Assert.assertEquals(
|
|
|
|
- " rw-mounts=/test_container_log_dir:/test_container_log_dir,"
|
|
|
|
- + "/test_application_local_dir:/test_application_local_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
dockerCommands.get(counter));
|
|
dockerCommands.get(counter));
|
|
@@ -808,7 +802,7 @@ public class TestDockerContainerRuntime {
|
|
List<String> dockerCommands = Files.readAllLines(Paths.get
|
|
List<String> dockerCommands = Files.readAllLines(Paths.get
|
|
(dockerCommandFile), Charset.forName("UTF-8"));
|
|
(dockerCommandFile), Charset.forName("UTF-8"));
|
|
|
|
|
|
- int expected = 14;
|
|
|
|
|
|
+ int expected = 13;
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
|
|
|
|
String command = dockerCommands.get(0);
|
|
String command = dockerCommands.get(0);
|
|
@@ -859,7 +853,7 @@ public class TestDockerContainerRuntime {
|
|
List<String> dockerCommands = Files.readAllLines(
|
|
List<String> dockerCommands = Files.readAllLines(
|
|
Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
|
|
|
|
- int expected = 15;
|
|
|
|
|
|
+ int expected = 14;
|
|
int counter = 0;
|
|
int counter = 0;
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
@@ -876,18 +870,17 @@ public class TestDockerContainerRuntime {
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
|
|
+ Assert.assertEquals(" mounts="
|
|
|
|
+ + "/test_container_log_dir:/test_container_log_dir:rw,"
|
|
|
|
+ + "/test_application_local_dir:/test_application_local_dir:rw,"
|
|
|
|
+ + "/test_filecache_dir:/test_filecache_dir:ro,"
|
|
|
|
+ + "/test_user_filecache_dir:/test_user_filecache_dir:ro",
|
|
|
|
+ dockerCommands.get(counter++));
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
Assert.assertEquals(" pid=host", dockerCommands.get(counter++));
|
|
Assert.assertEquals(" pid=host", dockerCommands.get(counter++));
|
|
- Assert.assertEquals(" ro-mounts=/test_filecache_dir:/test_filecache_dir,"
|
|
|
|
- + "/test_user_filecache_dir:/test_user_filecache_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
- Assert.assertEquals(
|
|
|
|
- " rw-mounts=/test_container_log_dir:/test_container_log_dir,"
|
|
|
|
- + "/test_application_local_dir:/test_application_local_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
dockerCommands.get(counter));
|
|
dockerCommands.get(counter));
|
|
@@ -912,7 +905,7 @@ public class TestDockerContainerRuntime {
|
|
List<String> dockerCommands = Files.readAllLines(
|
|
List<String> dockerCommands = Files.readAllLines(
|
|
Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
|
|
|
|
- int expected = 14;
|
|
|
|
|
|
+ int expected = 13;
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
|
|
|
|
String command = dockerCommands.get(0);
|
|
String command = dockerCommands.get(0);
|
|
@@ -1021,7 +1014,7 @@ public class TestDockerContainerRuntime {
|
|
List<String> dockerCommands = Files.readAllLines(Paths.get
|
|
List<String> dockerCommands = Files.readAllLines(Paths.get
|
|
(dockerCommandFile), Charset.forName("UTF-8"));
|
|
(dockerCommandFile), Charset.forName("UTF-8"));
|
|
|
|
|
|
- int expected = 14;
|
|
|
|
|
|
+ int expected = 13;
|
|
int counter = 0;
|
|
int counter = 0;
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
@@ -1036,18 +1029,17 @@ public class TestDockerContainerRuntime {
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
|
|
+ Assert.assertEquals(" mounts="
|
|
|
|
+ + "/test_container_log_dir:/test_container_log_dir:rw,"
|
|
|
|
+ + "/test_application_local_dir:/test_application_local_dir:rw,"
|
|
|
|
+ + "/test_filecache_dir:/test_filecache_dir:ro,"
|
|
|
|
+ + "/test_user_filecache_dir:/test_user_filecache_dir:ro",
|
|
|
|
+ dockerCommands.get(counter++));
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
Assert.assertEquals(" privileged=true", dockerCommands.get(counter++));
|
|
Assert.assertEquals(" privileged=true", dockerCommands.get(counter++));
|
|
- Assert.assertEquals(" ro-mounts=/test_filecache_dir:/test_filecache_dir,"
|
|
|
|
- + "/test_user_filecache_dir:/test_user_filecache_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
- Assert.assertEquals(
|
|
|
|
- " rw-mounts=/test_container_log_dir:/test_container_log_dir,"
|
|
|
|
- + "/test_application_local_dir:/test_application_local_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
Assert.assertEquals(" user=" + submittingUser,
|
|
Assert.assertEquals(" user=" + submittingUser,
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
@@ -1108,7 +1100,7 @@ public class TestDockerContainerRuntime {
|
|
|
|
|
|
env.put(
|
|
env.put(
|
|
DockerLinuxContainerRuntime.ENV_DOCKER_CONTAINER_MOUNTS,
|
|
DockerLinuxContainerRuntime.ENV_DOCKER_CONTAINER_MOUNTS,
|
|
- "source");
|
|
|
|
|
|
+ "/source");
|
|
|
|
|
|
try {
|
|
try {
|
|
runtime.launchContainer(builder.build());
|
|
runtime.launchContainer(builder.build());
|
|
@@ -1138,7 +1130,7 @@ public class TestDockerContainerRuntime {
|
|
List<String> dockerCommands = Files.readAllLines(Paths.get
|
|
List<String> dockerCommands = Files.readAllLines(Paths.get
|
|
(dockerCommandFile), Charset.forName("UTF-8"));
|
|
(dockerCommandFile), Charset.forName("UTF-8"));
|
|
|
|
|
|
- int expected = 14;
|
|
|
|
|
|
+ int expected = 13;
|
|
int counter = 0;
|
|
int counter = 0;
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
@@ -1155,19 +1147,17 @@ public class TestDockerContainerRuntime {
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
|
|
+ Assert.assertEquals(" mounts="
|
|
|
|
+ + "/test_container_log_dir:/test_container_log_dir:rw,"
|
|
|
|
+ + "/test_application_local_dir:/test_application_local_dir:rw,"
|
|
|
|
+ + "/test_filecache_dir:/test_filecache_dir:ro,"
|
|
|
|
+ + "/test_user_filecache_dir:/test_user_filecache_dir:ro,"
|
|
|
|
+ + "/test_local_dir/test_resource_file:test_mount:ro",
|
|
|
|
+ dockerCommands.get(counter++));
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
- Assert.assertEquals(
|
|
|
|
- " ro-mounts=/test_filecache_dir:/test_filecache_dir,/"
|
|
|
|
- + "test_user_filecache_dir:/test_user_filecache_dir,"
|
|
|
|
- + "/test_local_dir/test_resource_file:test_mount",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
- Assert.assertEquals(
|
|
|
|
- " rw-mounts=/test_container_log_dir:/test_container_log_dir,"
|
|
|
|
- + "/test_application_local_dir:/test_application_local_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
dockerCommands.get(counter));
|
|
dockerCommands.get(counter));
|
|
@@ -1194,7 +1184,7 @@ public class TestDockerContainerRuntime {
|
|
List<String> dockerCommands = Files.readAllLines(Paths.get
|
|
List<String> dockerCommands = Files.readAllLines(Paths.get
|
|
(dockerCommandFile), Charset.forName("UTF-8"));
|
|
(dockerCommandFile), Charset.forName("UTF-8"));
|
|
|
|
|
|
- int expected = 14;
|
|
|
|
|
|
+ int expected = 13;
|
|
int counter = 0;
|
|
int counter = 0;
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
@@ -1211,20 +1201,18 @@ public class TestDockerContainerRuntime {
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
|
|
+ Assert.assertEquals(" mounts="
|
|
|
|
+ + "/test_container_log_dir:/test_container_log_dir:rw,"
|
|
|
|
+ + "/test_application_local_dir:/test_application_local_dir:rw,"
|
|
|
|
+ + "/test_filecache_dir:/test_filecache_dir:ro,"
|
|
|
|
+ + "/test_user_filecache_dir:/test_user_filecache_dir:ro,"
|
|
|
|
+ + "/test_local_dir/test_resource_file:test_mount1:ro,"
|
|
|
|
+ + "/test_local_dir/test_resource_file:test_mount2:ro",
|
|
|
|
+ dockerCommands.get(counter++));
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
- Assert.assertEquals(
|
|
|
|
- " ro-mounts=/test_filecache_dir:/test_filecache_dir,"
|
|
|
|
- + "/test_user_filecache_dir:/test_user_filecache_dir,"
|
|
|
|
- + "/test_local_dir/test_resource_file:test_mount1,"
|
|
|
|
- + "/test_local_dir/test_resource_file:test_mount2",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
- Assert.assertEquals(
|
|
|
|
- " rw-mounts=/test_container_log_dir:/test_container_log_dir,"
|
|
|
|
- + "/test_application_local_dir:/test_application_local_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
dockerCommands.get(counter));
|
|
dockerCommands.get(counter));
|
|
@@ -1240,7 +1228,8 @@ public class TestDockerContainerRuntime {
|
|
|
|
|
|
env.put(
|
|
env.put(
|
|
DockerLinuxContainerRuntime.ENV_DOCKER_CONTAINER_MOUNTS,
|
|
DockerLinuxContainerRuntime.ENV_DOCKER_CONTAINER_MOUNTS,
|
|
- "/tmp/foo:/tmp/foo:ro,/tmp/bar:/tmp/bar:rw");
|
|
|
|
|
|
+ "/tmp/foo:/tmp/foo:ro,/tmp/bar:/tmp/bar:rw,/tmp/baz:/tmp/baz," +
|
|
|
|
+ "/a:/a:shared,/b:/b:ro+shared,/c:/c:rw+rshared,/d:/d:private");
|
|
|
|
|
|
runtime.launchContainer(builder.build());
|
|
runtime.launchContainer(builder.build());
|
|
PrivilegedOperation op = capturePrivilegedOperationAndVerifyArgs();
|
|
PrivilegedOperation op = capturePrivilegedOperationAndVerifyArgs();
|
|
@@ -1250,7 +1239,7 @@ public class TestDockerContainerRuntime {
|
|
List<String> dockerCommands = Files.readAllLines(
|
|
List<String> dockerCommands = Files.readAllLines(
|
|
Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
|
|
|
|
- int expected = 14;
|
|
|
|
|
|
+ int expected = 13;
|
|
int counter = 0;
|
|
int counter = 0;
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
@@ -1267,19 +1256,19 @@ public class TestDockerContainerRuntime {
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
|
|
+ Assert.assertEquals(" mounts="
|
|
|
|
+ + "/test_container_log_dir:/test_container_log_dir:rw,"
|
|
|
|
+ + "/test_application_local_dir:/test_application_local_dir:rw,"
|
|
|
|
+ + "/test_filecache_dir:/test_filecache_dir:ro,"
|
|
|
|
+ + "/test_user_filecache_dir:/test_user_filecache_dir:ro,"
|
|
|
|
+ + "/tmp/foo:/tmp/foo:ro,"
|
|
|
|
+ + "/tmp/bar:/tmp/bar:rw,/tmp/baz:/tmp/baz:rw,/a:/a:rw+shared,"
|
|
|
|
+ + "/b:/b:ro+shared,/c:/c:rw+rshared,/d:/d:rw+private",
|
|
|
|
+ dockerCommands.get(counter++));
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
- Assert.assertEquals(" ro-mounts=/test_filecache_dir:/test_filecache_dir,"
|
|
|
|
- + "/test_user_filecache_dir:/test_user_filecache_dir,"
|
|
|
|
- + "/tmp/foo:/tmp/foo",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
- Assert.assertEquals(
|
|
|
|
- " rw-mounts=/test_container_log_dir:/test_container_log_dir,"
|
|
|
|
- + "/test_application_local_dir:/test_application_local_dir,"
|
|
|
|
- + "/tmp/bar:/tmp/bar",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
dockerCommands.get(counter));
|
|
dockerCommands.get(counter));
|
|
@@ -1293,7 +1282,7 @@ public class TestDockerContainerRuntime {
|
|
|
|
|
|
env.put(
|
|
env.put(
|
|
DockerLinuxContainerRuntime.ENV_DOCKER_CONTAINER_MOUNTS,
|
|
DockerLinuxContainerRuntime.ENV_DOCKER_CONTAINER_MOUNTS,
|
|
- "source:target");
|
|
|
|
|
|
+ "/source:target:ro,/source:target:other,/source:target:rw");
|
|
|
|
|
|
try {
|
|
try {
|
|
runtime.launchContainer(builder.build());
|
|
runtime.launchContainer(builder.build());
|
|
@@ -1311,7 +1300,7 @@ public class TestDockerContainerRuntime {
|
|
|
|
|
|
env.put(
|
|
env.put(
|
|
DockerLinuxContainerRuntime.ENV_DOCKER_CONTAINER_MOUNTS,
|
|
DockerLinuxContainerRuntime.ENV_DOCKER_CONTAINER_MOUNTS,
|
|
- "source:target:other");
|
|
|
|
|
|
+ "/source:target:other");
|
|
|
|
|
|
try {
|
|
try {
|
|
runtime.launchContainer(builder.build());
|
|
runtime.launchContainer(builder.build());
|
|
@@ -1329,7 +1318,7 @@ public class TestDockerContainerRuntime {
|
|
|
|
|
|
env.put(
|
|
env.put(
|
|
DockerLinuxContainerRuntime.ENV_DOCKER_CONTAINER_MOUNTS,
|
|
DockerLinuxContainerRuntime.ENV_DOCKER_CONTAINER_MOUNTS,
|
|
- "s\0ource:target:ro");
|
|
|
|
|
|
+ "/s\0ource:target:ro");
|
|
|
|
|
|
try {
|
|
try {
|
|
runtime.launchContainer(builder.build());
|
|
runtime.launchContainer(builder.build());
|
|
@@ -1357,7 +1346,7 @@ public class TestDockerContainerRuntime {
|
|
List<String> dockerCommands = Files.readAllLines(
|
|
List<String> dockerCommands = Files.readAllLines(
|
|
Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
|
|
|
|
- int expected = 14;
|
|
|
|
|
|
+ int expected = 13;
|
|
int counter = 0;
|
|
int counter = 0;
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
@@ -1374,18 +1363,17 @@ public class TestDockerContainerRuntime {
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
|
|
+ Assert.assertEquals(" mounts="
|
|
|
|
+ + "/test_container_log_dir:/test_container_log_dir:rw,"
|
|
|
|
+ + "/test_application_local_dir:/test_application_local_dir:rw,"
|
|
|
|
+ + "/test_filecache_dir:/test_filecache_dir:ro,"
|
|
|
|
+ + "/test_user_filecache_dir:/test_user_filecache_dir:ro,"
|
|
|
|
+ + "/tmp/foo:/tmp/foo:ro,/tmp/bar:/tmp/bar:ro",
|
|
|
|
+ dockerCommands.get(counter++));
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
- Assert.assertEquals(" ro-mounts=/test_filecache_dir:/test_filecache_dir,"
|
|
|
|
- + "/test_user_filecache_dir:/test_user_filecache_dir,"
|
|
|
|
- + "/tmp/foo:/tmp/foo,/tmp/bar:/tmp/bar",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
- Assert.assertEquals(
|
|
|
|
- " rw-mounts=/test_container_log_dir:/test_container_log_dir,"
|
|
|
|
- + "/test_application_local_dir:/test_application_local_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
dockerCommands.get(counter));
|
|
dockerCommands.get(counter));
|
|
@@ -1425,7 +1413,7 @@ public class TestDockerContainerRuntime {
|
|
List<String> dockerCommands = Files.readAllLines(
|
|
List<String> dockerCommands = Files.readAllLines(
|
|
Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
|
|
|
|
- int expected = 14;
|
|
|
|
|
|
+ int expected = 13;
|
|
int counter = 0;
|
|
int counter = 0;
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
@@ -1442,18 +1430,17 @@ public class TestDockerContainerRuntime {
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
|
|
+ Assert.assertEquals(" mounts="
|
|
|
|
+ + "/test_container_log_dir:/test_container_log_dir:rw,"
|
|
|
|
+ + "/test_application_local_dir:/test_application_local_dir:rw,"
|
|
|
|
+ + "/test_filecache_dir:/test_filecache_dir:ro,"
|
|
|
|
+ + "/test_user_filecache_dir:/test_user_filecache_dir:ro,"
|
|
|
|
+ + "/tmp/foo:/tmp/foo:rw,/tmp/bar:/tmp/bar:rw",
|
|
|
|
+ dockerCommands.get(counter++));
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
- Assert.assertEquals(" ro-mounts=/test_filecache_dir:/test_filecache_dir,"
|
|
|
|
- + "/test_user_filecache_dir:/test_user_filecache_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
- Assert.assertEquals(
|
|
|
|
- " rw-mounts=/test_container_log_dir:/test_container_log_dir,"
|
|
|
|
- + "/test_application_local_dir:/test_application_local_dir,"
|
|
|
|
- + "/tmp/foo:/tmp/foo,/tmp/bar:/tmp/bar",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
dockerCommands.get(counter));
|
|
dockerCommands.get(counter));
|
|
@@ -2012,7 +1999,7 @@ public class TestDockerContainerRuntime {
|
|
List<String> dockerCommands = Files.readAllLines(Paths.get
|
|
List<String> dockerCommands = Files.readAllLines(Paths.get
|
|
(dockerCommandFile), Charset.forName("UTF-8"));
|
|
(dockerCommandFile), Charset.forName("UTF-8"));
|
|
|
|
|
|
- int expected = 15;
|
|
|
|
|
|
+ int expected = 14;
|
|
int counter = 0;
|
|
int counter = 0;
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
@@ -2029,18 +2016,17 @@ public class TestDockerContainerRuntime {
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
|
|
+ Assert.assertEquals(" mounts="
|
|
|
|
+ + "/test_container_log_dir:/test_container_log_dir:rw,"
|
|
|
|
+ + "/test_application_local_dir:/test_application_local_dir:rw,"
|
|
|
|
+ + "/test_filecache_dir:/test_filecache_dir:ro,"
|
|
|
|
+ + "/test_user_filecache_dir:/test_user_filecache_dir:ro,"
|
|
|
|
+ + "/source/path:/destination/path:ro",
|
|
|
|
+ dockerCommands.get(counter++));
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
- Assert.assertEquals(" ro-mounts=/test_filecache_dir:/test_filecache_dir,"
|
|
|
|
- + "/test_user_filecache_dir:/test_user_filecache_dir,"
|
|
|
|
- + "/source/path:/destination/path",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
- Assert.assertEquals(
|
|
|
|
- " rw-mounts=/test_container_log_dir:/test_container_log_dir,"
|
|
|
|
- + "/test_application_local_dir:/test_application_local_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
|
|
|
|
// Verify volume-driver is set to expected value.
|
|
// Verify volume-driver is set to expected value.
|
|
@@ -2153,7 +2139,7 @@ public class TestDockerContainerRuntime {
|
|
List<String> dockerCommands = Files
|
|
List<String> dockerCommands = Files
|
|
.readAllLines(Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
.readAllLines(Paths.get(dockerCommandFile), Charset.forName("UTF-8"));
|
|
|
|
|
|
- int expected = 15;
|
|
|
|
|
|
+ int expected = 14;
|
|
int counter = 0;
|
|
int counter = 0;
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals(expected, dockerCommands.size());
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
Assert.assertEquals("[docker-command-execution]",
|
|
@@ -2172,17 +2158,16 @@ public class TestDockerContainerRuntime {
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
" launch-command=bash,/test_container_work_dir/launch_container.sh",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
|
|
+ Assert.assertEquals(" mounts="
|
|
|
|
+ + "/test_container_log_dir:/test_container_log_dir:rw,"
|
|
|
|
+ + "/test_application_local_dir:/test_application_local_dir:rw,"
|
|
|
|
+ + "/test_filecache_dir:/test_filecache_dir:ro,"
|
|
|
|
+ + "/test_user_filecache_dir:/test_user_filecache_dir:ro",
|
|
|
|
+ dockerCommands.get(counter++));
|
|
Assert.assertEquals(
|
|
Assert.assertEquals(
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
" name=container_e11_1518975676334_14532816_01_000001",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
Assert.assertEquals(" net=host", dockerCommands.get(counter++));
|
|
- Assert.assertEquals(" ro-mounts=/test_filecache_dir:/test_filecache_dir,"
|
|
|
|
- + "/test_user_filecache_dir:/test_user_filecache_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
- Assert.assertEquals(
|
|
|
|
- " rw-mounts=/test_container_log_dir:/test_container_log_dir,"
|
|
|
|
- + "/test_application_local_dir:/test_application_local_dir",
|
|
|
|
- dockerCommands.get(counter++));
|
|
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" user=" + uidGidPair, dockerCommands.get(counter++));
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
Assert.assertEquals(" workdir=/test_container_work_dir",
|
|
dockerCommands.get(counter++));
|
|
dockerCommands.get(counter++));
|