From 716e7dfcc36dc2b0a3f1eaa3f44d11b9800ff9bc Mon Sep 17 00:00:00 2001 From: Shweta Singh Date: Fri, 17 May 2024 13:44:51 +0530 Subject: [PATCH] Update tests to use fixed mask (#15091) (cherry picked from commit d77637c4c110d66ed382fca64ecccb927192809a) --- tests/foreman/cli/test_subnet.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/foreman/cli/test_subnet.py b/tests/foreman/cli/test_subnet.py index c7daca3bb27..cf5ec10d697 100644 --- a/tests/foreman/cli/test_subnet.py +++ b/tests/foreman/cli/test_subnet.py @@ -15,7 +15,7 @@ import random import re -from fauxfactory import gen_choice, gen_integer, gen_ipaddr, gen_netmask +from fauxfactory import gen_choice, gen_integer, gen_ipaddr import pytest from robottelo.constants import SUBNET_IPAM_TYPES @@ -77,7 +77,7 @@ def test_positive_CRUD(module_target_sat): """ name = gen_choice(list(valid_data_list().values())) pool = sorted(valid_addr_pools()[0]) - mask = gen_netmask() + mask = '255.255.255.0' # generate pool range from network address network = gen_ipaddr() from_ip = re.sub(r'\d+$', str(pool[0]), network) @@ -115,7 +115,7 @@ def test_positive_CRUD(module_target_sat): pool = sorted(valid_addr_pools()[0]) # generate pool range from network address new_network = gen_ipaddr() - new_mask = gen_netmask() + new_mask = '255.255.192.0' ip_from = re.sub(r'\d+$', str(pool[0]), new_network) ip_to = re.sub(r'\d+$', str(pool[1]), new_network) ipam_type = SUBNET_IPAM_TYPES['internal'] @@ -176,7 +176,7 @@ def test_negative_create_with_address_pool(pool, module_target_sat): :CaseImportance: Medium """ - mask = gen_netmask() + mask = '255.255.255.0' network = gen_ipaddr() options = {'mask': mask, 'network': network} # generate pool range from network address