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 6a4a05b commit 161db8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions validation/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +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_update_alert_should_change_the_alert_description__issue102(self):
title = 'aaa'
rule = self._graylog.create_alert_rule_count(title, _PERIOD)
self._graylog.update_alert_rule(title, {**rule, 'description': 'new_description'})
alert_rule = self._graylog.get_alert_rule(title)
self.assertEqual('new_description', alert_rule['description'])

def test_create_alert_should_return_the_second_event_definition_identifier(self):
alert_rule = self._graylog.create_alert_rule_or('aaa', _PERIOD)
self.assertIn('second_event_definition', alert_rule)
Expand Down
7 changes: 7 additions & 0 deletions validation/tests_fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ def test_get_alert_rule_should_return_the_description_of_the_event_definition__i
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)
self._graylog.update_alert_rule(title, {**rule, 'description': 'new_description'})
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 161db8d

Please sign in to comment.