Skip to content
Snippets Groups Projects
Commit e9d754ed authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov Committed by Karel van Klink
Browse files

test_create_iptrunk - updated faker config for ipv4/ipv6 networks

parent c4cd8880
No related branches found
No related tags found
1 merge request!177Trunk migration checks
Pipeline #85946 passed
......@@ -114,8 +114,8 @@ def test_successful_iptrunk_creation_with_standard_lso_result(
test_client,
):
mock_create_host.return_value = None
mock_allocate_v4_network.return_value = faker.ipv4(network=True)
mock_allocate_v6_network.return_value = faker.ipv6(network=True)
mock_allocate_v4_network.return_value = faker.ipv4_network(max_subnet=31)
mock_allocate_v6_network.return_value = faker.ipv6_network(max_subnet=126)
product_id = get_product_id_by_name(ProductType.IP_TRUNK)
initial_site_data = [{"product": product_id}, *input_form_wizard_data]
result, process_stat, step_log = run_workflow("create_iptrunk", initial_site_data)
......@@ -160,8 +160,8 @@ def test_iptrunk_creation_fails_when_lso_return_code_is_one(
_netbox_client_mock, # noqa: PT019
data_config_filename: PathLike,
):
mock_allocate_v4_network.return_value = faker.ipv4(network=True)
mock_allocate_v6_network.return_value = faker.ipv6(network=True)
mock_allocate_v4_network.return_value = faker.ipv4_network(max_subnet=31)
mock_allocate_v6_network.return_value = faker.ipv6_network(max_subnet=126)
product_id = get_product_id_by_name(ProductType.IP_TRUNK)
initial_site_data = [{"product": product_id}, *input_form_wizard_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