mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 01:23:11 -04:00
Display the two new virus states for letters
Precompiled letters can now have two additional states: * pending-virus-check * virus-scan-failed Both new states should show in the notifications dashboard, and virus-scan-failed should appear as an error state, with a descriptive message. You should not be able to preview a letter in one of the two new states, so the preview link has been removed for precompiled letters in these states.
This commit is contained in:
@@ -49,14 +49,14 @@ def test_get_jobs_shows_page_links(
|
||||
(
|
||||
'',
|
||||
[
|
||||
'created', 'pending', 'sending',
|
||||
'created', 'pending', 'sending', 'pending-virus-check',
|
||||
'delivered', 'sent',
|
||||
'failed', 'temporary-failure', 'permanent-failure', 'technical-failure',
|
||||
'failed', 'temporary-failure', 'permanent-failure', 'technical-failure', 'virus-scan-failed',
|
||||
]
|
||||
),
|
||||
(
|
||||
'sending',
|
||||
['sending', 'created', 'pending']
|
||||
['sending', 'created', 'pending', 'pending-virus-check']
|
||||
),
|
||||
(
|
||||
'delivered',
|
||||
@@ -64,7 +64,7 @@ def test_get_jobs_shows_page_links(
|
||||
),
|
||||
(
|
||||
'failed',
|
||||
['failed', 'temporary-failure', 'permanent-failure', 'technical-failure']
|
||||
['failed', 'temporary-failure', 'permanent-failure', 'technical-failure', 'virus-scan-failed']
|
||||
)
|
||||
]
|
||||
)
|
||||
@@ -200,12 +200,14 @@ def test_should_show_letter_job(
|
||||
'created',
|
||||
'pending',
|
||||
'sending',
|
||||
'pending-virus-check',
|
||||
'delivered',
|
||||
'sent',
|
||||
'failed',
|
||||
'temporary-failure',
|
||||
'permanent-failure',
|
||||
'technical-failure',
|
||||
'virus-scan-failed',
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user