diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-05-04 23:35:15 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-05-04 23:35:15 +0300 |
commit | 45e82ae43be6444b0260daaf08eeb084eddbdb34 (patch) | |
tree | 6cdaf5f6121e1c9cf14e7cef8d3e4de45a998105 /tests | |
parent | b13332c991ce2695626eaca367dd8208b174c9ca (diff) |
Fix repository authentication test cases
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test.sh | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/test.sh b/tests/test.sh index 84ad8be..3a56c10 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -1482,9 +1482,15 @@ EOF # cfg-fetch # +signed_fp=`rep_cert_fp pkg/1/build2.org/auth/signed` test cfg-create --wipe test cfg-add $rep/auth/signed -test cfg-fetch --trust `rep_cert_fp pkg/1/build2.org/auth/signed` +test cfg-fetch --trust $signed_fp +test cfg-fetch + +test cfg-create --wipe +test cfg-add $rep/auth/signed +test cfg-fetch --trust-no --trust $signed_fp test cfg-fetch test cfg-fetch --trust-no # certificate is already trusted @@ -1532,12 +1538,12 @@ fail cfg-fetch --trust-yes # packages file signature:mismatch # rep-info # test cfg-create --wipe -test rep-info --trust-yes -d $cfg $rep/auth/signed <<EOF +test rep-info --trust-no --trust $signed_fp -d $cfg $rep/auth/signed <<EOF ${repn}auth/signed $repa/auth/signed libfoo 1.0.0 EOF -test rep-info -d $cfg $rep/auth/signed <<EOF +test rep-info --trust-no -d $cfg $rep/auth/signed <<EOF ${repn}auth/signed $repa/auth/signed libfoo 1.0.0 EOF @@ -1548,7 +1554,7 @@ ${repn}auth/signed $repa/auth/signed libfoo 1.0.0 EOF -fail rep-info $rep/auth/signed <<EOF +fail rep-info --trust-no $rep/auth/signed <<EOF ${repn}auth/signed $repa/auth/signed libfoo 1.0.0 EOF @@ -1559,7 +1565,7 @@ ${repn}auth/unsigned1 $repa/auth/unsigned1 libfoo 1.0.0 EOF -test rep-info -d $cfg $rep/auth/unsigned2 <<EOF +test rep-info --trust-no -d $cfg $rep/auth/unsigned2 <<EOF ${repn}auth/unsigned2 $repa/auth/unsigned2 libfoo 1.0.0 EOF @@ -1570,7 +1576,7 @@ ${repn}auth/unsigned1 $repa/auth/unsigned1 libfoo 1.0.0 EOF -fail rep-info $rep/auth/unsigned1 <<EOF +fail rep-info --trust-no $rep/auth/unsigned1 <<EOF ${repn}auth/unsigned1 $repa/auth/unsigned1 libfoo 1.0.0 EOF |