From c6d8b54d587e6258aa25c94e8eaefe70122a4d02 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 3 Aug 2016 13:19:18 -0700 Subject: [PATCH] add QA:Testcase_Anaconda_updates.img_via_installation_source Summary: we can test this quite easily by placing the standard openQA updates image in the NFS repo used for the NFS repo install tests. We just have to copy the contents of the ISO (instead of directly exporting the ISO loop mount as an NFS share) so we can add this extra file. At first I planned to combine this with the NFS repo variation test, but when you use a remote stage2 like this it changes repo setup such that the packaging.log line we look for to verify the remote repo was used does not show up, and there's enough fuzziness in how anaconda-dracut fudges inst.repo and inst.stage2 that it's probably a good idea to test them separately anyhow. Test Plan: Run the new test and the other NFS tests, make sure this one works and the others don't break. Reviewers: jskladan, garretraziel Reviewed By: garretraziel Subscribers: tflink Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D929 --- templates | 22 ++++++++++++++++++++++ tests/_support_server_postinstall.pm | 9 ++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/templates b/templates index 2fa6ecab..906fe426 100755 --- a/templates +++ b/templates @@ -402,6 +402,17 @@ }, test_suite => { name => "realmd_join_sssd" }, }, + { + machine => { name => "64bit" }, + prio => 40, + product => { + arch => "x86_64", + distri => "fedora", + flavor => "Server-dvd-iso", + version => "*", + }, + test_suite => { name => "install_updates_nfs" }, + }, { machine => { name => "64bit" }, prio => 10, @@ -1936,5 +1947,16 @@ { key => "WORKER_CLASS", value => "tap" }, ], }, + { + name => "install_updates_nfs", + settings => [ + { key => "GRUB", value => "inst.stage2=nfs:nfsvers=4:10.0.2.110:/repo" }, + { key => "TEST_UPDATES", value => "1" }, + { key => "PARALLEL_WITH", value => "support_server" }, + { key => "INSTALL_UNLOCK", value => "support_ready" }, + { key => "NICTYPE", value => "tap" }, + { key => "WORKER_CLASS", value => "tap" }, + ], + }, ], } diff --git a/tests/_support_server_postinstall.pm b/tests/_support_server_postinstall.pm index 7753bbf5..413ae403 100644 --- a/tests/_support_server_postinstall.pm +++ b/tests/_support_server_postinstall.pm @@ -41,8 +41,15 @@ sub run { assert_script_run "curl -o /export/root-user-crypted-net.ks https://jskladan.fedorapeople.org/kickstarts/root-user-crypted-net.ks"; # create the repo share assert_script_run "mkdir -p /repo"; + # create a mount point for the ISO + assert_script_run "mkdir -p /mnt/iso"; # mount the ISO there - assert_script_run "mount /dev/cdrom /repo"; + assert_script_run "mount /dev/cdrom /mnt/iso"; + # copy the contents of the ISO to the repo share + assert_script_run "cp -R /mnt/iso/* /repo"; + # put the updates image in the NFS repo (for testing this update + # image delivery method) + assert_script_run "curl -o /repo/images/updates.img https://fedorapeople.org/groups/qa/updates/updates-openqa.img"; # set up the exports assert_script_run "printf '/export 10.0.2.0/24(ro)\n/repo 10.0.2.0/24(ro)' > /etc/exports"; # open firewall port