Skip to content

Commit 1fded07

Browse files
Added test to check that a password value is required when updating to a CARP VIP from a non-CARP VIP
1 parent 1380f47 commit 1fded07

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

tests/test_api_v1_firewall_virtual_ip.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,17 @@ class APIUnitTestFirewallVirtualIP(unit_test_framework.APIUnitTest):
328328
"advbase": 4030
329329
}
330330
},
331+
{
332+
"name": "Check CARP password requirement when updating from non-CARP virtual IP",
333+
"status": 400,
334+
"return": 4022,
335+
"payload": {
336+
"id": 2,
337+
"mode": "carp",
338+
"interface": "wan",
339+
"subnet": "172.16.77.234/32",
340+
}
341+
},
331342
]
332343
delete_tests = [
333344
{
@@ -347,4 +358,4 @@ class APIUnitTestFirewallVirtualIP(unit_test_framework.APIUnitTest):
347358
}
348359
]
349360

350-
APIUnitTestFirewallVirtualIP()
361+
APIUnitTestFirewallVirtualIP()

0 commit comments

Comments
 (0)