From 5b962f0d1c3908d057354df1a42dc2056e8b87f5 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 7 Dec 2008 11:58:44 -0600 Subject: Add a pactest showing failed GPG verification Signed-off-by: Dan McGee --- test/pacman/tests/sign002.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/pacman/tests/sign002.py (limited to 'test/pacman/tests') diff --git a/test/pacman/tests/sign002.py b/test/pacman/tests/sign002.py new file mode 100644 index 00000000..7b098c0d --- /dev/null +++ b/test/pacman/tests/sign002.py @@ -0,0 +1,10 @@ +self.description = "Verify a signature in a sync DB (failure)" + +sp = pmpkg("pkg1") +sp.pgpsig = "iEYEABECAAYFAkhMOggACgkQXC5GoPU6du2WVQCffVxF8GKXJIY4juJBIw/ljLrQxygAnj2QlvsUd7MdFekLX18+Ov/xzgZ1" +self.addpkg2db("sync", sp) + +self.args = "-S %s" % sp.name + +self.addrule("PACMAN_RETCODE=1") +self.addrule("!PKG_EXIST=pkg1") -- cgit v1.2.3-70-g09d2