Skip to content

Commit

Permalink
update container name
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 committed Oct 10, 2024
1 parent d897c83 commit 58de1b8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ public void testReconnectWithMultiServices() {
Assert.assertTrue(resp.isSucceeded());
for (int i = 0; i < 10; i++) {
if (i == 3) {
cmd = "docker stop nebula-docker-compose_graphd0_1";
cmd = "docker stop nebula-docker-compose-graphd0-1";
p = runtime.exec(cmd);
p.waitFor(5, TimeUnit.SECONDS);
ProcessUtil.printProcessStatus(cmd, p);
cmd = "docker stop nebula-docker-compose_graphd1_1";
cmd = "docker stop nebula-docker-compose-graphd1-1";
p = runtime.exec(cmd);
p.waitFor(5, TimeUnit.SECONDS);
ProcessUtil.printProcessStatus(cmd, p);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public void testReleaseBrokenSession() {
}
}

String cmd = "docker stop nebula-docker-compose_graphd0_1";
String cmd = "docker stop nebula-docker-compose-graphd0-1";
Process p = runtime.exec(cmd);
p.waitFor(5, TimeUnit.SECONDS);
ProcessUtil.printProcessStatus(cmd, p);
Expand Down Expand Up @@ -329,7 +329,7 @@ public void testReleaseBrokenSession() {
Assert.assertFalse(e.getMessage(), true);
} finally {
try {
runtime.exec("docker start nebula-docker-compose_graphd0_1")
runtime.exec("docker start nebula-docker-compose-graphd0-1")
.waitFor(5, TimeUnit.SECONDS);
TimeUnit.SECONDS.sleep(5);
} catch (Exception e) {
Expand Down Expand Up @@ -360,7 +360,7 @@ public void testBrokenConnectionForSession() {
assert false;
}

String cmd = "docker restart nebula-docker-compose_graphd0_1";
String cmd = "docker restart nebula-docker-compose-graphd0-1";
Process p = runtime.exec(cmd);
p.waitFor(5, TimeUnit.SECONDS);
ProcessUtil.printProcessStatus(cmd, p);
Expand Down Expand Up @@ -409,7 +409,7 @@ public void testRetryForDownGraphd() {
assert false;
}

String cmd = "docker stop nebula-docker-compose_graphd0_1";
String cmd = "docker stop nebula-docker-compose-graphd0-1";
Process p = runtime.exec(cmd);
p.waitFor(5, TimeUnit.SECONDS);
ProcessUtil.printProcessStatus(cmd, p);
Expand Down Expand Up @@ -438,7 +438,7 @@ public void testRetryForDownGraphd() {
});
}

cmd = "docker start nebula-docker-compose_graphd0_1";
cmd = "docker start nebula-docker-compose-graphd0-1";
p = runtime.exec(cmd);
p.waitFor(5, TimeUnit.SECONDS);
ProcessUtil.printProcessStatus(cmd, p);
Expand Down Expand Up @@ -485,7 +485,7 @@ public void testRetryForDownStoraged() {
assert false;
}

String cmd = "docker stop nebula-docker-compose_storaged0_1";
String cmd = "docker stop nebula-docker-compose-storaged0-1";
Process p = runtime.exec(cmd);
p.waitFor(5, TimeUnit.SECONDS);
ProcessUtil.printProcessStatus(cmd, p);
Expand Down Expand Up @@ -514,7 +514,7 @@ public void testRetryForDownStoraged() {
});
}

cmd = "docker start nebula-docker-compose_storaged0_1";
cmd = "docker start nebula-docker-compose-storaged0-1";
p = runtime.exec(cmd);
p.waitFor(5, TimeUnit.SECONDS);
ProcessUtil.printProcessStatus(cmd, p);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void testListHosts() {

public void testListOnlineHosts() {
// stop one storage server
String cmd = "docker stop nebula-docker-compose_storaged0_1";
String cmd = "docker stop nebula-docker-compose-storaged0-1";
Runtime runtime = Runtime.getRuntime();
try {
Process p = runtime.exec(cmd);
Expand All @@ -137,11 +137,10 @@ public void testListOnlineHosts() {
assert (false);
}
}
System.out.println("listHosts size:" + metaClient.listHosts().size());
assert (metaClient.listHosts().size() == 2);

try {
runtime.exec("docker start nebula-docker-compose_storaged0_1")
runtime.exec("docker start nebula-docker-compose-storaged0-1")
.waitFor(5, TimeUnit.SECONDS);
Thread.sleep(5000);
} catch (Exception e) {
Expand Down

0 comments on commit 58de1b8

Please sign in to comment.