Skip to content

Commit 2ef7d37

Browse files
committed
manifest: Update test scenarios with multiarch downloads
Test downloading packages different than a system basearch
1 parent 6bd910d commit 2ef7d37

File tree

4 files changed

+65
-15
lines changed

4 files changed

+65
-15
lines changed

dnf-behave-tests/dnf/plugins-core/manifest.feature

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -524,25 +524,29 @@ Scenario: Download packages from the manifest
524524
| {context.dnf.tempdir}/packages.manifest/wget-1.19.5-5.fc29.x86_64.rpm | file://{context.dnf.fixturesdir}/repos/dnf-ci-fedora/x86_64/wget-1.19.5-5.fc29.x86_64.rpm |
525525

526526

527-
Scenario: Download multiarch packages from the manifest
528-
Given I use repository "security-upgrade-multilib"
529-
And I successfully execute dnf with args "manifest new B-1-1 --archs x86_64 i686"
530-
When I execute dnf with args "manifest download --archs x86_64 i686"
527+
Scenario: Download multiarch packages from multiarch manifest
528+
Given I use repository "manifest-multiarch"
529+
And I successfully execute dnf with args "manifest new foo --archs x86_64 ppc64"
530+
When I execute dnf with args "manifest download --archs x86_64 ppc64"
531531
Then the exit code is 0
532532
And file sha256 checksums are following
533-
| Path | sha256 |
534-
| {context.dnf.tempdir}/packages.manifest/B-1-1.i686.rpm | file://{context.dnf.fixturesdir}/repos/security-upgrade-multilib/i686/B-1-1.i686.rpm |
535-
| {context.dnf.tempdir}/packages.manifest/B-1-1.x86_64.rpm | file://{context.dnf.fixturesdir}/repos/security-upgrade-multilib/x86_64/B-1-1.x86_64.rpm |
533+
| Path | sha256 |
534+
| {context.dnf.tempdir}/packages.manifest/foo-1.0-1.x86_64.rpm | file://{context.dnf.fixturesdir}/repos/manifest-multiarch/x86_64/foo-1.0-1.x86_64.rpm |
535+
| {context.dnf.tempdir}/packages.manifest/foo-1.0-1.ppc64.rpm | file://{context.dnf.fixturesdir}/repos/manifest-multiarch/ppc64/foo-1.0-1.ppc64.rpm |
536+
| {context.dnf.tempdir}/packages.manifest/waldo-1.0-1.noarch.rpm | file://{context.dnf.fixturesdir}/repos/manifest-multiarch/noarch/waldo-1.0-1.noarch.rpm |
536537

537538

538-
Scenario: Download packages from the arch-specific manifest
539-
Given I use repository "security-upgrade-multilib"
540-
And I successfully execute dnf with args "manifest new B-1-1 --archs x86_64 i686 --per-arch"
541-
When I execute dnf with args "manifest download"
542-
Then the exit code is 0
543-
And file sha256 checksums are following
544-
| Path | sha256 |
545-
| {context.dnf.tempdir}/packages.manifest.x86_64/B-1-1.x86_64.rpm | file://{context.dnf.fixturesdir}/repos/security-upgrade-multilib/x86_64/B-1-1.x86_64.rpm |
539+
Scenario: Download multiarch packages from per-arch manifests
540+
Given I use repository "manifest-multiarch"
541+
And I successfully execute dnf with args "manifest new foo --archs x86_64 ppc64 --per-arch"
542+
And I successfully execute dnf with args "manifest download --archs x86_64"
543+
And I successfully execute dnf with args "manifest download --archs ppc64"
544+
Then file sha256 checksums are following
545+
| Path | sha256 |
546+
| {context.dnf.tempdir}/packages.manifest.x86_64/foo-1.0-1.x86_64.rpm | file://{context.dnf.fixturesdir}/repos/manifest-multiarch/x86_64/foo-1.0-1.x86_64.rpm |
547+
| {context.dnf.tempdir}/packages.manifest.x86_64/waldo-1.0-1.noarch.rpm | file://{context.dnf.fixturesdir}/repos/manifest-multiarch/noarch/waldo-1.0-1.noarch.rpm |
548+
| {context.dnf.tempdir}/packages.manifest.ppc64/foo-1.0-1.ppc64.rpm | file://{context.dnf.fixturesdir}/repos/manifest-multiarch/ppc64/foo-1.0-1.ppc64.rpm |
549+
| {context.dnf.tempdir}/packages.manifest.ppc64/waldo-1.0-1.noarch.rpm | file://{context.dnf.fixturesdir}/repos/manifest-multiarch/noarch/waldo-1.0-1.noarch.rpm |
546550

547551

548552
Scenario: Install packages from the manifest
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Name: bar
2+
Version: 1.0
3+
Release: 1
4+
5+
License: Public Domain
6+
URL: None
7+
Summary: Dummy
8+
9+
%description
10+
Dummy.
11+
12+
%files
13+
14+
%changelog
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Name: foo
2+
Version: 1.0
3+
Release: 1
4+
5+
Requires: waldo
6+
7+
License: Public Domain
8+
URL: None
9+
Summary: Dummy
10+
11+
%description
12+
Dummy.
13+
14+
%files
15+
16+
%changelog
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Name: waldo
2+
Version: 1.0
3+
Release: 1
4+
5+
BuildArch: noarch
6+
7+
License: Public Domain
8+
URL: None
9+
Summary: Dummy
10+
11+
%description
12+
Dummy.
13+
14+
%files
15+
16+
%changelog

0 commit comments

Comments
 (0)