Skip to content
Snippets Groups Projects
Commit 14f3eda3 authored by Neda Moeini's avatar Neda Moeini
Browse files

Add more test for modify VRF WF

parent 51d51038
No related branches found
No related tags found
1 merge request!314Feature/vrf
Pipeline #90628 passed
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment