summaryrefslogtreecommitdiff
path: root/tests/test-pull-mirror-summary.sh
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2015-06-03 12:55:30 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2015-06-26 11:02:25 +0200
commit0bd10eb6e23625a7f468dc1d89c3c17d9d428506 (patch)
tree231f900aa0e01f703973aad2ee725dbac4f9c820 /tests/test-pull-mirror-summary.sh
parent19ce011e1fec300decbc789b72c0235c9420df2c (diff)
downloadostree-0bd10eb6e23625a7f468dc1d89c3c17d9d428506.tar.gz
tests: add test for check for remote add --set=gpg-verify-summary=true
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'tests/test-pull-mirror-summary.sh')
-rwxr-xr-xtests/test-pull-mirror-summary.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test-pull-mirror-summary.sh b/tests/test-pull-mirror-summary.sh
index a7124538..dfb3f20d 100755
--- a/tests/test-pull-mirror-summary.sh
+++ b/tests/test-pull-mirror-summary.sh
@@ -63,6 +63,13 @@ rm -rf repo
mkdir repo
${OSTREE} --repo=repo init --mode=archive-z2
${OSTREE} --repo=repo remote add origin $(cat httpd-address)/ostree/gnomerepo
+echo "ok pull mirror without checking signed summary"
+
+cd ${test_tmpdir}
+rm -rf repo
+mkdir repo
+${OSTREE} --repo=repo init --mode=archive-z2
+${OSTREE} --repo=repo remote add --set=gpg-verify-summary=true origin $(cat httpd-address)/ostree/gnomerepo
${OSTREE} --repo=repo pull --mirror origin 2>/dev/null || touch expected-fail
assert_has_file expected-fail
echo "ok pull mirror without signed summary"
@@ -73,7 +80,7 @@ cd ${test_tmpdir}
rm -rf repo
mkdir repo
${OSTREE} --repo=repo init --mode=archive-z2
-${OSTREE} --repo=repo remote add origin $(cat httpd-address)/ostree/gnomerepo
+${OSTREE} --repo=repo remote add --set=gpg-verify-summary=true origin $(cat httpd-address)/ostree/gnomerepo
${OSTREE} --repo=repo pull --mirror origin
assert_has_file repo/summary
assert_has_file repo/summary.sig