generated from sig_core/wiki-template
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>
97 lines
4.6 KiB
Markdown
97 lines
4.6 KiB
Markdown
---
|
|
title: QA:Testcase Packages No Insights
|
|
author: Trevor Cooper
|
|
revision_date: 2022-04-24
|
|
rc:
|
|
prod: Rocky Linux
|
|
ver: 8
|
|
level: Final
|
|
---
|
|
|
|
!!! info "Associated release criterion"
|
|
This test case is associated with the [Release_Criteria#repositories-must-match-upstream](../release_criteria.md#repositories-must-match-upstream) 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 test will verify that `insights-client` package is not declared be installed as part of a package group.
|
|
|
|
## Setup
|
|
1. Obtain access to an environment with the `dnf` command.
|
|
2. Download the ISO to be tested to that machine.
|
|
|
|
## How to test
|
|
1. Mount the ISO to be tested locally.
|
|
2. Determine the path to the `comps` file(s) on the ISO.
|
|
3. Verify that `insights-client` is not declared to be installed automatically.
|
|
- Example 1:<br>`find /media -name "*comps*.xml" -exec grep -H "insights-client" '{}' \;`
|
|
- Example 2:<br>`dnf --refresh --repofrompath BaseOS,/media/BaseOS --repo BaseOS --repofrompath AppStream,/media/AppStream --repo AppStream groupinfo base | grep -E ":|insights"`
|
|
4. Unmount the ISO.
|
|
|
|
## Expected Results
|
|
1. `insights-client` is not declared to be installed by default.
|
|
|
|
<h3>Sample Output</h3>
|
|
|
|
=== "Success"
|
|
|
|
|
|
!!! info "UPDATE SAMPLE"
|
|
NOTE: This example needs to be refreshed when the 8.6 ISO has been produced. As seen in the Failure section below the `Rocky-8.5-x86_64-dvd1.iso` includes the `insights-client` as part of the `base` group. The package should be included on the DVD ISO but should **not** be installed automatically.
|
|
|
|
```
|
|
$ sudo mount -o loop Rocky-8.5-aarch64-minimal.iso /media
|
|
mount: /media: WARNING: device write-protected, mounted read-only.
|
|
|
|
$ dnf --refresh --repofrompath BaseOS,/media/BaseOS --repo BaseOS --repofrompath Minimal,/media/Minimal --repo Minimal search insights-client
|
|
Added BaseOS repo from /media/BaseOS
|
|
Added Minimal repo from /media/Minimal
|
|
BaseOS 3.8 MB/s | 3.9 kB 00:00
|
|
Minimal 3.7 MB/s | 3.8 kB 00:00
|
|
No matches found.
|
|
|
|
$ find /media -name "*comps*.xml" -exec grep -H "insights-client" '{}' \;
|
|
|
|
$ dnf --refresh --repofrompath BaseOS,/media/BaseOS --repo BaseOS --repofrompath Minimal,/media/Minimal --repo Minimal groupinfo base | grep -E ":|insights"
|
|
BaseOS 3.8 MB/s | 3.9 kB 00:00
|
|
Minimal 3.7 MB/s | 3.8 kB 00:00
|
|
Group: Base
|
|
Description: The standard installation of Rocky Linux.
|
|
Mandatory Packages:
|
|
Default Packages:
|
|
Optional Packages:
|
|
|
|
$ sudo umount /media
|
|
```
|
|
|
|
=== "Failure"
|
|
|
|
```
|
|
$ sudo mount -o loop Rocky-8.5-x86_64-dvd1.iso /media
|
|
mount: /media: WARNING: device write-protected, mounted read-only.
|
|
|
|
$ dnf --refresh --repofrompath BaseOS,/media/BaseOS --repo BaseOS --repofrompath AppStream,/media/AppStream --repo AppStream search insights-client
|
|
Added BaseOS repo from /media/BaseOS
|
|
Added AppStream repo from /media/AppStream
|
|
BaseOS 3.8 MB/s | 3.9 kB 00:00
|
|
AppStream 4.2 MB/s | 4.3 kB 00:00
|
|
================================= Name Exactly Matched: insights-client ==================================
|
|
insights-client.noarch : Uploads Insights information to Red Hat on a periodic basis
|
|
|
|
$ find /media -name "*comps*.xml" -exec grep -H "insights-client" '{}' \;
|
|
/media/AppStream/repodata/a6742e1300e1c786af91656b152d3b98bb7aff598e650509381417970e1f1b7e-comps-AppStream.x86_64.xml: <packagereq type="default">insights-client</packagereq>
|
|
/media/AppStream/repodata/a6742e1300e1c786af91656b152d3b98bb7aff598e650509381417970e1f1b7e-comps-AppStream.x86_64.xml: <packagereq type="default">insights-client</packagereq>
|
|
|
|
$ dnf --refresh --repofrompath BaseOS,/media/BaseOS --repo BaseOS --repofrompath AppStream,/media/AppStream --repo AppStream groupinfo base | grep -E ":|insights"
|
|
BaseOS 3.8 MB/s | 3.9 kB 00:00
|
|
AppStream 4.2 MB/s | 4.3 kB 00:00
|
|
Group: Base
|
|
Description: The standard installation of Rocky Linux.
|
|
Mandatory Packages:
|
|
Default Packages:
|
|
insights-client
|
|
Optional Packages:
|
|
|
|
$ sudo umount /media
|
|
```
|
|
|
|
{% include 'testing/qa_testcase_bottom.md' %}
|