Skip to content

Commit

Permalink
Add coverage for HTTP Proxy capsule install
Browse files Browse the repository at this point in the history
  • Loading branch information
Griffin-Sullivan committed Jan 3, 2024
1 parent 48735b0 commit 45849ad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytest_fixtures/core/sat_cap_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def module_sat_ready_rhels(request):

@pytest.fixture
def cap_ready_rhel():
rhel_version = Version(settings.capsule.version.release)
rhel_version = Version(settings.capsule.version.rhel_version)
deploy_args = {
'deploy_rhel_version': rhel_version.base_version,
'deploy_flavor': settings.flavors.default,
Expand Down
11 changes: 10 additions & 1 deletion tests/foreman/installer/test_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,12 @@ def sat_non_default_install(module_sat_ready_rhels):
@pytest.mark.e2e
@pytest.mark.tier1
@pytest.mark.pit_client
def test_capsule_installation(sat_default_install, cap_ready_rhel, default_org):
@pytest.mark.parametrize(
'setting_update', [f'http_proxy={settings.http_proxy.un_auth_proxy_url}'], indirect=True
)
def test_capsule_installation(
request, sat_default_install, cap_ready_rhel, default_org, setting_update
):
"""Run a basic Capsule installation
:id: 64fa85b6-96e6-4fea-bea4-a30539d59e65
Expand All @@ -1413,6 +1418,10 @@ def test_capsule_installation(sat_default_install, cap_ready_rhel, default_org):
3. health check runs successfully
:CaseImportance: Critical
:BZ: 1984400
:customerscenario: true
"""
# Get Capsule repofile, and enable and download satellite-capsule
cap_ready_rhel.register_to_cdn()
Expand Down

0 comments on commit 45849ad

Please sign in to comment.