Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LadislavVasina1 committed Feb 13, 2024
1 parent edcf81f commit ee3f578
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions tests/foreman/ui/test_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -2415,19 +2415,21 @@ def change_content_source_prep(
module_location,
):
"""
This fixture sets up all necessary stuff for tests excercising the Change of the hosts's content source.
It creates a new product in the organization,
creates a new repository in the product,
enables the specified repositories,
creates a new lce,
creates a new CV in the organization, adds the repository to the CV, publishes the CV, and promotes the published version to the lifecycle environment,
creates a new activation key for the CV in the lce,
registers the RHEL content host with the activation key,
updates the capsule's taxonomies
adds the lifecycle environment to the capsule's content.
Fixture returns module_target_sat, org, lce, capsule, content_view, loc, ak
This fixture sets up all the necessary entities for tests
exercising the Change of the hosts's content source.
It creates a new product in the organization,
creates a new repository in the product,
enables the specified repositories,
creates a new lce,
creates a new CV in the organization, adds the repository to the CV,
publishes the CV, and promotes the published version to the lifecycle environment,
creates a new activation key for the CV in the lce,
registers the RHEL content host with the activation key,
updates the capsule's taxonomies
adds the lifecycle environment to the capsule's content.
Fixture returns module_target_sat, org, lce, capsule, content_view, loc, ak
"""
product_name, lce_name = (gen_string('alpha') for _ in range(2))
repos_to_enable = ['rhae2.9_el8']
Expand Down Expand Up @@ -2502,7 +2504,8 @@ def test_change_content_source(session, change_content_source_prep, rhel_content
:id: 5add68c3-16b1-496d-9b24-f5388013351d
:expectedresults: Job invocation page should be correctly generated by the change content source action, generated script should also be correct
:expectedresults: Job invocation page should be correctly generated
by the change content source action, generated script should also be correct
:CaseComponent:Hosts-Content
Expand Down Expand Up @@ -2551,7 +2554,7 @@ def test_change_content_source(session, change_content_source_prep, rhel_content
content_view=rhel_contenthost_pre_values['content_view']['name'],
run_job_invocation=True,
)

# Getting the data from the prefilled job invocation form
selected_category_and_template = session.jobinvocation.get_job_category_and_template()
selected_targeted_hosts = session.jobinvocation.get_targeted_hosts()

Expand Down

0 comments on commit ee3f578

Please sign in to comment.