mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 03:47:36 -02:30
allow org auditors to see notifications
This commit is contained in:
@@ -38,7 +38,10 @@ from awx.main.models.organization import (
|
||||
Team,
|
||||
)
|
||||
|
||||
from awx.main.models.notifications import NotificationTemplate
|
||||
from awx.main.models.notifications import (
|
||||
NotificationTemplate,
|
||||
Notification
|
||||
)
|
||||
|
||||
'''
|
||||
Disable all django model signals.
|
||||
@@ -193,6 +196,15 @@ def notification_template(organization):
|
||||
notification_configuration=dict(url="http://localhost",
|
||||
headers={"Test": "Header"}))
|
||||
|
||||
@pytest.fixture
|
||||
def notification(notification_template):
|
||||
return Notification.objects.create(notification_template=notification_template,
|
||||
status='successful',
|
||||
notifications_sent=1,
|
||||
notification_type='email',
|
||||
recipients='admin@admin.com',
|
||||
subject='email subject')
|
||||
|
||||
@pytest.fixture
|
||||
def job_with_secret_key(job_with_secret_key_factory):
|
||||
return job_with_secret_key_factory(persisted=True)
|
||||
|
||||
Reference in New Issue
Block a user