File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616import pytest
1717from requests .exceptions import HTTPError
1818
19+ from robottelo .config import settings
1920from robottelo .constants .repos import PULP_FIXTURE_ROOT , PULP_SUBPATHS_COMBINED
2021
2122
@@ -62,6 +63,14 @@ def test_positive_CRUD_all_types(
6263 'smart_proxy_ids' : [module_target_sat .nailgun_capsule .id ],
6364 }
6465
66+ # In case of IPv6, set 'ACS HTTP proxy' of the bound capsule to the IPv6 proxy
67+ # This is necessary for the Refresh to succeed.
68+ if not settings .server .network_type .has_ipv4 :
69+ caps = module_target_sat .nailgun_smart_proxy
70+ caps .http_proxy = module_target_sat .enable_satellite_http_proxy ()
71+ caps .update (['http_proxy' ])
72+ params .update ({'use_http_proxies' : True })
73+
6574 if acs_type == 'simplified' :
6675 params .update (
6776 {'product_ids' : [module_yum_repo .product .id ]}
Original file line number Diff line number Diff line change 1515from fauxfactory import gen_alphanumeric
1616import pytest
1717
18+ from robottelo .config import settings
1819from robottelo .constants .repos import PULP_FIXTURE_ROOT , PULP_SUBPATHS_COMBINED
1920from robottelo .exceptions import CLIReturnCodeError
2021
@@ -71,6 +72,14 @@ def test_positive_CRUD_all_types(
7172 'smart-proxy-ids' : module_target_sat .nailgun_capsule .id ,
7273 }
7374
75+ # In case of IPv6, set 'ACS HTTP proxy' of the bound capsule to the IPv6 proxy
76+ # This is necessary for the Refresh to succeed.
77+ if not settings .server .network_type .has_ipv4 :
78+ caps = module_target_sat .nailgun_smart_proxy
79+ caps .http_proxy = module_target_sat .enable_satellite_http_proxy ()
80+ caps .update (['http_proxy' ])
81+ params .update ({'use-http-proxies' : 'true' })
82+
7483 if acs_type == 'simplified' :
7584 params .update (
7685 {'product-ids' : [module_yum_repo .product .id ]}
You can’t perform that action at this time.
0 commit comments