aboutsummaryrefslogtreecommitdiffstats
path: root/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/restapi/NodesV2ApiTest.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2021-03-24 22:30:06 +0100
committerJon Bratseth <bratseth@gmail.com>2021-03-24 22:30:06 +0100
commit748f6279d83e25183e9ed1053f81f4ea0204008b (patch)
treee59fa2fe1818ed6eb6cc962bfd84cf65fa5fb157 /node-repository/src/test/java/com/yahoo/vespa/hosted/provision/restapi/NodesV2ApiTest.java
parentb88d6461ef52af5c11866f425898cc0251ae4e75 (diff)
Add stats to node repo client
Diffstat (limited to 'node-repository/src/test/java/com/yahoo/vespa/hosted/provision/restapi/NodesV2ApiTest.java')
-rw-r--r--node-repository/src/test/java/com/yahoo/vespa/hosted/provision/restapi/NodesV2ApiTest.java13
1 files changed, 2 insertions, 11 deletions
diff --git a/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/restapi/NodesV2ApiTest.java b/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/restapi/NodesV2ApiTest.java
index 69f1b72fe09..9ac85b9a99c 100644
--- a/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/restapi/NodesV2ApiTest.java
+++ b/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/restapi/NodesV2ApiTest.java
@@ -60,6 +60,8 @@ public class NodesV2ApiTest {
assertFile(new Request("http://localhost:8080/nodes/v2/node/?recursive=true"), "nodes-recursive.json");
assertFile(new Request("http://localhost:8080/nodes/v2/node/?recursive=true&includeDeprovisioned=true"), "nodes-recursive-include-deprovisioned.json");
assertFile(new Request("http://localhost:8080/nodes/v2/node/host2.yahoo.com"), "node2.json");
+ assertFile(new Request("http://localhost:8080/nodes/v2/stats"), "stats.json");
+ assertFile(new Request("http://localhost:8080/nodes/v2/maintenance/"), "maintenance.json");
// GET with filters
assertFile(new Request("http://localhost:8080/nodes/v2/node/?recursive=true&hostname=host6.yahoo.com%20host2.yahoo.com"), "application2-nodes.json");
@@ -260,17 +262,6 @@ public class NodesV2ApiTest {
}
@Test
- public void test_stats_request() throws Exception {
- assertFile(new Request("http://localhost:8080/nodes/v2/stats"), "stats.json");
- }
-
- @Test
- public void maintenance_requests() throws Exception {
- // GET a list of all maintenance jobs
- assertFile(new Request("http://localhost:8080/nodes/v2/maintenance/"), "maintenance.json");
- }
-
- @Test
public void post_with_patch_method_override_in_header_is_handled_as_patch() throws Exception {
Request req = new Request("http://localhost:8080/nodes/v2/node/host4.yahoo.com",
Utf8.toBytes("{\"currentRestartGeneration\": 1}"), Request.Method.POST);