Skip to content

Commit

Permalink
Add 'Warning: skipped PGP checks...' to expected outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-goode authored and m-blaha committed Aug 1, 2023
1 parent 3a46c17 commit 5fcdc98
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 5 deletions.
4 changes: 4 additions & 0 deletions dnf-behave-tests/dnf/comps-group.feature
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,8 @@ Scenario: Install an environment with a nonexistent group
And stderr is
"""
No match for group from environment: nonexistent-group
Warning: skipped PGP checks for 1 package(s).
"""


Expand All @@ -516,6 +518,8 @@ Scenario: Install an environment using @^environment syntax
And stderr is
"""
No match for group from environment: nonexistent-group
Warning: skipped PGP checks for 1 package(s).
"""


Expand Down
4 changes: 4 additions & 0 deletions dnf-behave-tests/dnf/distro-sync.feature
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ Scenario: distro-sync list of packages with --skip-unavailable, one of them is n
And stderr is
"""
No match for argument: nosuchpkg
Warning: skipped PGP checks for 1 package(s).
"""
And Transaction is following
| Action | Package |
Expand Down Expand Up @@ -159,6 +161,8 @@ Scenario: distro-sync list of packages with --skip-unavailable, one of them is n
And stderr is
"""
Packages for argument 'dwm' available, but not installed.
Warning: skipped PGP checks for 1 package(s).
"""
And Transaction is following
| Action | Package |
Expand Down
6 changes: 6 additions & 0 deletions dnf-behave-tests/dnf/downgrade.feature
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ Scenario: Downgrade list of packages with --skip-unavailable, one of them is not
And stderr is
"""
No match for argument: nosuchpkg
Warning: skipped PGP checks for 1 package(s).
"""
And Transaction is following
| Action | Package |
Expand Down Expand Up @@ -149,6 +151,8 @@ Scenario: Downgrade list of packages with --skip-unavailable, one of them is not
And stderr is
"""
Packages for argument 'abcde' available, but not installed.
Warning: skipped PGP checks for 1 package(s).
"""
And Transaction is following
| Action | Package |
Expand Down Expand Up @@ -180,6 +184,8 @@ Scenario: Downgrade mixture of not available/not installed/not downgradable/down
No match for argument: nosuchpkg
The lowest available version of the "wget.x86_64" package is already installed, cannot downgrade it.
Packages for argument 'abcde' available, but not installed.
Warning: skipped PGP checks for 1 package(s).
"""
And Transaction is following
| Action | Package |
Expand Down
10 changes: 8 additions & 2 deletions dnf-behave-tests/dnf/download-source.feature
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ Given I make packages from repository "dnf-ci-fedora" accessible via http
And I delete directory "/{context.dnf.repos[dnf-ci-fedora].path}/noarch"
When I execute dnf with args "--setopt=keepcache=true install setup"
Then the exit code is 0
And stderr is empty
And stderr is
"""
Warning: skipped PGP checks for 1 package(s).
"""
And Transaction is following
| Action | Package |
| install | setup-0:2.12.1-1.fc29.noarch |
Expand All @@ -126,7 +129,10 @@ Given I make packages from repository "dnf-ci-fedora" accessible via http
And I delete directory "/{context.dnf.repos[dnf-ci-fedora].path}/noarch"
When I execute dnf with args "install setup"
Then the exit code is 0
And stderr is empty
And stderr is
"""
Warning: skipped PGP checks for 1 package(s).
"""
And Transaction is following
| Action | Package |
| install | setup-0:2.12.1-1.fc29.noarch |
Expand Down
1 change: 1 addition & 0 deletions dnf-behave-tests/dnf/install-file-conflicts.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ Scenario: An error is reported when a package with a file conflict is tried to b
And stderr is
"""
Transaction failed: Rpm transaction failed.
Warning: skipped PGP checks for 1 package(s).
- file /usr/lib/package/conflicting-file from install of package-two-0:1.0-1.x86_64 conflicts with file from package package-one-0:1.0-1.x86_64
"""
2 changes: 2 additions & 0 deletions dnf-behave-tests/dnf/install-non-existent.feature
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ Scenario: Install an existent and an non-existent package with --skip-unavailabl
And stderr is
"""
No match for argument: non-existent-package
Warning: skipped PGP checks for 1 package(s).
"""
And Transaction is following
| Action | Package |
Expand Down
15 changes: 12 additions & 3 deletions dnf-behave-tests/dnf/install-xml-base.feature
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ Given I make packages from repository "dnf-ci-fedora" accessible via http
And I use repository "dnf-ci-fedora"
When I execute dnf with args "--setopt=keepcache=true install setup"
Then the exit code is 0
And stderr is empty
And stderr is
"""
Warning: skipped PGP checks for 1 package(s).
"""
And Transaction is following
| Action | Package |
| install | setup-0:2.12.1-1.fc29.noarch |
Expand All @@ -42,7 +45,10 @@ Given I make packages from repository "dnf-ci-fedora" accessible via http
And I use repository "dnf-ci-fedora" as http
When I execute dnf with args "install setup"
Then the exit code is 0
And stderr is empty
And stderr is
"""
Warning: skipped PGP checks for 1 package(s).
"""
And Transaction is following
| Action | Package |
| install | setup-0:2.12.1-1.fc29.noarch |
Expand All @@ -59,7 +65,10 @@ Given I make packages from repository "dnf-ci-fedora" accessible via http
When I execute dnf with args "install setup"
Then file "/{context.dnf.repos[dnf-ci-fedora].path}/noarch/setup-2.12.1-1.fc29.noarch.rpm" exists
And the exit code is 0
And stderr is empty
And stderr is
"""
Warning: skipped PGP checks for 1 package(s).
"""
And Transaction is following
| Action | Package |
| install | setup-0:2.12.1-1.fc29.noarch |
Expand Down
1 change: 1 addition & 0 deletions dnf-behave-tests/dnf/obsoletes.feature
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ Scenario: Obsoleted package is not installed when group contains both obsoleter
| group-install | Obsoleter and obsoleted |
And stderr is
"""
Warning: skipped PGP checks for 1 package(s).
"""


Expand Down
4 changes: 4 additions & 0 deletions dnf-behave-tests/dnf/reinstall.feature
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ Scenario: Reinstall list of packages with --skip-unavailable, one of them is not
And stderr is
"""
No match for argument: nosuchpkg
Warning: skipped PGP checks for 1 package(s).
"""
And Transaction is following
| Action | Package |
Expand All @@ -93,6 +95,8 @@ Scenario: Reinstall list of packages with --skip-unavailable, one of them is not
And stderr is
"""
Packages for argument 'abcde' available, but not installed.
Warning: skipped PGP checks for 1 package(s).
"""
And Transaction is following
| Action | Package |
Expand Down
4 changes: 4 additions & 0 deletions dnf-behave-tests/dnf/upgrade.feature
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ Scenario: Upgrade list of packages with --skip-unavailable, one of them is not a
And stderr is
"""
No match for argument: nosuchpkg
Warning: skipped PGP checks for 1 package(s).
"""
And Transaction is following
| Action | Package |
Expand Down Expand Up @@ -107,6 +109,8 @@ Scenario: Upgrade list of packages with --skip-unavailable, one of them is not i
And stderr is
"""
Packages for argument 'dwm' available, but not installed.
Warning: skipped PGP checks for 1 package(s).
"""
And Transaction is following
| Action | Package |
Expand Down

0 comments on commit 5fcdc98

Please sign in to comment.