Skip to content

Commit

Permalink
Moved one more test in the fast suite
Browse files Browse the repository at this point in the history
  • Loading branch information
c8y3 committed Nov 8, 2024
1 parent d5890aa commit 6a4a05b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 0 additions & 9 deletions validation/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,6 @@ def test_set_default_backlog_value_should_change_newly_created_event_definition_
backlog_size = event_definition['notification_settings']['backlog_size']
self.assertEqual(1000, backlog_size)

def test_get_alert_should_return_the_description_of_the_event_definition__issue102(self):
title = 'aaa'
alert_rule = self._graylog.create_alert_rule_count(title, _PERIOD)
event_definition = self._graylog.get_event_definition(alert_rule['condition'])
event_definition['description'] = 'new_description'
self._graylog.update_event_definition(event_definition)
alert_rule = self._graylog.get_alert_rule(title)
self.assertEqual('new_description', alert_rule['description'])

def test_update_alert_should_change_the_alert_description__issue102(self):
title = 'aaa'
rule = self._graylog.create_alert_rule_count(title, _PERIOD)
Expand Down
9 changes: 9 additions & 0 deletions validation/tests_fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@ def test_create_alert_rule_should_set_event_definition_description__issue102(sel
event_definition = self._graylog.get_event_definition(event_definition_identifier)
self.assertEqual('rule_description', event_definition['description'])

def test_get_alert_rule_should_return_the_description_of_the_event_definition__issue102(self):
title = 'aaa'
alert_rule = self._graylog.create_alert_rule_count(title, _PERIOD)
event_definition = self._graylog.get_event_definition(alert_rule['condition'])
event_definition['description'] = 'new_description'
self._graylog.update_event_definition(event_definition)
alert_rule = self._graylog.get_alert_rule(title)
self.assertEqual('new_description', alert_rule['description'])

def test_create_list_should_create_data_adapter(self):
self._graylog.create_list('test', ['a'])
response = self._graylog.query_data_adapter('alert-wizard-list-data-adapter-test', 'a')
Expand Down

0 comments on commit 6a4a05b

Please sign in to comment.