X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=t%2Fall-036-update-only.t;fp=t%2Fall-036-update-only.t;h=e0b3027402eaa50a9489a55406d56c6932dc2e9a;hb=9ce8c6ced68d45b462abb4c6531b6476f4d1e681;hp=0000000000000000000000000000000000000000;hpb=3886942162fd8193d8a804a685a3f96a65b9712c;p=onak.git diff --git a/t/all-036-update-only.t b/t/all-036-update-only.t new file mode 100755 index 0000000..e0b3027 --- /dev/null +++ b/t/all-036-update-only.t @@ -0,0 +1,17 @@ +#!/bin/sh +# Check we can't submit a new key when update_only is set + +set -e + +cd ${WORKDIR} +cp $1 update-only.ini +echo update_only=true >> update-only.ini +${BUILDDIR}/onak -b -c update-only.ini add < ${TESTSDIR}/../keys/noodles.key || true +rm update-only.ini +if ! ${BUILDDIR}/onak -c $1 get 0x94FA372B2DA8B985 2>&1 | \ + grep -q 'Key not found'; then + echo "* Did not correctly error on update-only key" + exit 1 +fi + +exit 0