diff options
author | toby <smorgrav@yahoo-inc.com> | 2017-08-16 12:39:10 +0200 |
---|---|---|
committer | toby <smorgrav@yahoo-inc.com> | 2017-08-16 12:39:10 +0200 |
commit | 9913fb4873b99d0cfb769f6d1739a3a878bd5594 (patch) | |
tree | ea9f07a0d25e94eeb14bb3033b0c183dca48e8f3 /node-repository | |
parent | cdcedfd455de6d27ea4fdf41a99184d127fb8f85 (diff) |
More adjusting of unit tests from node-repository mock changes
Diffstat (limited to 'node-repository')
-rw-r--r-- | node-repository/src/test/java/com/yahoo/vespa/hosted/provision/restapi/v2/RestApiTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/restapi/v2/RestApiTest.java b/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/restapi/v2/RestApiTest.java index 945109c79a3..00595d5b833 100644 --- a/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/restapi/v2/RestApiTest.java +++ b/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/restapi/v2/RestApiTest.java @@ -454,19 +454,19 @@ public class RestApiTest { "}" ), Request.Method.PATCH), - "{\"message\":\"Updated parent1.yahoo.com\"}"); + "{\"message\":\"Updated dockerhost2.yahoo.com\"}"); assertHardwareFailure(new Request("http://localhost:8080/nodes/v2/node/host5.yahoo.com"), Optional.of(true)); - assertHardwareFailure(new Request("http://localhost:8080/nodes/v2/node/parent1.yahoo.com"), Optional.of(true)); + assertHardwareFailure(new Request("http://localhost:8080/nodes/v2/node/dockerhost2.yahoo.com"), Optional.of(true)); } // TODO: Remove when all clients have switched to hardwareFailureDescription @Test public void test_hardware_patching_of_docker_host_using_old_field() throws Exception { assertHardwareFailure(new Request("http://localhost:8080/nodes/v2/node/host5.yahoo.com"), Optional.of(false)); - assertHardwareFailure(new Request("http://localhost:8080/nodes/v2/node/parent1.yahoo.com"), Optional.of(false)); + assertHardwareFailure(new Request("http://localhost:8080/nodes/v2/node/dockerhost2.yahoo.com"), Optional.of(false)); - assertResponse(new Request("http://localhost:8080/nodes/v2/node/parent1.yahoo.com", + assertResponse(new Request("http://localhost:8080/nodes/v2/node/dockerhost2.yahoo.com", Utf8.toBytes("{" + "\"hardwareFailureType\": \"memory_mcelog\"" + "}" |