spec/lib/flapjack/data/notification_rule_spec.rb in flapjack-0.8.9 vs spec/lib/flapjack/data/notification_rule_spec.rb in flapjack-0.8.10

- old
+ new

@@ -15,10 +15,11 @@ let(:rule_data) { {:contact_id => '23', :tags => ["database","physical"], :regex_tags => [], :entities => ["foo-app-01.example.com"], + :regex_entities => [], :time_restrictions => [ weekdays_8_18 ], :unknown_media => [], :warning_media => ["email"], :critical_media => ["sms", "email"], :unknown_blackhole => false, @@ -29,10 +30,11 @@ let(:regex_rule_data) { {:contact_id => '23', :tags => [], :regex_tags => ["^data.*$","^(physical|bare_metal)$"], - :entities => ["foo-app-01.example.com"], + :entities => [], + :regex_entities => ["^foo-\S{3}-\d{2}.example.com$"], :time_restrictions => [ weekdays_8_18 ], :unknown_media => [], :warning_media => ["email"], :critical_media => ["sms", "email"], :unknown_blackhole => false,