Skip to content

Commit

Permalink
Harden docker/podman asserts a bit (#15779)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsedmik authored Jul 26, 2024
1 parent fa91263 commit 322d94d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions tests/foreman/api/test_capsulecontent.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
get_repomd_revision,
)
from robottelo.utils.datafactory import gen_string
from robottelo.utils.issue_handlers import is_open


@pytest.fixture
Expand Down Expand Up @@ -909,6 +910,8 @@ def test_positive_sync_container_repo_end_to_end(
:BZ: 2125244, 2148813
:Verifies: SAT-25813
:customerscenario: true
"""
upstream_names = [
Expand Down Expand Up @@ -972,11 +975,15 @@ def test_positive_sync_container_repo_end_to_end(
f'{con_client} search {module_capsule_configured.hostname}/{path}'
)
assert result.status == 0
if not is_open('SAT-25813'):
assert f'{module_capsule_configured.hostname}/{path}' in result.stdout

result = module_container_contenthost.execute(
f'{con_client} pull {module_capsule_configured.hostname}/{path}'
)
assert result.status == 0
result = module_container_contenthost.execute(f'{con_client} images')
assert f'{module_capsule_configured.hostname}/{path}' in result.stdout

result = module_container_contenthost.execute(
f'{con_client} rmi {module_capsule_configured.hostname}/{path}'
Expand Down
2 changes: 1 addition & 1 deletion tests/foreman/api/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ def test_positive_update_checksum(self, repo_options, repo):
def test_positive_update_repo_url_and_unprotected_flag(self, repo):
"""Update repository url and unprotected flag to another valid one.
:id: 0ef399a7-6d3a-4746-b415-298794497c51
:id: 45ddfea2-ba37-45b8-95bb-9e92b8a3a946
:parametrized: yes
Expand Down

0 comments on commit 322d94d

Please sign in to comment.