diff options
author | Andreas Eriksen <andreer@yahoo-inc.com> | 2017-10-19 08:48:48 +0200 |
---|---|---|
committer | Andreas Eriksen <andreer@yahoo-inc.com> | 2017-10-19 08:48:48 +0200 |
commit | 1819623651742877afbace3d5457df7e5c811f54 (patch) | |
tree | 60b74f048295a782d4c6edea689f38ba09322972 /node-repository | |
parent | bc58143d369d7d75a3454d9bf748f0c3622c210e (diff) |
test "null" divergence reports
Diffstat (limited to 'node-repository')
-rw-r--r-- | node-repository/src/test/java/com/yahoo/vespa/hosted/provision/restapi/v2/RestApiTest.java | 7 |
1 files changed, 7 insertions, 0 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 5f81013d8e1..f42ba220fdf 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 @@ -496,6 +496,13 @@ public class RestApiTest { Request.Method.PATCH), "{\"message\":\"Updated host6.yahoo.com\"}"); assertFile(new Request("http://localhost:8080/nodes/v2/node/host6.yahoo.com"), "node6.json"); + + // Clear on quoted "null" report + assertResponse(new Request("http://localhost:8080/nodes/v2/node/host6.yahoo.com", + Utf8.toBytes("{\"hardwareDivergence\": \"null\"}"), + Request.Method.PATCH), + "{\"message\":\"Updated host6.yahoo.com\"}"); + assertFile(new Request("http://localhost:8080/nodes/v2/node/host6.yahoo.com"), "node6.json"); } /** Tests the rendering of each node separately to make it easier to find errors */ |