Просмотр исходного кода

fixes dummy payload URL for webhook test

Abhimanyu Saharan 2 лет назад
Родитель
Сommit
ab916a1819
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      netbox/extras/tests/test_webhooks.py

+ 3 - 3
netbox/extras/tests/test_webhooks.py

@@ -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_SECRET = "LOOKATMEIMASECRETSTRING"
+        DUMMY_URL = 'http://localhost:9000/'
+        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': [
                     {
                     {