Assert the new key_unavailable message (section 32.3)
This commit is contained in:
1 parent
4c67f5a899
commit
2a60e29605
1 file changed
+1
-1
@@ -152,7 +152,7 @@ class AlertTests(unittest.TestCase):
|
|||||||
self.assertEqual(self.codes(record), ["key_unavailable"])
|
self.assertEqual(self.codes(record), ["key_unavailable"])
|
||||||
self.assertEqual(alerts[0]["severity"], "critical")
|
self.assertEqual(alerts[0]["severity"], "critical")
|
||||||
self.assertEqual(alerts[0]["source"], "Key 2: Blockstream Jade")
|
self.assertEqual(alerts[0]["source"], "Key 2: Blockstream Jade")
|
||||||
self.assertIn("Replace the key", alerts[0]["message"])
|
self.assertIn("Rotate the key to close this alert", alerts[0]["message"])
|
||||||
|
|
||||||
def test_an_unavailable_key_hides_the_other_results(self):
|
def test_an_unavailable_key_hides_the_other_results(self):
|
||||||
record = clean_record()
|
record = clean_record()
|
||||||
|
|||||||
Reference in new issue
Block a user