From 28bdb4e7c8db14939642fadabbe70a40a343e543 Mon Sep 17 00:00:00 2001 From: Michael Nguyen Date: Thu, 23 Sep 2021 12:04:32 -0400 Subject: [PATCH] test: add test to check rhaos package versions Add test to verify that rhaos package versions match the OpenShift version. --- tests/kola/misc-ro/misc-ro.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/kola/misc-ro/misc-ro.sh b/tests/kola/misc-ro/misc-ro.sh index 38f1ac1c4..92b2921d0 100755 --- a/tests/kola/misc-ro/misc-ro.sh +++ b/tests/kola/misc-ro/misc-ro.sh @@ -161,3 +161,9 @@ if test -f /usr/lib/systemd/system/console-login-helper-messages-issuegen.servic fi fi echo "ok console-login-helper-messages presets present" + +# Check that rhaos packages do not match the OpenShift version +if [[ $(rpm -qa | grep rhaos | grep -v $OPENSHIFT_VERSION) ]]; then + fatal "Error: rhaos packages do not match OpenShift version" +fi +