Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Correct the steps for rebuilding the repo.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Jaroslav Henner committed Apr 23, 2020
1 parent b545fcc commit 8c9649c
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions cfme/tests/configure/test_register_appliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8c9649c

Please sign in to comment.