From 8c9649ca7bb3ba18330e707fd0f38656f0bd773e Mon Sep 17 00:00:00 2001 From: Jaroslav Henner Date: Wed, 22 Apr 2020 00:39:08 +0200 Subject: [PATCH] Correct the steps for rebuilding the repo. The test_rh_updates rebuilds some RPMs to make us able to test CFME should be able to update find to some future version. The repo with the rpms rebuilidng tool had to be rebuilt (yeah... (: ) because the deps on new CFME 5.11 started being not satisfied. I corrected the steps for rebuilding the repo. This will for sure get handy in future. This is not an ideal system, but at the moment I don't know about how to test updates to some future version nicer way without spending money on time travel machine. The test_rh_updates started working after the repo has been updated. --- .../configure/test_register_appliance.py | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/cfme/tests/configure/test_register_appliance.py b/cfme/tests/configure/test_register_appliance.py index e85b538157..c17098a629 100644 --- a/cfme/tests/configure/test_register_appliance.py +++ b/cfme/tests/configure/test_register_appliance.py @@ -78,16 +78,26 @@ def appliance_preupdate(temp_appliance_preconfig_funcscope): register and attach the system to RHN # SERVER=...redhat.com - # yum --downloadonly --downloaddir /therepo install -y rpm-build - # yum install -y rpm-build createrepo + # CFME_STREAM=5.10 + # + # # Download the stuff for creating the repo + # yum --downloadonly --downloaddir /tmp/therepo install createrepo rpm-build rpmrebuild + # + # # Copy the downloaded stuff to prevent you to delete it after next + # # finished transaction + # cp /tmp/therepo/* /therepo/ + # + # # Install the stuff we need now and create repo + # yum install -y rpm-build createrepo make rsync # rpmbuild --rebuild http://$SERVER/~jhenner/rpmrebuild/rpmrebuild-2.14-1.src.rpm # cp rpmbuild/RPMS/noarch/rpmrebuild-2.14-1.noarch.rpm /therepo # createrepo /therepo - # curl 'http://$SERVER/~jhenner/rpmrebuild_repo/5.XX/rpmrebuild.repo' \ + # # Get the repo file and publish the repo dir. + # curl "http://$SERVER/~jhenner/rpmrebuild_repo/$CFME_STREAM/rpmrebuild.repo" \ -o /therepo/rpmrebuild.repo - # vim /therepo/rpmrebuild.repo - # rsync -avP /therepo/ jhenner@$SERVER:public_html/rpmrebuild_repo/5.XX + # vim /therepo/rpmrebuild.repo # Check you got what you expected to get. + # rsync -avP /therepo/ "jhenner@$SERVER:public_html/rpmrebuild_repo/$CFME_STREAM" """ appliance = temp_appliance_preconfig_funcscope