Open frantz45 opened 6 months ago
A test for this:
def test_update_alert_rule_title_should_not_fail(self):
title = 'aaa'
rule = self._graylog.create_alert_rule_count(title, _PERIOD)
response = self._graylog.update_alert_rule(title, {**rule, 'title': 'new_title'})
self.assertEqual('new_title', response['title'])
The root issue is that alert rules are identified by their titles when unique identifiers should be used instead
A red banner appears: Updating alert rule failed with status: There was an error fetching a rousrce: Internal Server Error. Additional Information: Cannot invoke "com.airbus_cyber_security.graylog.wizard.alert.model.AlertRule.getStreamIdentifier()" because "oldAlert" is null