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
|
Rev | Line | |
---|
[461541a] | 1 | #!/bin/sh |
---|
| 2 | |
---|
[3c30b59] | 3 | . ${TESTDIR}/test_util.sh |
---|
| 4 | keyloc=`pwd` |
---|
| 5 | |
---|
| 6 | acme=`$eloc/creddy --keyid --cert $keyloc/Acme_ID.pem` |
---|
| 7 | alice=`$eloc/creddy --keyid --cert $keyloc/Alice_ID.pem` |
---|
| 8 | bob=`$eloc/creddy --keyid --cert $keyloc/Bob_ID.pem` |
---|
| 9 | globotron=`$eloc/creddy --keyid --cert $keyloc/Globotron_ID.pem` |
---|
[461541a] | 10 | |
---|
| 11 | glob_admin="$globotron.admin" |
---|
| 12 | alice_prin="$alice" |
---|
| 13 | bob_prin="$bob" |
---|
| 14 | experiment_create="$acme.experiment_create" |
---|
| 15 | |
---|
| 16 | echo "===good=============== Globotron.admin <- Alice" |
---|
[3c30b59] | 17 | runTest 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 | |
---|
[461541a] | 22 | |
---|
| 23 | echo "===bad=============== Globotron.admin <- Bob" |
---|
[3c30b59] | 24 | runTest 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" |
---|
[461541a] | 28 | |
---|
| 29 | echo "===good=============== Acme.experiment_create <- Bob" |
---|
[3c30b59] | 30 | runTest 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 | |
---|
[461541a] | 36 | |
---|
| 37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.