Skip to content

Commit 6acf07e

Browse files
committed
Fix ipv6 Infoblox test
Signed-off-by: Shubham Ganar <sganar@redhat.com>
1 parent dd8eed6 commit 6acf07e

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

tests/foreman/destructive/test_infoblox.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626
infoblox_dns_package = 'rubygem-smart_proxy_dns_infoblox'
2727

2828
params = [
29-
(
30-
'enable-foreman-proxy-plugin-dhcp-remote-isc',
31-
{'foreman-proxy-dhcp': 'true'},
32-
f'rpm -q {dhcp_isc_package}',
33-
),
3429
(
3530
'enable-foreman-proxy-plugin-dhcp-infoblox',
3631
{
@@ -89,7 +84,7 @@
8984
@pytest.mark.parametrize(
9085
('command_args', 'command_opts', 'rpm_command'),
9186
params,
92-
ids=['isc_dhcp', 'infoblox_dhcp', 'infoblox_dns'],
87+
ids=['infoblox_dhcp', 'infoblox_dns'],
9388
)
9489
def test_plugin_installation(target_sat, command_args, command_opts, rpm_command):
9590
"""Check that external DNS and DHCP plugins install correctly
@@ -183,12 +178,16 @@ def test_infoblox_end_to_end(
183178

184179
macaddress = gen_mac(multicast=False)
185180
# using the domain name as defined in Infoblox DNS
186-
domain = module_target_sat.api.Domain(
187-
name=settings.infoblox.domain,
188-
location=[module_location],
189-
dns=module_provisioning_capsule.id,
190-
organization=[module_sca_manifest_org],
191-
).create()
181+
domain = (
182+
settings.infoblox.domain
183+
if settings.server.is_ipv6
184+
else module_target_sat.api.Domain(
185+
name=settings.infoblox.domain,
186+
location=[module_location],
187+
dns=module_provisioning_capsule.id,
188+
organization=[module_sca_manifest_org],
189+
).create()
190+
)
192191
subnet = module_target_sat.api.Subnet(
193192
location=[module_location],
194193
organization=[module_sca_manifest_org],

0 commit comments

Comments
 (0)