mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 17:08:41 -06:00
fixes dummy payload URL for webhook test
This commit is contained in:
parent
a68831d3a1
commit
ab916a1819
@ -31,8 +31,8 @@ class WebhookTest(APITestCase):
|
|||||||
def setUpTestData(cls):
|
def setUpTestData(cls):
|
||||||
|
|
||||||
site_ct = ContentType.objects.get_for_model(Site)
|
site_ct = ContentType.objects.get_for_model(Site)
|
||||||
DUMMY_URL = "http://localhost/"
|
DUMMY_URL = 'http://localhost:9000/'
|
||||||
DUMMY_SECRET = "LOOKATMEIMASECRETSTRING"
|
DUMMY_SECRET = 'LOOKATMEIMASECRETSTRING'
|
||||||
|
|
||||||
webhooks = Webhook.objects.bulk_create((
|
webhooks = Webhook.objects.bulk_create((
|
||||||
Webhook(name='Webhook 1', type_create=True, payload_url=DUMMY_URL, secret=DUMMY_SECRET, additional_headers='X-Foo: Bar'),
|
Webhook(name='Webhook 1', type_create=True, payload_url=DUMMY_URL, secret=DUMMY_SECRET, additional_headers='X-Foo: Bar'),
|
||||||
@ -259,7 +259,7 @@ class WebhookTest(APITestCase):
|
|||||||
name='Conditional Webhook',
|
name='Conditional Webhook',
|
||||||
type_create=True,
|
type_create=True,
|
||||||
type_update=True,
|
type_update=True,
|
||||||
payload_url='http://localhost/',
|
payload_url='http://localhost:9000/',
|
||||||
conditions={
|
conditions={
|
||||||
'and': [
|
'and': [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user