diff options
Diffstat (limited to 'src/credential/test_credential_issue.sh')
-rwxr-xr-x | src/credential/test_credential_issue.sh | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/credential/test_credential_issue.sh b/src/credential/test_credential_issue.sh index a78bde6ed..95eac2957 100755 --- a/src/credential/test_credential_issue.sh +++ b/src/credential/test_credential_issue.sh | |||
@@ -28,16 +28,9 @@ gnunet-identity -C testissuer -c test_credential_lookup.conf | |||
28 | gnunet-identity -C testsubject -c test_credential_lookup.conf | 28 | gnunet-identity -C testsubject -c test_credential_lookup.conf |
29 | SUBJECT_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testsubject | awk '{print $3}') | 29 | SUBJECT_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testsubject | awk '{print $3}') |
30 | ISSUER_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testissuer | awk '{print $3}') | 30 | ISSUER_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testissuer | awk '{print $3}') |
31 | EXPECTED="$SUBJECT_KEY $ISSUER_KEY $TEST_ATTR" | ||
32 | #TODO1 Get credential and store it with subject (3) | 31 | #TODO1 Get credential and store it with subject (3) |
33 | CRED=`$DO_TIMEOUT gnunet-credential --issue --ego=testissuer --subject=$SUBJECT_KEY --attribute=$TEST_ATTR -c test_credential_lookup.conf` | 32 | $DO_TIMEOUT gnunet-credential --issue --ego=testissuer --subject=$SUBJECT_KEY --attribute=$TEST_ATTR -c test_credential_lookup.conf |
33 | STATUS=$? | ||
34 | 34 | ||
35 | gnunet-arm -e -c test_credential_lookup.conf | 35 | gnunet-arm -e -c test_credential_lookup.conf |
36 | 36 | exit $STATUS | |
37 | if [ "$EXPECTED" == "$CRED" ] | ||
38 | then | ||
39 | exit 0 | ||
40 | else | ||
41 | echo "FAIL: Failed to issue credential, got $CRED." | ||
42 | exit 1 | ||
43 | fi | ||