diff --git a/test/resources/microshift-rpm.resource b/test/resources/microshift-rpm.resource index 3335a64ca4..d1587b2e0f 100644 --- a/test/resources/microshift-rpm.resource +++ b/test/resources/microshift-rpm.resource @@ -14,13 +14,13 @@ ${REPO_FILE_NAME} "/etc/yum.repos.d/microshift-local.repo" *** Keywords *** Install MicroShift RPM Packages From System Repo [Documentation] Installs MicroShift RPM packages from a system repository - [Arguments] ${version} ${check_warnings}=True + [Arguments] ${version} ${check_warnings}=True ${extra_args}=${EMPTY} # Allow erasing because update may require a new version of openvswitch # and major versions of openvswitch are separate packages that obsolete # each other. Override default timeout to 2 min (-R 2) because the transmission rate sometimes dips below the # minrate threshold. This is not a fatal error and should not fail the test, so raising the timeout only helps to # keep logs clean of flakey error messages. - ${stdout}= Command Should Work dnf install -q -R 2 -y --allowerasing 'microshift-${version}' + ${stdout}= Command Should Work dnf install -q -R 2 -y --allowerasing ${extra_args} 'microshift-${version}' IF ${check_warnings} # Look for all warnings and errors before testing so that the log # shows the output for both. @@ -32,11 +32,16 @@ Install MicroShift RPM Packages From System Repo Install MicroShift RPM Packages From Repo [Documentation] Installs MicroShift RPM packages from the specified URL - [Arguments] ${repo_url} ${version} + [Arguments] ${repo_url} ${version} ${extra_args}=${EMPTY} Configure MicroShift Repository ${repo_url} - Install MicroShift RPM Packages From System Repo ${version} + Install MicroShift RPM Packages From System Repo ${version} extra_args=${extra_args} Unconfigure MicroShift Repository +Install Third Party Packages With Warnings + [Documentation] Install these separately to avoid having warnings + ... show up in the warning check when installing MicroShift. + Command Should Work dnf install -y NetworkManager-ovs containers-common + Configure MicroShift Repository [Documentation] Sets up repository [Arguments] ${repo_url} diff --git a/test/scenarios-bootc/el10/periodics/el102-src@cis-lvl2.sh b/test/scenarios-bootc/el10/periodics/el102-src@cis-lvl2.sh index 835e59f2dc..f420116ef3 100644 --- a/test/scenarios-bootc/el10/periodics/el102-src@cis-lvl2.sh +++ b/test/scenarios-bootc/el10/periodics/el102-src@cis-lvl2.sh @@ -11,92 +11,8 @@ TEST_EXECUTION_TIMEOUT=60m # for greenboot to finish when creating the VM. export SKIP_GREENBOOT=true -configure_microshift_mirror() { - local -r repo=$1 - - if [[ -z "${repo}" ]] ; then - return - fi - - if [[ ! "${repo}" =~ ^http ]]; then - return - fi - - local -r tmp_file=$(mktemp) - tee "${tmp_file}" >/dev/null </dev/null </dev/null </dev/null </dev/null </dev/null </dev/null <