Merge pull request #3839 from zicklam/webhook_disable_ssl_verify

Add "Disable SSL Verification" checkbox to webhook notification

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot]
2019-05-08 19:44:11 +00:00
committed by GitHub
3 changed files with 15 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ def test_basic_parameterization(get, post, user, organization):
description="test webhook",
organization=organization.id,
notification_type="webhook",
notification_configuration=dict(url="http://localhost",
notification_configuration=dict(url="http://localhost", disable_ssl_verification=False,
headers={"Test": "Header"})),
u)
assert response.status_code == 201
@@ -81,7 +81,7 @@ def test_inherited_notification_templates(get, post, user, organization, project
description="test webhook {}".format(nfiers),
organization=organization.id,
notification_type="webhook",
notification_configuration=dict(url="http://localhost",
notification_configuration=dict(url="http://localhost", disable_ssl_verification=False,
headers={"Test": "Header"})),
u)
assert response.status_code == 201
@@ -143,7 +143,7 @@ def test_custom_environment_injection(post, user, organization):
description="test webhook",
organization=organization.id,
notification_type="webhook",
notification_configuration=dict(url="https://example.org",
notification_configuration=dict(url="https://example.org", disable_ssl_verification=False,
headers={"Test": "Header"})),
u)
assert response.status_code == 201