source: examples/python_tests/basic_id/run_test @ 7f04233

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