Skip to content

Commit

Permalink
cli e2e fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pondrejk committed Mar 26, 2024
1 parent 883f703 commit 242e8a5
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions tests/foreman/endtoend/test_cli_endtoend.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_positive_cli_end_to_end(function_entitlement_manifest, target_sat, rhel

# step 2.1: Create a new organization
org = _create(user, target_sat.cli.Org, {'name': gen_alphanumeric()})
target_sat.cli.SimpleContentAccess.disable({'organization-id': org['id']})
# target_sat.cli.SimpleContentAccess.disable({'organization-id': org['id']})

# step 2.2: Clone and upload manifest
target_sat.put(f'{function_entitlement_manifest.path}', f'{function_entitlement_manifest.name}')
Expand Down Expand Up @@ -266,14 +266,22 @@ def test_positive_cli_end_to_end(function_entitlement_manifest, target_sat, rhel
)

content_host = target_sat.cli.Host.with_user(user['login'], user['password']).info(
{'id': content_host['id']}
{'id': content_host['id']}, output_format='json'
)

# check that content view matches what we passed
assert content_host['content-information']['content-view']['name'] == content_view['name']
assert (
content_host['content-information']['content-view-environments']['1']['content-view'][
'name'
]
== content_view['name']
)

# check that lifecycle environment matches
assert (
content_host['content-information']['lifecycle-environment']['name']
content_host['content-information']['content-view-environments']['1'][
'lifecycle-environment'
]['name']
== lifecycle_environment['name']
)

Expand Down

0 comments on commit 242e8a5

Please sign in to comment.