From 4d4a16e000683046ebb19e6efe15e11d60c2178d Mon Sep 17 00:00:00 2001 From: Andreas Ebner Date: Fri, 20 Sep 2019 11:32:00 +0200 Subject: Test cleanup/fix: - added missing "- -" to collect for macOS - replaced 'import $SIGNED' with 'import=$SIGNED' to match all other parameters and better visibility --- src/credential/test_credential_verify_simple.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/credential/test_credential_verify_simple.sh') diff --git a/src/credential/test_credential_verify_simple.sh b/src/credential/test_credential_verify_simple.sh index d7657c55f..bd0b260b1 100755 --- a/src/credential/test_credential_verify_simple.sh +++ b/src/credential/test_credential_verify_simple.sh @@ -27,15 +27,17 @@ TEST_ATTR="user" SUBJECT_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testsubject | awk '{print $3}') ISSUER_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testissuer | awk '{print $3}') +gnunet-identity -d + # Create delegate (1) SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=testissuer --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --ttl="2019-12-12 10:00:00" -c test_credential_lookup.conf` -gnunet-credential --createSubjectSide --ego=testsubject --import "$SIGNED" --private +gnunet-credential --createSubjectSide --ego=testsubject --import="$SIGNED" --private gnunet-namestore -D -z testsubject # Starting to resolve echo "+++ Starting to Resolve +++" -DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --ego=testsubject -c test_credential_lookup.conf | paste -d, -s` +DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --ego=testsubject -c test_credential_lookup.conf | paste -d, -s - -` echo $DELS gnunet-credential --verify --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --delegate="$DELS" -c test_credential_lookup.conf -- cgit v1.2.3