From Fedora Project Wiki

(Undo revision 281100 by Hongqing (talk))
(clarify HTTPS, per https://lists.fedoraproject.org/archives/list/test@lists.fedoraproject.org/thread/KJAUUCMCG2IAEAXH6OQMX45KWOFTWANB/)
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Template:Associated_release_criterion|Alpha|update-image}}
{{QA/Test_Case
{{QA/Test_Case
|description=This test will verify that anaconda can download the requested {{filename|updates.img}} file using a HTTP url. For help preparing an {{filename|updates.img}}, refer to [[Anaconda/Updates]]
|description=This test will verify that anaconda can download the requested {{filename|updates.img}} file using a HTTP/HTTPS url.
|setup=
# There is an {{filename|updates.img}} prepared for you in this test case. If it doesn't work or you want to use a different one, see [[Anaconda/Updates#create-images|this page]] for image creation instructions, and prepare your own file. A good thing to change in the image is the ''What language would you like to use during the installation process?'' text in {{filename|pyanaconda/ui/gui/spokes/welcome.glade}}, as this text is displayed on one of the first screens. Then host the {{filename|updates.img}} on a httpd server accessible by your installation.
|actions=
|actions=
<ol>
# Boot the installer while specifying the HTTP URL for the updates image. Use our provided one: <pre>inst.updates=https://fedorapeople.org/groups/qa/updates/updates-openqa.img</pre> or your own one.
<li> Prepare a valid {{filename|updates.img}} file and copy it to a httpd server accessible by your installation</li>
# If it's possible, visually identify that the update was applied. With the update above, go to the ''Installation destination'' dialog and see that the disk capacity text has a pink background instead of the default gray background:<br><table border="0"><tr border="0"><td border="0">[[Image:anaconda-updates-openqa-off.png|frame|none|Default look]]</td><td>[[Image:anaconda-updates-openqa-on.png|frame|none|Updated look]]</td></tr></table>
* A suggested approach is to create a dummy {{filename|updates.img}} with a empty file
# If it's not visually possible to confirm the update was applied (there were just code changes), verify the existence of {{filename|/tmp/updates}} directory, which should contain all updated source code files. (Please note if your updates.img doesn't change any source code files, but e.g. just an image, then the {{filename|/tmp/updates}} directory is not created.)
<pre>
# Proceed with installation
mkdir /tmp/updates
dd if=/dev/zero of=updates.img bs=1k count=1440
mke2fs updates.img
mount -o loop updates.img /tmp/updates
touch /tmp/updates/TESTING123
umount /tmp/updates</pre>
</li>
<li> Boot the installer while specifying the http URL for the updates image. For example: <pre>inst.updates=http://rhe.fedorapeople.org/install/updates.img</pre></li>
<li> Proceed with installation</li>
</ol>
|results=
|results=
# Anaconda prepares the {{filename|updates.img}} and copies its content to {{filename|/tmp/updates/}}
# Anaconda downloads the {{filename|updates.img}} and copies its content to {{filename|/tmp/updates}}. Any changes you included in the updates.img file are applied (image changes, text adjustments, source code changes, etc).
# Anaconda proceeds without error
# Anaconda proceeds without related errors}}
}}




[[Category:Recovery Test Cases]]
[[Category:Recovery Test Cases]]

Latest revision as of 09:39, 7 January 2021

Note.png
Associated release criterion
This test case is associated with the Basic_Release_Criteria#update-image release criterion. If you are doing release validation testing, a failure of this test case may be a breach of that release criterion. If so, please file a bug and nominate it as blocking the appropriate milestone, using the blocker bug nomination page.


Description

This test will verify that anaconda can download the requested updates.img file using a HTTP/HTTPS url.

Setup

  1. There is an updates.img prepared for you in this test case. If it doesn't work or you want to use a different one, see this page for image creation instructions, and prepare your own file. A good thing to change in the image is the What language would you like to use during the installation process? text in pyanaconda/ui/gui/spokes/welcome.glade, as this text is displayed on one of the first screens. Then host the updates.img on a httpd server accessible by your installation.

How to test

  1. Boot the installer while specifying the HTTP URL for the updates image. Use our provided one:
    inst.updates=https://fedorapeople.org/groups/qa/updates/updates-openqa.img
    or your own one.
  2. If it's possible, visually identify that the update was applied. With the update above, go to the Installation destination dialog and see that the disk capacity text has a pink background instead of the default gray background:
    Default look
    Updated look
  3. If it's not visually possible to confirm the update was applied (there were just code changes), verify the existence of /tmp/updates directory, which should contain all updated source code files. (Please note if your updates.img doesn't change any source code files, but e.g. just an image, then the /tmp/updates directory is not created.)
  4. Proceed with installation

Expected Results

  1. Anaconda downloads the updates.img and copies its content to /tmp/updates. Any changes you included in the updates.img file are applied (image changes, text adjustments, source code changes, etc).
  2. Anaconda proceeds without related errors