source: tests/creddy_prover_tests/experiment_create_rt0/run_query @ 3c30b59

abac0-leakabac0-mei
Last change on this file since 3c30b59 was 3c30b59, checked in by Mei <mei@…>, 11 years ago

1) add in new refactored regression testing directory
2) undo the abac.hh/ABAC.hh api changes
3) merged with Ted's changes to attribute format/nickname/issuer processing

  • Property mode set to 100755
File size: 1.1 KB
Line 
1#!/bin/sh
2
3. ${TESTDIR}/test_util.sh
4keyloc=`pwd`
5
6acme=`$eloc/creddy --keyid --cert $keyloc/Acme_ID.pem`
7alice=`$eloc/creddy --keyid --cert $keyloc/Alice_ID.pem`
8bob=`$eloc/creddy --keyid --cert $keyloc/Bob_ID.pem`
9globotron=`$eloc/creddy --keyid --cert $keyloc/Globotron_ID.pem`
10
11glob_admin="$globotron.admin"
12alice_prin="$alice"
13bob_prin="$bob"
14experiment_create="$acme.experiment_create"
15
16echo "===good=============== Globotron.admin <- Alice"
17runTest creddy_prover_test/experiment_create_rt0 test1 \
18  "$ploc/abac_prover  --keystore $keyloc --role $glob_admin --principal $alice_prin" \
19  0 \
20  "simple query"
21
22
23echo "===bad=============== Globotron.admin <- Bob"
24runTest creddy_prover_test/experiment_create_rt0 test2 \
25  "$ploc/abac_prover  --keystore $keyloc --role $glob_admin --principal $bob_prin" \
26  1 \
27  "no rule support this, should get a partial proof"
28
29echo "===good=============== Acme.experiment_create <- Bob"
30runTest creddy_prover_test/experiment_create_rt0 test3 \
31  "$ploc/abac_prover  --keystore $keyloc  --role $experiment_create --principal $bob_prin" \
32  0 \
33  "mutilple rules intersection proof"
34
35
36
37
Note: See TracBrowser for help on using the repository browser.