Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/foreman/api/test_acs.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import pytest
from requests.exceptions import HTTPError

from robottelo.config import settings
from robottelo.constants.repos import PULP_FIXTURE_ROOT, PULP_SUBPATHS_COMBINED


Expand Down Expand Up @@ -62,6 +63,14 @@ def test_positive_CRUD_all_types(
'smart_proxy_ids': [module_target_sat.nailgun_capsule.id],
}

# In case of IPv6, set 'ACS HTTP proxy' of the bound capsule to the IPv6 proxy
# This is necessary for the Refresh to succeed.
if not settings.server.network_type.has_ipv4:
caps = module_target_sat.nailgun_smart_proxy
caps.http_proxy = module_target_sat.enable_satellite_http_proxy()
caps.update(['http_proxy'])
params.update({'use_http_proxies': True})

if acs_type == 'simplified':
params.update(
{'product_ids': [module_yum_repo.product.id]}
Expand Down
9 changes: 9 additions & 0 deletions tests/foreman/cli/test_acs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from fauxfactory import gen_alphanumeric
import pytest

from robottelo.config import settings
from robottelo.constants.repos import PULP_FIXTURE_ROOT, PULP_SUBPATHS_COMBINED
from robottelo.exceptions import CLIReturnCodeError

Expand Down Expand Up @@ -71,6 +72,14 @@ def test_positive_CRUD_all_types(
'smart-proxy-ids': module_target_sat.nailgun_capsule.id,
}

# In case of IPv6, set 'ACS HTTP proxy' of the bound capsule to the IPv6 proxy
# This is necessary for the Refresh to succeed.
if not settings.server.network_type.has_ipv4:
caps = module_target_sat.nailgun_smart_proxy
caps.http_proxy = module_target_sat.enable_satellite_http_proxy()
caps.update(['http_proxy'])
params.update({'use-http-proxies': 'true'})

if acs_type == 'simplified':
params.update(
{'product-ids': [module_yum_repo.product.id]}
Expand Down