Skip to content

Commit

Permalink
CLI return code error
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaysawant committed Oct 10, 2023
1 parent ff5ae86 commit cc0137b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/foreman/ui/test_contenthost.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ def test_positive_remove_package_group(session, default_location, vm):
],
indirect=True,
)
@pytest.mark.no_containers
def test_positive_search_errata_non_admin(
session, default_location, vm, test_name, default_viewer_role
):
Expand Down Expand Up @@ -671,6 +672,7 @@ def test_positive_search_errata_non_admin(
],
indirect=True,
)
@pytest.mark.no_containers
def test_positive_ensure_errata_applicability_with_host_reregistered(session, default_location, vm):
"""Ensure that errata remain available to install when content host is
re-registered
Expand Down Expand Up @@ -733,6 +735,7 @@ def test_positive_ensure_errata_applicability_with_host_reregistered(session, de
],
indirect=True,
)
@pytest.mark.no_containers
def test_positive_host_re_registration_with_host_rename(
session, default_location, module_org, module_repos_collection_with_manifest, vm
):
Expand Down Expand Up @@ -795,6 +798,7 @@ def test_positive_host_re_registration_with_host_rename(
],
indirect=True,
)
@pytest.mark.no_containers
def test_positive_check_ignore_facts_os_setting(session, default_location, vm, module_org, request):
"""Verify that 'Ignore facts for operating system' setting works
properly
Expand Down Expand Up @@ -969,6 +973,7 @@ def test_positive_virt_who_hypervisor_subscription_status(
],
indirect=True,
)
@pytest.mark.no_containers
def test_module_stream_actions_on_content_host(session, default_location, vm_module_streams):
"""Check remote execution for module streams actions e.g. install, remove, disable
works on content host. Verify that correct stream module stream
Expand Down Expand Up @@ -1093,6 +1098,7 @@ def test_module_stream_actions_on_content_host(session, default_location, vm_mod
],
indirect=True,
)
@pytest.mark.no_containers
def test_module_streams_customize_action(session, default_location, vm_module_streams):
"""Check remote execution for customized module action is working on content host.
Expand Down Expand Up @@ -1160,6 +1166,7 @@ def test_module_streams_customize_action(session, default_location, vm_module_st
],
indirect=True,
)
@pytest.mark.no_containers
def test_install_modular_errata(session, default_location, vm_module_streams):
"""Populate, Search and Install Modular Errata generated from module streams.
Expand Down Expand Up @@ -1239,6 +1246,7 @@ def test_install_modular_errata(session, default_location, vm_module_streams):
],
indirect=True,
)
@pytest.mark.no_containers
def test_module_status_update_from_content_host_to_satellite(
session, default_location, vm_module_streams, module_org
):
Expand Down Expand Up @@ -1306,6 +1314,7 @@ def test_module_status_update_from_content_host_to_satellite(
],
indirect=True,
)
@pytest.mark.no_containers
def test_module_status_update_without_force_upload_package_profile(
session, default_location, vm_module_streams, target_sat
):
Expand Down Expand Up @@ -1392,6 +1401,7 @@ def test_module_status_update_without_force_upload_package_profile(
],
indirect=True,
)
@pytest.mark.no_containers
def test_module_stream_update_from_satellite(session, default_location, vm_module_streams):
"""Verify module stream enable, update actions works and update the module stream
Expand Down Expand Up @@ -1469,6 +1479,7 @@ def test_module_stream_update_from_satellite(session, default_location, vm_modul
],
indirect=True,
)
@pytest.mark.no_containers
def test_syspurpose_attributes_empty(session, default_location, vm_module_streams):
"""
Test if syspurpose attributes are displayed as empty
Expand Down Expand Up @@ -1512,6 +1523,7 @@ def test_syspurpose_attributes_empty(session, default_location, vm_module_stream
],
indirect=True,
)
@pytest.mark.no_containers
def test_set_syspurpose_attributes_cli(session, default_location, vm_module_streams):
"""
Test that UI shows syspurpose attributes set by the syspurpose tool on a registered host.
Expand Down Expand Up @@ -1558,6 +1570,7 @@ def test_set_syspurpose_attributes_cli(session, default_location, vm_module_stre
],
indirect=True,
)
@pytest.mark.no_containers
def test_unset_syspurpose_attributes_cli(session, default_location, vm_module_streams):
"""
Test that previously set syspurpose attributes are correctly set
Expand Down Expand Up @@ -1608,6 +1621,7 @@ def test_unset_syspurpose_attributes_cli(session, default_location, vm_module_st
],
indirect=True,
)
@pytest.mark.no_containers
def test_syspurpose_matched(session, default_location, vm_module_streams):
"""
Test that syspurpose status is set as 'Matched' if auto-attach
Expand Down Expand Up @@ -1651,6 +1665,7 @@ def test_syspurpose_matched(session, default_location, vm_module_streams):
],
indirect=True,
)
@pytest.mark.no_containers
def test_syspurpose_bulk_action(session, default_location, vm):
"""
Set system purpose parameters via bulk action
Expand Down Expand Up @@ -1697,6 +1712,7 @@ def test_syspurpose_bulk_action(session, default_location, vm):
],
indirect=True,
)
@pytest.mark.no_containers
def test_syspurpose_mismatched(session, default_location, vm_module_streams):
"""
Test that syspurpose status is 'Mismatched' if a syspurpose attribute
Expand Down

0 comments on commit cc0137b

Please sign in to comment.