aboutsummaryrefslogtreecommitdiffstats
path: root/configserver/src/test/java/com/yahoo
diff options
context:
space:
mode:
authorjonmv <venstad@gmail.com>2023-09-08 11:25:42 +0200
committerjonmv <venstad@gmail.com>2023-09-08 11:25:42 +0200
commit69c6bb95c515143f19fe7cd47ed121e067ca61dc (patch)
tree33ed45adb642773fdb93b328fddcbf190476aa6f /configserver/src/test/java/com/yahoo
parent124f4892ae45f19d49b3ca9adaa779c0f2851bfd (diff)
Translate state to "pending" for reindexing known only to config server at the time
Diffstat (limited to 'configserver/src/test/java/com/yahoo')
-rw-r--r--configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/ApplicationHandlerTest.java24
1 files changed, 15 insertions, 9 deletions
diff --git a/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/ApplicationHandlerTest.java b/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/ApplicationHandlerTest.java
index 7a0ab6d2a23..951ef9df2f4 100644
--- a/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/ApplicationHandlerTest.java
+++ b/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/ApplicationHandlerTest.java
@@ -318,7 +318,8 @@ public class ApplicationHandlerTest {
" \"bar\": {" +
" \"readyMillis\": " + (now - 1000) + ", " +
" \"speed\": 1.0," +
- " \"cause\": \"reindexing\"" +
+ " \"cause\": \"reindexing\"," +
+ " \"state\": \"pending\"" +
" }" +
" }" +
" }," +
@@ -328,17 +329,20 @@ public class ApplicationHandlerTest {
" \"bar\": {" +
" \"readyMillis\": " + now + ", " +
" \"speed\": 0.1," +
- " \"cause\": \"reindexing\"" +
+ " \"cause\": \"reindexing\"," +
+ " \"state\": \"pending\"" +
" }," +
" \"bax\": {" +
" \"readyMillis\": " + (now - 1000) + ", " +
" \"speed\": 1.0," +
- " \"cause\": \"reindexing\"" +
+ " \"cause\": \"reindexing\"," +
+ " \"state\": \"pending\"" +
" }," +
" \"baz\": {" +
" \"readyMillis\": " + now + ", " +
" \"speed\": 0.1," +
- " \"cause\": \"reindexing\"" +
+ " \"cause\": \"reindexing\"," +
+ " \"state\": \"pending\"" +
" }" +
" }" +
" }" +
@@ -579,9 +583,9 @@ public class ApplicationHandlerTest {
"baz": {
"startedMillis": 124456,
"endedMillis": 125456,
- "state": "failed",
"message": "message",
- "progress": 0.1
+ "progress": 0.1,
+ "state": "failed"
}
}
},
@@ -590,7 +594,9 @@ public class ApplicationHandlerTest {
"bar": 123
},
"ready": {
- "bar": {},
+ "bar": {
+ "state": "pending"
+ },
"hax": {}
}
},
@@ -606,9 +612,9 @@ public class ApplicationHandlerTest {
"cause": "reindexing",
"startedMillis": 124456,
"endedMillis": 125456,
- "state": "failed",
"message": "message",
- "progress": 0.1
+ "progress": 0.1,
+ "state": "failed"
}
}
}