mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Fixes NPE in multi node qa testt
This commit is contained in:
parent
e7fddb5c93
commit
0b26f8b14c
@ -288,10 +288,10 @@ public class TimeSeriesLifecycleActionsIT extends ESRestTestCase {
|
||||
assertNull(indexStatus.get("phase"));
|
||||
assertNull(indexStatus.get("action"));
|
||||
assertNull(indexStatus.get("step"));
|
||||
assertEquals("policy [does_not_exist] does not exist",
|
||||
((Map<String, String>)indexStatus.get("step_info")).get("reason"));
|
||||
assertEquals("illegal_argument_exception",
|
||||
((Map<String, String>)indexStatus.get("step_info")).get("type"));
|
||||
Map<String, String> stepInfo = (Map<String, String>) indexStatus.get("step_info");
|
||||
assertNotNull(stepInfo);
|
||||
assertEquals("policy [does_not_exist] does not exist", stepInfo.get("reason"));
|
||||
assertEquals("illegal_argument_exception", stepInfo.get("type"));
|
||||
});
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user