use of com.netflix.simianarmy.basic.janitor.BasicJanitorRuleEngine in project SimianArmy by Netflix.
the class TestBasicJanitorMonkeyContext method testAddRuleWithoutUntaggedRuleResource.
@Test
public void testAddRuleWithoutUntaggedRuleResource() {
JanitorRuleEngine ruleEngine = new BasicJanitorRuleEngine();
Boolean untaggedRuleEnabled = new Boolean(true);
Rule rule = new UntaggedRule(monkeyCalendar, SIMIANARMY_JANITOR_RULE_UNTAGGEDRULE_REQUIREDTAGS, SIMIANARMY_JANITOR_RULE_UNTAGGEDRULE_RETENTIONDAYSWITHOWNER, SIMIANARMY_JANITOR_RULE_UNTAGGEDRULE_RETENTIONDAYSWITHOUTOWNER);
if (untaggedRuleEnabled && getUntaggedRuleResourceSet().contains("ASG")) {
ruleEngine.addRule(rule);
}
Assert.assertFalse(ruleEngine.getRules().contains(rule));
}
Aggregations