mei_rt2
Last change
on this file since 7f04233 was
2e9455f,
checked in by Mei <mei@…>, 11 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:
781 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | g_cmd_sha=`grep "cmd1:" id.py |sed "s/cmd1://g" ` |
---|
4 | g_cmd_cn=`grep "cmd2:" id.py |sed "s/cmd2://g" ` |
---|
5 | g_cmd_ctxt_cn=`grep "cmd2:" id_ctxt.py |sed "s/cmd2://g" ` |
---|
6 | |
---|
7 | echo '---setup principals' |
---|
8 | ./setup.py 1>id.log 2>&1 |
---|
9 | |
---|
10 | echo '---run id with sha' |
---|
11 | eval $g_cmd_sha 1>id.sha 2>&1 |
---|
12 | echo '---run id with cn' |
---|
13 | eval $g_cmd_cn 1>id_pre.cn 2>&1 |
---|
14 | echo '---run id_ctxt with cn' |
---|
15 | eval $g_cmd_ctxt_cn 1>>id_pre.cn 2>&1 |
---|
16 | |
---|
17 | cat id_pre.cn |sed 's/cert .*Tom_IDKEY.pem/cert Tom_IDKEY.pem/' > id.cn |
---|
18 | rm -rf id_pre.cn |
---|
19 | result=`diff -I "Restoring file" -I "YAP 6.3" id.cn id.save 2>/dev/null` |
---|
20 | if [ $? -eq 0 ]; then |
---|
21 | if [ "$result" = "" ]; then |
---|
22 | echo " PASSED" |
---|
23 | else |
---|
24 | echo " ERROR:basic_id test result differs!!!" |
---|
25 | fi |
---|
26 | else |
---|
27 | echo " ERROR:basic_id test result differs!!!" |
---|
28 | fi |
---|
29 | |
---|
30 | |
---|
31 | |
---|
32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.