use of com.netflix.simianarmy.basic.chaos.BasicChaosMonkey in project SimianArmy by Netflix.
the class TestChaosMonkeyResource method testTerminateNowBadGroupNotExist.
@Test
void testTerminateNowBadGroupNotExist() {
TestChaosMonkeyContext ctx = new TestChaosMonkeyContext("ondemandTermination.properties");
String input = "{\"eventType\":\"CHAOS_TERMINATION\",\"groupType\":\"INVALID\",\"groupName\":\"name4\"}";
ChaosMonkeyResource resource = new ChaosMonkeyResource(new BasicChaosMonkey(ctx));
validateAddEventResult(resource, input, Response.Status.NOT_FOUND);
input = "{\"eventType\":\"CHAOS_TERMINATION\",\"groupType\":\"TYPE_C\",\"groupName\":\"INVALID\"}";
resource = new ChaosMonkeyResource(new BasicChaosMonkey(ctx));
validateAddEventResult(resource, input, Response.Status.NOT_FOUND);
}
Aggregations