Skip to content

Commit

Permalink
Debug PRT
Browse files Browse the repository at this point in the history
  • Loading branch information
tpapaioa committed Sep 11, 2024
1 parent 35e9ee6 commit 10a4ea4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
4 changes: 2 additions & 2 deletions pytest_fixtures/core/sys.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ def allow_repo_discovery(target_sat):
target_sat.execute('setsebool foreman_rails_can_connect_all off')


@pytest.fixture(autouse=True, scope="session")
@pytest.fixture(autouse=False, scope="session")
def relax_bfa(request, session_target_sat):
"""Relax BFA protection against failed login attempts"""
if session_target_sat and 'sanity' not in request.config.option.markexpr:
session_target_sat.cli.Settings.set({'name': 'failed_login_attempts_limit', 'value': '0'})


@pytest.fixture(autouse=True, scope='session')
@pytest.fixture(autouse=False, scope='session')
def proxy_port_range(session_target_sat):
"""Assigns port range for fake_capsules"""
if session_target_sat:
Expand Down
2 changes: 1 addition & 1 deletion pytest_fixtures/core/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def test_foo(autosession):
yield started_session


@pytest.fixture(autouse=True)
@pytest.fixture(autouse=False)
def ui_session_record_property(request, record_property):
"""
Autouse fixture to set the record_property attribute for Satellite instances in the test.
Expand Down
2 changes: 1 addition & 1 deletion pytest_fixtures/core/xdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from robottelo.logging import logger


@pytest.fixture(scope="session", autouse=True)
@pytest.fixture(scope="session", autouse=False)
def align_to_satellite(request, worker_id, satellite_factory):
"""Attempt to align a Satellite to the current xdist worker"""
if 'build_sanity' in request.config.option.markexpr:
Expand Down
16 changes: 6 additions & 10 deletions tests/foreman/api/test_http_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"""

import time

from fauxfactory import gen_string
import pytest

Expand Down Expand Up @@ -149,17 +151,9 @@ def test_positive_end_to_end(
@pytest.mark.e2e
@pytest.mark.upgrade
@pytest.mark.rhel_ver_match('8')
@pytest.mark.run_in_one_thread
@pytest.mark.parametrize(
'setup_http_proxy',
[None, True, False],
indirect=True,
ids=['no_http_proxy', 'auth_http_proxy', 'unauth_http_proxy'],
)
@pytest.mark.tier3
def test_positive_install_content_with_http_proxy(
setup_http_proxy, module_target_sat, rhel_contenthost, function_sca_manifest_org
):
@pytest.mark.parametrize('my_param', [0, 1])
def test_positive_install_content_with_http_proxy(rhel_contenthost, my_param):
"""Attempt to sync and install RH content on a content host via HTTP proxy.
:id: cce888b5-e023-4ee2-bffe-efa9260224ee
Expand All @@ -178,7 +172,9 @@ def test_positive_install_content_with_http_proxy(
:parametrized: yes
"""
time.sleep(30)
result = rhel_contenthost.execute('ls -la')
time.sleep(30)
assert result.status == 0


Expand Down

0 comments on commit 10a4ea4

Please sign in to comment.