Tests for the “retain repo versions” feature
Tests for the “retain repo versions” feature
-
class rhui4_tests.test_retain_repo_versions.TestCLI[source]
class for the tests
-
static setup_class()[source]
announce the beginning of the test run
-
static teardown_class()[source]
announce the end of the test run
-
static test_01_init()[source]
log in to RHUI
-
test_02_create_repo()[source]
create a custom repo
-
test_03_check_max_repo_versions()[source]
check if the repo was created with the configured number of versions
-
test_04_prep_packages_for_upload()[source]
prepare packages for upload
-
test_05_upload_packages()[source]
upload the packages, one by one, so as to create multiple repo versions
-
test_06_check_versions()[source]
check if the current number of repo versions did not exceed the limit and 0 is gone
-
test_07_check_version_0_gone()[source]
also check if its deletion was logged
-
test_08_set_retain_versions_single()[source]
set the number of versions to a custom value for a single repo
-
test_09_check_versions()[source]
check if the new number of repo versions was set
-
test_10_check_version_1_gone()[source]
also check if the deletion of the oldest version was logged
-
test_11_set_retain_versions_all()[source]
set the number of versions to a custom value for all repos
-
test_12_check_versions()[source]
check if the new number of repo versions was set
-
test_13_check_version_3_gone()[source]
also check if the deletion of older versions was logged
-
test_14_cleanup()[source]
clean up