Skip to content

Commit

Permalink
Update the use of Machines in Che (#13808)
Browse files Browse the repository at this point in the history
* Update the use of Machines in Che

Signed-off-by: Sergii Kabashniuk <[email protected]>
  • Loading branch information
skabashnyuk authored Jul 11, 2019
1 parent 939dfbe commit 7c99692
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ public void apply(
brokerEnvironment.getMachines().get(Names.machineName(brokerPod, container));
if (brokerMachine == null) {
throw new InfrastructureException(
String.format("Could not find machine for broker container %s", container.getName()));
String.format(
"Could not retrieve the specification of the plugin broker container %s",
container.getName()));
}
workspaceEnvironment
.getMachines()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void start() {
public void checkOnce(Consumer<String> readinessHandler) throws InfrastructureException {
if (!isAvailable()) {
throw new InfrastructureException(
String.format("Server '%s' in machine '%s' not available.", serverRef, machineName));
String.format("Server '%s' in container '%s' not available.", serverRef, machineName));
}
readinessHandler.accept(serverRef);
}
Expand Down Expand Up @@ -120,7 +120,7 @@ public void run() {
reportFuture.completeExceptionally(
new InfrastructureException(
String.format(
"Server '%s' in machine '%s' not available.", serverRef, machineName)));
"Server '%s' in container '%s' not available.", serverRef, machineName)));
} else if (isAvailable()) {
currentNumberOfSequentialSuccessfulPings++;
if (currentNumberOfSequentialSuccessfulPings == successThreshold) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void checkTimeoutTest() throws Exception {
assertTrue(e.getCause() instanceof InfrastructureException);
assertEquals(
e.getCause().getMessage(),
format("Server '%s' in machine '%s' not available.", SERVER_REF, MACHINE_NAME));
format("Server '%s' in container '%s' not available.", SERVER_REF, MACHINE_NAME));
}
}

Expand Down

0 comments on commit 7c99692

Please sign in to comment.