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

Add more test for modify VRF WF

parent 0b7ba4a3
No related branches found
No related tags found
No related merge requests found
Pipeline #90627 failed
This commit is part of merge request !314. Comments created here will be created in the context of that merge request.
......@@ -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.
Please register or to comment