Feature/nat 329 validate interface names for migrate
Compare changes
- NAT-329: completed all 4 scenarios for migrate testsHakan Calim authored
@@ -31,7 +41,7 @@ def migrate_form_input(
@@ -31,7 +41,7 @@ def migrate_form_input(
@@ -39,15 +49,19 @@ def migrate_form_input(
@@ -39,15 +49,19 @@ def migrate_form_input(
replace_side = str(old_subscription.iptrunk.iptrunk_sides[0].iptrunk_side_node.subscription.subscription_id)
@@ -55,11 +69,11 @@ def migrate_form_input(
@@ -55,11 +69,11 @@ def migrate_form_input(
replace_side = str(old_subscription.iptrunk.iptrunk_sides[1].iptrunk_side_node.subscription.subscription_id)
@@ -83,6 +97,20 @@ def migrate_form_input(
@@ -83,6 +97,20 @@ def migrate_form_input(
@@ -154,8 +182,10 @@ def test_migrate_iptrunk_success(
@@ -154,8 +182,10 @@ def test_migrate_iptrunk_success(
@@ -163,19 +193,22 @@ def test_migrate_iptrunk_success(
@@ -163,19 +193,22 @@ def test_migrate_iptrunk_success(
assert mocked_create_interface.call_count == num_nokia_lags # once for creating the LAG on the newly replaced side:
assert mocked_attach_interface_to_lag.call_count == num_nokia_attached # Twice for the new interfaces
assert mocked_delete_interface.call_count == num_nokia_lags # once for deleting the LAG on the old replaced side
assert str(subscription.iptrunk.iptrunk_sides[0].iptrunk_side_node.subscription.subscription_id) == new_router
assert subscription.iptrunk.iptrunk_sides[0].iptrunk_side_ae_members[0].interface_name == "Interface0"