From Fedora Project Wiki
(Start the document.)
 
(Finish testing procedure)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=The package with various Fedora Kickstart files must be present in Fedora repository. This test proves that the package exists and has required content.
|description=The package with various Fedora Kickstart files must be present in Fedora repository. This test proves that the package exists and has required content.
|setup=Optionally include information on preparing the test environment
|actions=
|actions=
Be as specific as required for the target audience.  
<ol>
# Start here ...
<li> Check that the <code>spin-kickstarts</code> package is available in the Fedora repository <pre>dnf search spin-kickstarts</pre></li>
# Next do this ...
<li> Install the package <pre>dnf install spin-kickstarts</pre></li>
# Finally click that
<li> Check that <code>fedora-repo.ks</code>, <code>fedora-repo-not-rawhide.ks</code>, and <code>fedora-repo-rawhide.ks</code> are present in the system. <pre>find /usr/share -iname "fedora-repo*ks"</pre></li>
<li> List links to repositories from the <code>fedora-repo-not-rawhide.ks</code> file. <pre>cat /usr/share/spin-kickstarts | grep mirrorlist</pre></li>
<li> Check that all required repositories are mentioned, and <strong>updates-testing</strong> are commented out, such as <pre>repo --name=fedora --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
repo --name=updates --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
#repo --name=updates-testing --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-f$releasever&arch=$basearch
</pre></li>
<li> Repeat steps 4 and 5 for the <code>fedora-repo-rawhide.ks</code> file. </li>
<li>Check that the <code>fedora-repo.ks</code> file includes links to both <code>fedora-repo-not-rawhide.ks</code> and <code>fedora-repo-rawhide.ks</code> files, and that the correct file is uncommented according to the tested Fedora release.  The following example represents a non-rawhide release of Fedora: <pre># %include fedora-repo-rawhide.ks
%include fedora-repo-not-rawhide.ks</pre></li>
</ol>
|results=
|results=
The following must be true to consider this a successful test run. Be brief ... but explicit.  
This test is considered successful, when the following criteria are fulfilled.
# Step #1 completes without error
# The <code>spin-kickstarts</code> package exists in the repository.
# The system boots into runlevel 5
# The <code>spin-kickstarts</code> package can be installed without any errors or warnings.
# Program completes with exit code 0
# The kickstart files are present on the system, after the installation.
|optional=Optionally provide hints for exploratory testing.
# Kickstart files for repositories are present in the <code>spin-kickstarts</code> directory.
# All files have correct content (see above)
}}
}}

Revision as of 14:04, 30 May 2018

Description

The package with various Fedora Kickstart files must be present in Fedora repository. This test proves that the package exists and has required content.


How to test

  1. Check that the spin-kickstarts package is available in the Fedora repository
    dnf search spin-kickstarts
  2. Install the package
    dnf install spin-kickstarts
  3. Check that fedora-repo.ks, fedora-repo-not-rawhide.ks, and fedora-repo-rawhide.ks are present in the system.
    find /usr/share -iname "fedora-repo*ks"
  4. List links to repositories from the fedora-repo-not-rawhide.ks file.
    cat /usr/share/spin-kickstarts | grep mirrorlist
  5. Check that all required repositories are mentioned, and updates-testing are commented out, such as
    repo --name=fedora --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
    repo --name=updates --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
    #repo --name=updates-testing --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-f$releasever&arch=$basearch
    
  6. Repeat steps 4 and 5 for the fedora-repo-rawhide.ks file.
  7. Check that the fedora-repo.ks file includes links to both fedora-repo-not-rawhide.ks and fedora-repo-rawhide.ks files, and that the correct file is uncommented according to the tested Fedora release. The following example represents a non-rawhide release of Fedora:
    # %include fedora-repo-rawhide.ks
    %include fedora-repo-not-rawhide.ks

Expected Results

This test is considered successful, when the following criteria are fulfilled.

  1. The spin-kickstarts package exists in the repository.
  2. The spin-kickstarts package can be installed without any errors or warnings.
  3. The kickstart files are present on the system, after the installation.
  4. Kickstart files for repositories are present in the spin-kickstarts directory.
  5. All files have correct content (see above)