From 45e82ae43be6444b0260daaf08eeb084eddbdb34 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 4 May 2016 23:35:15 +0300 Subject: Fix repository authentication test cases --- tests/test.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'tests') 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 <