validations_common.tests.library.test_check_package_update module

class validations_common.tests.library.test_check_package_update.TestCheckUpdate(*args: Any, **kwargs: Any)[source]

Bases: TestCase

setUp()[source]
test_command_rpm_no_process(mock_popen, mock_pipe)[source]
test_empty_pkg_list_fails()[source]
test_fails_if_installed_package_not_found(mock_command)[source]
test_get_installed_pkgs_failure_pkg_missing()[source]
test_get_installed_pkgs_success()[source]

Test that _get_installed_pkgs will correctly process output of rpm, compare it with provided package name list and return dictionary of PackageDetails.

test_get_new_pkg_info()[source]
test_get_pkg_mgr_fail(mock_command)[source]
test_get_pkg_mgr_succes_dnf(mock_command)[source]
test_get_pkg_mgr_succes_yum(mock_command)[source]
test_returns_current_and_available_versions(mock_command, mock_get_installed, mock_get_new_pkg_info)[source]
test_returns_current_version_if_no_updates(mock_command, mock_get_installed, mock_get_new_pkg_info)[source]
test_unsupported_pkg_mgr_fails()[source]
class validations_common.tests.library.test_check_package_update.TestGetPackageDetails(*args: Any, **kwargs: Any)[source]

Bases: TestCase

setUp()[source]
test_arch()[source]
test_index_error()[source]
test_name()[source]
test_release()[source]
test_version()[source]