source: tests/creddy_prover_tests/acme_rockets_intersection_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.5 KB
Line 
1#!/bin/sh
2
3. ${TESTDIR}/test_util.sh
4keyloc=`pwd`
5
6acme=`$eloc/creddy --keyid --cert $keyloc/Acme_ID.pem`
7batman=`$eloc/creddy --keyid --cert $keyloc/Batman_ID.pem`
8coyote=`$eloc/creddy --keyid --cert $keyloc/Coyote_ID.pem`
9
10buy_rockets="$acme.buy_rockets"
11coyote_prin="$coyote"
12batman_prin="$batman"
13bad_buy_rockets="$acme.bad_buy_rockets"
14bad_buy_rockets2="99$acme.buy_rockets"
15
16echo "===good============ Acme.buy_rockets <- Coyote"
17runTest creddy_prover_test/acme_rockets_intersection_rt0 test1 \
18  "$ploc/abac_prover --keystore $keyloc --role $buy_rockets --principal $coyote_prin" \
19  0 \
20  "simple rt0 query"
21
22echo "===bad============ Acme.bad_buy_rockets <- Coyote"
23runTest creddy_prover_test/acme_rockets_intersection_rt0 test2 \
24  "$ploc/abac_prover  --keystore $keyloc --role $bad_buy_rockets --principal $coyote_prin" \
25  1 \
26  "expected failure, query fail with unfound role but should return with partial proof"
27
28echo "===bad============ 99Acme.buy_rockets <- Coyote"
29runTest creddy_prover_test/acme_rockets_intersection_rt0 test3 \
30  "$ploc/abac_prover  --keystore $keyloc --role $bad_buy_rockets2 --principal $coyote_prin" \
31  1 \
32  "expected failure, query fail with none existing issuer principal"
33
34echo "===bad=============== Acme.buy_rockets <- Batman"
35runTest creddy_prover_test/acme_rockets_intersection_rt0 test4 \
36  "$ploc/abac_prover  --keystore $keyloc --role $buy_rockets --principal $batman_prin" \
37  1 \
38  "expected failure, query fail with none existing target principal"
39
Note: See TracBrowser for help on using the repository browser.