From Fedora Project Wiki
(initial template) |
(first version) |
||
Line 1: | Line 1: | ||
= Description = | = Description = | ||
A | |||
A simple check that the repodata (yum metadata) for a given repository is valid. | |||
= How to test = | = How to test = | ||
# open <code>repodata/repomd.xml</code> | |||
# | # confirm that there is a <code><data></code> element with <code>type="primary"</code> or <code>type="primary_db"</code> | ||
# | # confirm that there is a <code><data></code> element with <code>type="filelists"</code> or <code>type="filelists_db"</code> | ||
# | # confirm that there is a <code><data></code> element with <code>type="other"</code> or <code>type="other_db"</code> | ||
# confirm that there is a <code><data></code> element with <code>type="group"</code> or <code>type="group_gz"</code> | |||
# For each element listed above, check that the file listed in the <code><location></code> element is: | |||
#* present, | |||
#* non-empty, and | |||
#* matches the checksum listed in the <code><checksum></code> element | |||
= Expected Results = | = Expected Results = | ||
# <code>repomd.xml</code> exists | |||
# | # <code>repomd.xml</code> contains entries for <code>primary</code>, <code>filelists</code>, <code>group</code>, and <code>other</code> metadata | ||
# | # 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]] |
Revision as of 21:07, 25 June 2009
Description
A simple check that the repodata (yum metadata) for a given repository is valid.
How to test
- open
repodata/repomd.xml
- confirm that there is a
<data>
element withtype="primary"
ortype="primary_db"
- confirm that there is a
<data>
element withtype="filelists"
ortype="filelists_db"
- confirm that there is a
<data>
element withtype="other"
ortype="other_db"
- confirm that there is a
<data>
element withtype="group"
ortype="group_gz"
- 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
repomd.xml
existsrepomd.xml
contains entries forprimary
,filelists
,group
, andother
metadata- the files referenced in those entries are present, non-empty, and match the listed checksums