Skip to content
Snippets Groups Projects

Feature/vrf

Merged Neda Moeini requested to merge feature/vrf into develop
All threads resolved!
1 file
+ 15
0
Compare changes
  • Side-by-side
  • Inline
@@ -38,3 +38,18 @@ def test_modify_vrf_router_list_with_invalid_router_id(vrf_subscription_factory,
with pytest.raises(FormValidationError, match="Input should be an instance of Select a router"):
run_workflow("modify_vrf_router_list", initial_vrf_data)
@pytest.mark.workflow()
def test_modify_vrf_router_list_with_duplicate_router_id(vrf_subscription_factory, router_subscription_factory, faker):
subscription_id = vrf_subscription_factory()
router_id = router_subscription_factory()
initial_vrf_data = [
{"subscription_id": subscription_id},
{
"router_list": [{"router_id": router_id}, {"router_id": router_id}],
},
]
with pytest.raises(FormValidationError, match="Duplicate router IDs found in the list."):
run_workflow("modify_vrf_router_list", initial_vrf_data)
Loading