diff options
author | Andreas Ebner <a.e.bner@web.de> | 2019-09-20 11:32:00 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-10-07 12:18:20 +0200 |
commit | 4d4a16e000683046ebb19e6efe15e11d60c2178d (patch) | |
tree | 291ce657e2eabe7bf89b4ca3c929f2331da16f23 /src/credential/test_credential_verify_simple.sh | |
parent | 3099a7c25cf6b11b0f1909e5a2651d65c0e921c7 (diff) | |
download | gnunet-4d4a16e000683046ebb19e6efe15e11d60c2178d.tar.gz gnunet-4d4a16e000683046ebb19e6efe15e11d60c2178d.zip |
Test cleanup/fix:
- added missing "- -" to collect for macOS
- replaced 'import $SIGNED' with 'import=$SIGNED' to match all other parameters and better visibility
Diffstat (limited to 'src/credential/test_credential_verify_simple.sh')
-rwxr-xr-x | src/credential/test_credential_verify_simple.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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" | |||
27 | SUBJECT_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testsubject | awk '{print $3}') | 27 | SUBJECT_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testsubject | awk '{print $3}') |
28 | ISSUER_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testissuer | awk '{print $3}') | 28 | ISSUER_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testissuer | awk '{print $3}') |
29 | 29 | ||
30 | gnunet-identity -d | ||
31 | |||
30 | # Create delegate (1) | 32 | # Create delegate (1) |
31 | 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` | 33 | 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` |
32 | gnunet-credential --createSubjectSide --ego=testsubject --import "$SIGNED" --private | 34 | gnunet-credential --createSubjectSide --ego=testsubject --import="$SIGNED" --private |
33 | gnunet-namestore -D -z testsubject | 35 | gnunet-namestore -D -z testsubject |
34 | 36 | ||
35 | # Starting to resolve | 37 | # Starting to resolve |
36 | echo "+++ Starting to Resolve +++" | 38 | echo "+++ Starting to Resolve +++" |
37 | 39 | ||
38 | DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --ego=testsubject -c test_credential_lookup.conf | paste -d, -s` | 40 | DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --ego=testsubject -c test_credential_lookup.conf | paste -d, -s - -` |
39 | echo $DELS | 41 | echo $DELS |
40 | gnunet-credential --verify --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --delegate="$DELS" -c test_credential_lookup.conf | 42 | gnunet-credential --verify --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --delegate="$DELS" -c test_credential_lookup.conf |
41 | 43 | ||