forked from rpm-software-management/rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use keyring to implement rpmkeys --list
This changes the output of keys --list to show the full fingerprint. It also requires the use of the fingerprint or full key ID for querying specific keys. Resolves: rpm-software-management#3332
- Loading branch information
Showing
4 changed files
with
79 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,11 +97,15 @@ hello-2.0-1.x86_64 | |
|
||
RPMTEST_CHECK([ | ||
runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub | ||
runroot rpmkeys --import /data/keys/alice.asc | ||
runroot rpmkeys --import /data/keys/rpm.org-ed25519-test.pub | ||
runroot rpm -qa | sort | ||
], | ||
[0], | ||
[foo-1.0-1.noarch | ||
gpg-pubkey-1964c5fc-58e63918 | ||
gpg-pubkey-757bf69e-661d22a8 | ||
gpg-pubkey-eb04e625-62521e00 | ||
hello-2.0-1.x86_64 | ||
], | ||
[]) | ||
|
@@ -110,32 +114,45 @@ RPMTEST_CHECK([ | |
runroot rpmkeys --list | ||
], | ||
[0], | ||
[1964c5fc-58e63918: rpm.org RSA testkey <[email protected]> public key | ||
[771b18d3d7baa28734333c424344591e1964c5fc rpm.org RSA testkey <[email protected]> public key | ||
152bb32fd9ca982797e835cfb0645aec757bf69e rpm.org ed25519 testkey <[email protected]> public key | ||
b6542f92f30650c36b6f41bcb3a771bfeb04e625 Alice <[email protected]> public key | ||
], | ||
[]) | ||
|
||
RPMTEST_CHECK([ | ||
runroot rpmkeys --list 1964c5fc | ||
runroot rpmkeys --list 771b18d3d7baa28734333c424344591e1964c5fc | ||
], | ||
[0], | ||
[1964c5fc-58e63918: rpm.org RSA testkey <[email protected]> public key | ||
[771b18d3d7baa28734333c424344591e1964c5fc rpm.org RSA testkey <[email protected]> public key | ||
], | ||
[]) | ||
|
||
RPMTEST_CHECK([ | ||
runroot rpmkeys --list 4344591e1964c5fc | ||
], | ||
[0], | ||
[771b18d3d7baa28734333c424344591e1964c5fc rpm.org RSA testkey <[email protected]> public key | ||
], | ||
[]) | ||
|
||
|
||
RPMTEST_CHECK([ | ||
runroot rpmkeys --list XXX | ||
], | ||
[1], | ||
[package gpg-pubkey-XXX is not installed | ||
[Key XXX not found | ||
], | ||
[]) | ||
|
||
RPMTEST_CHECK([ | ||
runroot rpmkeys --delete 1964c5fc | ||
runroot rpmkeys --delete 757bf69e | ||
runroot rpmkeys --delete eb04e625 | ||
runroot rpmkeys --list | ||
], | ||
[1], | ||
[package gpg-pubkey is not installed | ||
[No keys installed | ||
], | ||
[]) | ||
RPMTEST_CLEANUP | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters