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.15.z] Fix content_facet_attributes attributes #14472

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
12 changes: 6 additions & 6 deletions tests/foreman/api/test_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ def test_positive_create_inherit_lce_cv(
).create()
host = module_target_sat.api.Host(hostgroup=hostgroup, organization=module_org).create()
assert (
host.content_facet_attributes['lifecycle_environment_id']
host.content_facet_attributes['lifecycle_environment']['id']
== hostgroup.lifecycle_environment.id
)
assert host.content_facet_attributes['content_view_id'] == hostgroup.content_view.id
assert host.content_facet_attributes['content_view']['id'] == hostgroup.content_view.id


@pytest.mark.tier2
Expand Down Expand Up @@ -625,16 +625,16 @@ def test_positive_create_and_update_with_content_view(
'lifecycle_environment_id': module_lce_library.id,
},
).create()
assert host.content_facet_attributes['content_view_id'] == module_default_org_view.id
assert host.content_facet_attributes['lifecycle_environment_id'] == module_lce_library.id
assert host.content_facet_attributes['content_view']['id'] == module_default_org_view.id
assert host.content_facet_attributes['lifecycle_environment']['id'] == module_lce_library.id

host.content_facet_attributes = {
'content_view_id': module_default_org_view.id,
'lifecycle_environment_id': module_lce_library.id,
}
host = host.update(['content_facet_attributes'])
assert host.content_facet_attributes['content_view_id'] == module_default_org_view.id
assert host.content_facet_attributes['lifecycle_environment_id'] == module_lce_library.id
assert host.content_facet_attributes['content_view']['id'] == module_default_org_view.id
assert host.content_facet_attributes['lifecycle_environment']['id'] == module_lce_library.id


@pytest.mark.tier1
Expand Down
Loading