Skip to content

Commit

Permalink
[6.14.z] Update tests to use fixed mask (#15095)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satellite-QE authored May 17, 2024
1 parent 3177ce5 commit 6f12ad6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/foreman/cli/test_subnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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']
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6f12ad6

Please sign in to comment.