From Fedora Project Wiki

(initial template)
 
m (Converted to use QA/Test_Case template)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
= Description =
{{QA/Test_Case
A brief description of the functionality being tested.
|description=A simple check that the repodata (yum metadata) for a given repository is valid.
 
|actions=
= How to test =
# open <code>repodata/repomd.xml</code>
 
# confirm that there is a <code>&lt;data&gt;</code> element with <code>type="primary"</code> or <code>type="primary_db"</code>
 
# confirm that there is a <code>&lt;data&gt;</code> element with <code>type="filelists"</code> or <code>type="filelists_db"</code>
# Start here ...
# confirm that there is a <code>&lt;data&gt;</code> element with <code>type="other"</code> or <code>type="other_db"</code>
# Next do this ...
# confirm that there is a <code>&lt;data&gt;</code> element with <code>type="group"</code> or <code>type="group_gz"</code>
# Finally click that
# For each element listed above, check that the file listed in the <code>&lt;location&gt;</code> element is:
 
#* present,
= Expected Results =
#* non-empty, and
 
#* matches the checksum listed in the <code>&lt;checksum&gt;</code> element
 
|results=
# Step #1 completes without error
# <code>repomd.xml</code> exists
# The system boots into runlevel 5
# <code>repomd.xml</code> contains entries for <code>primary</code>, <code>filelists</code>, <code>group</code>, and <code>other</code> metadata
# Program completes wth exit code 0
# the files referenced in those entries are present, non-empty, and match the listed checksums
 
}}
 


[[Category:Rawhide Acceptance Test Cases]]
[[Category:Rawhide Acceptance Test Cases]]

Latest revision as of 12:07, 30 June 2009

Description

A simple check that the repodata (yum metadata) for a given repository is valid.


How to test

  1. open repodata/repomd.xml
  2. confirm that there is a <data> element with type="primary" or type="primary_db"
  3. confirm that there is a <data> element with type="filelists" or type="filelists_db"
  4. confirm that there is a <data> element with type="other" or type="other_db"
  5. confirm that there is a <data> element with type="group" or type="group_gz"
  6. For each element listed above, check that the file listed in the <location> element is:
    • present,
    • non-empty, and
    • matches the checksum listed in the <checksum> element

Expected Results

  1. repomd.xml exists
  2. repomd.xml contains entries for primary, filelists, group, and other metadata
  3. the files referenced in those entries are present, non-empty, and match the listed checksums