summaryrefslogtreecommitdiff
path: root/tests/test-archivez.sh
diff options
context:
space:
mode:
authorJeremy Whiting <jeremy.whiting@collabora.com>2013-09-05 12:50:36 -0600
committerColin Walters <walters@verbum.org>2013-09-29 14:49:47 -0400
commit7f9eefb62d2b5a977289fa5a5a1d34755f597679 (patch)
tree066943d31be8969ed92bda7dbd860f76738462d1 /tests/test-archivez.sh
parentb0645815770e0721d8915f924903d3a0a51e3964 (diff)
downloadostree-7f9eefb62d2b5a977289fa5a5a1d34755f597679.tar.gz
pull: Verify commits with gpg signatures from detached metadata
This uses gpgv for verification against DATADIR/ostree/pubring.gpg by default. The keyring can be overridden by specifying OSTREE_GPG_HOME. Add a unit test for commit signing with gpg key and verifying on pull; to implement this we ship a test GPG key generated with no password for Ostree Tester <test@test.com>. Change all of the existing tests to disable GPG verification.
Diffstat (limited to 'tests/test-archivez.sh')
-rwxr-xr-xtests/test-archivez.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-archivez.sh b/tests/test-archivez.sh
index 34ba7bcd..c228a66e 100755
--- a/tests/test-archivez.sh
+++ b/tests/test-archivez.sh
@@ -31,7 +31,7 @@ echo "ok setup"
cd ${test_tmpdir}
mkdir repo2
${CMD_PREFIX} ostree --repo=repo2 init
-${CMD_PREFIX} ostree --repo=repo2 remote add aremote file://$(pwd)/repo test2
+${CMD_PREFIX} ostree --repo=repo2 remote add --set=gpg-verify=false aremote file://$(pwd)/repo test2
ostree --repo=repo2 pull aremote
ostree --repo=repo2 rev-parse aremote/test2
ostree --repo=repo2 fsck