forked from testing/wiki
b7177ba1b1
* update testing team primary page * add mkdocs-macros-plugin to support page includes * add release_criteria page * add collapsible admonitions * add QA/Testcase_Template * add testcase examples * hide the QA directory from navigation while building content * add support for tabbed content * Update index.md * Update release_criteria.md * Update rc_content_example_only.md * Update Testcase_Boot_Methods_Boot_Iso.md * Update Testcase_Boot_Methods_Dvd.md * add mkdocs-autolinks-plugin - autogenerate relative URLs for interpage links * rewrite Fedora example text * add templates and QA Test Case index * add testcase for USB media creation and testing * add testcase for basic-graphics-mode requirement * add testcases for no-broken-packages requirement * add testcases for repositories must match upstream requirement * add command samples and sample output to no broken packages testcases Co-authored-by: Alan Marshall <alangm1001@gmail.com> Co-authored-by: Trevor Cooper <tcooper@rockylinux.org> Signed-off-by: Neil Hanlon <neil@resf.org>
3.2 KiB
3.2 KiB
title | author | revision_date | rc | ||||||
---|---|---|---|---|---|---|---|---|---|
QA:Testcase Media Repoclosure | Trevor Cooper | 2022-04-24 |
|
!!! info "Associated release criterion" This test case is associated with the Release_Criteria#no-broken-packages release criterion. If you are doing release validation testing, a failure of this test case may be a breach of that release criterion.
Description
This testcase will verify that the offline repository included on release blocking images will not contain broken dependencies.
Setup
- Obtain access to an environment with the
dnf repoclosure
command. - Download the ISO to be tested to that machine.
How to test
- Mount the ISO to be tested locally.
- Example:
mount -o loop Rocky-8.5-x86_64-minimal.iso /media
- Example:
- Determine the path to the
repodata
directory(ies) on the ISO.- Example:
find /media -name repodata
- Example:
- Run the
dnf repoclosure
command on the mounted ISO.- Example:
dnf --verbose repoclosure --repofrompath BaseOS,/media/BaseOS --repo BaseOS --repofrompath Minimal,/media/Minimal --repo Minimal
- Example:
- Unmount the ISO.
- Example:
umount /media
- Example:
Expected Results
- The
dnf repoclosure
command does not generate any errors.
Sample Output
=== "Success"
```
$ sudo mount -o loop Rocky-8.5-x86_64-minimal.iso /media
mount: /media: WARNING: device write-protected, mounted read-only.
[vagrant@localhost ~]$ dnf --refresh repoclosure \
--repofrompath BaseOS,/media/BaseOS --repo BaseOS \
--repofrompath Minimal,/media/Minimal --repo Minimal
Added BaseOS repo from /media/BaseOS
Added Minimal repo from /media/Minimal
BaseOS 102 MB/s | 2.6 MB 00:00
Minimal 90 kB/s | 384 B 00:00
$ sudo umount /media
```
=== "Failure"
__NOTE: In this example the content of the `Rocky-8.5-x86_64-minimal.iso` was copied to `/tmp` then the BaseOS repository was modified to remove the `setup-2.12.2-6.el8.noarch.rpm` package and the repository metadata was regenerated.__
```
[vagrant@localhost ~]$ dnf --refresh repoclosure \
--repofrompath BaseOS,/tmp/media/BaseOS --repo BaseOS \
--repofrompath Minimal,/tmp/media/Minimal --repo Minimal
Added BaseOS repo from /tmp/media/BaseOS
Added Minimal repo from /tmp/media/Minimal
BaseOS 3.7 MB/s | 3.8 kB 00:00
Minimal 3.7 MB/s | 3.8 kB 00:00
package: basesystem-11-5.el8.noarch from BaseOS
unresolved deps:
setup
package: dump-1:0.4-0.36.b46.el8.x86_64 from BaseOS
unresolved deps:
setup
package: filesystem-3.8-6.el8.x86_64 from BaseOS
unresolved deps:
setup
package: initscripts-10.00.15-1.el8.x86_64 from BaseOS
unresolved deps:
setup
package: rpcbind-1.2.5-8.el8.x86_64 from BaseOS
unresolved deps:
setup
package: shadow-utils-2:4.6-14.el8.x86_64 from BaseOS
unresolved deps:
setup
Error: Repoclosure ended with unresolved dependencies.
```
{% include 'testing/qa_testcase_bottom.md' %}