Skip to content

Commit

Permalink
Fix expected repodata file names because of different compression format
Browse files Browse the repository at this point in the history
There is a different createrepo_c compression default on RHEL 9 and
CentOS Stream 9 than on Fedora.

The change in reposync tests was done first in commit
8a88d35 , and the tests for RHEL-40914
on the testing branch used for Fedora were done according to that. This
fixes the tests for RHEL and CentOS Stream.
  • Loading branch information
pkratoch authored and kontura committed Oct 14, 2024
1 parent 344e0e7 commit 6649110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dnf-behave-tests/dnf/plugins-core/reposync.feature
Original file line number Diff line number Diff line change
Expand Up @@ -327,15 +327,15 @@ Scenario: Reposync with --norepopath and --metadata-path ad --download-metadata
Given I use repository "dnf-ci-thirdparty-updates" as http
When I execute dnf with args "reposync --download-path={context.dnf.tempdir} --norepopath --metadata-path={context.dnf.tempdir}/downloadedmetadata --download-metadata"
Then the exit code is 0
And the text file contents of "/{context.dnf.tempdir}/downloadedmetadata/repodata/primary.xml.zst" and "/{context.dnf.fixturesdir}/repos/dnf-ci-thirdparty-updates/repodata/primary.xml.zst" do not differ
And the files "{context.dnf.tempdir}/downloadedmetadata/repodata/primary.xml.gz" and "{context.dnf.fixturesdir}/repos/dnf-ci-thirdparty-updates/repodata/primary.xml.gz" do not differ


@RHEL-40914
Scenario: Reposync with --norepopath and --metadata-path ad --downloadcomps options
Given I use repository "dnf-ci-thirdparty-updates" as http
When I execute dnf with args "reposync --download-path={context.dnf.tempdir} --norepopath --metadata-path={context.dnf.tempdir}/downloadedmetadata --downloadcomps"
Then the exit code is 0
And the text file contents of "/{context.dnf.tempdir}/downloadedmetadata/comps.xml" and "/{context.dnf.fixturesdir}/repos/dnf-ci-thirdparty-updates/repodata/comps.xml.zst" do not differ
And the text file contents of "/{context.dnf.tempdir}/downloadedmetadata/comps.xml" and "/{context.dnf.fixturesdir}/repos/dnf-ci-thirdparty-updates/repodata/comps.xml" do not differ


@bz1856818
Expand Down

0 comments on commit 6649110

Please sign in to comment.