Skip to content
Snippets Groups Projects
Commit 0ad7d5b9 authored by Hakan Calim's avatar Hakan Calim Committed by Neda Moeini
Browse files

NAT-329 added usage of faker with juniper interface names

parent e02ae9a7
No related branches found
No related tags found
1 merge request!122Feature/nat 329 interface names should validated 3
This commit is part of merge request !122. Comments created here will be created in the context of that merge request.
......@@ -5,7 +5,7 @@ import pytest
from gso.products import Iptrunk, ProductType
from gso.products.product_blocks.iptrunk import IptrunkType, PhyPortCapacity
from gso.products.product_types.router import RouterVendor
from gso.products.product_blocks.router import RouterVendor
from gso.services.crm import customer_selector, get_customer_by_name
from gso.services.subscriptions import get_product_id_by_name
from gso.utils.helpers import LAGMember
......@@ -51,10 +51,7 @@ def input_form_wizard_data(request, juniper_router_subscription_factory, nokia_r
# Set side b router to Juniper
if vendor == RouterVendor.JUNIPER:
router_side_b = juniper_router_subscription_factory()
interface_names = [f"{prefix}{i}" for prefix in ["xe-1/0/", "ge-3/0/", "xe-2/1/"] for i in range(5)]
side_b_members = [
LAGMember(interface_name=interface_name, interface_description=faker.sentence())
for interface_name in interface_names]
side_b_members = faker.generate_junniper_members_list()
else:
router_side_b = nokia_router_subscription_factory()
side_b_members = [
......
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