mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 20:07:37 -02:30
Prevent nested encrypted field leak in activity stream.
This commit is contained in:
@@ -292,6 +292,15 @@ def notification_template(organization):
|
||||
headers={"Test": "Header"}))
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def notification_template_with_encrypt(organization):
|
||||
return NotificationTemplate.objects.create(name='test-notification_template_with_encrypt',
|
||||
organization=organization,
|
||||
notification_type="slack",
|
||||
notification_configuration=dict(channels=["Foo", "Bar"],
|
||||
token="token"))
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def notification(notification_template):
|
||||
return Notification.objects.create(notification_template=notification_template,
|
||||
|
||||
Reference in New Issue
Block a user