]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-apt-key
allow to specify fingerprints in 'apt-key del'
[apt.git] / test / integration / test-apt-key
index e863e54a42c9d118aec78482772c20d315943d8d..6bece40d7c9831c0c1224998c6db77227b422ca1 100755 (executable)
@@ -72,6 +72,14 @@ pub   2048R/DBAC8DAE 2010-08-18'
        testsuccess test ! -e rootdir/etc/apt/trusted.gpg.d/joesixpack.gpg
        testsuccess cmp keys/joesixpack.pub rootdir/etc/apt/trusted.gpg.d/joesixpack.gpg~
 
+       msgtest 'Test key removal with' 'fingerprint'
+       cleanplate
+       cp -a keys/joesixpack.pub rootdir/etc/apt/trusted.gpg.d/joesixpack.gpg
+       testsuccess --nomsg aptkey --fakeroot del 34A8E9D18DB320F367E8EAA05A90D141DBAC8DAE
+       testempty aptkey list
+       testsuccess test ! -e rootdir/etc/apt/trusted.gpg.d/joesixpack.gpg
+       testsuccess cmp keys/joesixpack.pub rootdir/etc/apt/trusted.gpg.d/joesixpack.gpg~
+
        msgtest 'Test key removal with' 'single key in softlink'
        cleanplate
        ln -s $(readlink -f ./keys/joesixpack.pub) rootdir/etc/apt/trusted.gpg.d/joesixpack.gpg