summaryrefslogtreecommitdiff
path: root/test/pacman/tests
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-12-07 11:58:44 -0600
committerDan McGee <dan@archlinux.org>2011-03-23 03:16:29 -0500
commit5b962f0d1c3908d057354df1a42dc2056e8b87f5 (patch)
tree3f5adc36f3dce10d1fbf5655b7850d92802dbf59 /test/pacman/tests
parent39c75c70001eac9362d70141372f3e26c254680b (diff)
Add a pactest showing failed GPG verification
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test/pacman/tests')
-rw-r--r--test/pacman/tests/sign002.py10
1 files changed, 10 insertions, 0 deletions
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")