aboutsummaryrefslogtreecommitdiff
path: root/src/credential/test_credential_issue.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/credential/test_credential_issue.sh')
-rwxr-xr-xsrc/credential/test_credential_issue.sh13
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
28gnunet-identity -C testsubject -c test_credential_lookup.conf 28gnunet-identity -C testsubject -c test_credential_lookup.conf
29SUBJECT_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testsubject | awk '{print $3}') 29SUBJECT_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testsubject | awk '{print $3}')
30ISSUER_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testissuer | awk '{print $3}') 30ISSUER_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testissuer | awk '{print $3}')
31EXPECTED="$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)
33CRED=`$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
33STATUS=$?
34 34
35gnunet-arm -e -c test_credential_lookup.conf 35gnunet-arm -e -c test_credential_lookup.conf
36 36exit $STATUS
37if [ "$EXPECTED" == "$CRED" ]
38then
39 exit 0
40else
41 echo "FAIL: Failed to issue credential, got $CRED."
42 exit 1
43fi