mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-24 00:15:17 -06:00
14132 fix tests
This commit is contained in:
parent
4956203a29
commit
f5615e5c8a
@ -48,14 +48,12 @@ class EventRuleTest(APITestCase):
|
|||||||
Tag(name='Baz', slug='baz'),
|
Tag(name='Baz', slug='baz'),
|
||||||
))
|
))
|
||||||
|
|
||||||
'''
|
def test_event_rule_conditions(self):
|
||||||
def test_webhook_conditions(self):
|
|
||||||
# Create a conditional Webhook
|
# Create a conditional Webhook
|
||||||
webhook = Webhook(
|
webhook = EventRule(
|
||||||
name='Conditional Webhook',
|
name='Conditional Webhook',
|
||||||
type_create=True,
|
type_create=True,
|
||||||
type_update=True,
|
type_update=True,
|
||||||
payload_url='http://localhost:9000/',
|
|
||||||
conditions={
|
conditions={
|
||||||
'and': [
|
'and': [
|
||||||
{
|
{
|
||||||
@ -79,4 +77,3 @@ class EventRuleTest(APITestCase):
|
|||||||
|
|
||||||
# Evaluate the conditions (status='active')
|
# Evaluate the conditions (status='active')
|
||||||
self.assertTrue(eval_conditions(webhook, data))
|
self.assertTrue(eval_conditions(webhook, data))
|
||||||
'''
|
|
||||||
|
Loading…
Reference in New Issue
Block a user