Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.14.z] [6.15] cli e2e fix #14543

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions tests/foreman/endtoend/test_cli_endtoend.py
Original file line number Diff line number Diff line change
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
Loading