Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various fixes #925

Merged
merged 3 commits into from
Sep 18, 2024
Merged

Various fixes #925

merged 3 commits into from
Sep 18, 2024

Conversation

thozza
Copy link
Member

@thozza thozza commented Sep 12, 2024

  • Fix loading of repositories of tested distros in unit tests
  • Fix TestDistro_ManifestFIPSWarning
  • Distro / ImageType: remove PackageSetsChains(), because it was not used for anything.

@thozza thozza marked this pull request as draft September 12, 2024 13:59
@thozza thozza marked this pull request as ready for review September 12, 2024 14:13
pkg/reporegistry/reporegistry.go Outdated Show resolved Hide resolved
pkg/distro/distro_test.go Show resolved Hide resolved
@thozza thozza marked this pull request as draft September 13, 2024 08:49
The NewTestedDefault() was returning an empty repositories list when
used within unit tests. And unfortunately, this didn't trigger any error
and no test was checking that the list is not empty, in addition to
checking the error.

Modify `Reporegistry.New()` to return error if no repos were loaded.

Modify the `NewTestedDefault()` to consistently determine the path to
load repositories from, regardless of the situation in which it is being
called.

Signed-off-by: Tomáš Hozza <[email protected]>
Fix the test case to correctly skip RHEL-7 distros, after the loading
of test distros has been fixed.

Signed-off-by: Tomáš Hozza <[email protected]>
Remove the function from the ImageType interface, because it is not used
anywhere and it just adds to the potential confusion.

Signed-off-by: Tomáš Hozza <[email protected]>
@thozza thozza marked this pull request as ready for review September 16, 2024 14:39
Copy link
Member

@achilleas-k achilleas-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice little set of fixes! <3

Copy link
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@thozza thozza added this pull request to the merge queue Sep 18, 2024
Merged via the queue into osbuild:main with commit abf8d87 Sep 18, 2024
16 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants