mei_rt2
Last change
on this file since 2e9455f was
2e9455f,
checked in by Mei <mei@…>, 12 years ago
|
1) added namespace
2) tweak ?This,
3) allowing linking role/oset as constraining conditions
4) adding access_tests regression testing that uses GENI's access policy
5) added couple multi contexts regression tests
6) add compression/uncompression calls to abac_encode_string/abac_decode_string
(libstrongwan only allows 512 char for attribute rule storage)
7) add attribute_now option to creddy that takes a whole char string for attribute
rule
|
-
Property mode set to
100755
|
File size:
730 bytes
|
Rev | Line | |
---|
[5110d42] | 1 | #!/bin/sh |
---|
| 2 | |
---|
[2e9455f] | 3 | env |grep SKIP |
---|
| 4 | |
---|
[5110d42] | 5 | echo '---setup principals' |
---|
| 6 | env keystore=`pwd` ./setup.py 1>/dev/null 2>& 1 |
---|
| 7 | |
---|
| 8 | echo '---setup attributes' |
---|
[669b481] | 9 | env keystore=`pwd` ./attr.py 1>access.log 2>& 1 |
---|
[5110d42] | 10 | |
---|
| 11 | echo '---run queries' |
---|
| 12 | |
---|
| 13 | # Make prover queries |
---|
| 14 | g_cmd_sha=`grep "cmd1:" query.py |sed "s/cmd1://g" ` |
---|
| 15 | g_cmd_cn=`grep "cmd2:" query.py |sed "s/cmd2://g" ` |
---|
| 16 | |
---|
| 17 | echo '...with sha' |
---|
| 18 | eval $g_cmd_sha 2>/dev/null 1 > access.sha |
---|
| 19 | |
---|
| 20 | echo '...with cn' |
---|
| 21 | eval $g_cmd_cn 1>access.cn 2>&1 |
---|
| 22 | |
---|
[2e9455f] | 23 | result=`diff -I "Restoring file" -I "YAP 6.3" access.cn access.save` |
---|
| 24 | |
---|
[5110d42] | 25 | if [ $? -eq 0 ]; then |
---|
| 26 | if [ "$result" = "" ]; then |
---|
| 27 | echo " PASSED" |
---|
| 28 | else |
---|
| 29 | echo " ERROR:access_rt2 test result differs!!!" |
---|
| 30 | fi |
---|
| 31 | else |
---|
| 32 | echo " ERROR:access_rt2 test result differs!!!" |
---|
| 33 | fi |
---|
| 34 | |
---|
| 35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.