source: tests/creddy_tests/attribute_rule.sh @ b838398

abac0-leak
Last change on this file since b838398 was 4f79997, checked in by Mei <mei@…>, 11 years ago

1) add a new scaling test -haystack/ralphs
2) tweak some libabac code here and there

  • Property mode set to 100755
File size: 716 bytes
RevLine 
[4f79997]1#!/usr/bin/env sh
[461541a]2#attribute_rule.sh
3
[4f79997]4if [ -z "${TESTDIR}" ] ; then
5    TESTDIR=..
6fi
[3c30b59]7. ${TESTDIR}/test_util.sh
[461541a]8
[3c30b59]9bigbird=`$eloc/creddy --keyid --cert Bigbird_ID.pem`
10coyote=`$eloc/creddy --keyid --cert Coyote_ID.pem`
[461541a]11
12rule="$coyote.sneaky_friend<-$bigbird"
13
[3c30b59]14runTest "creddy_tests/attribute_rule.sh" "test1"  \
15"$eloc/creddy --attribute \
[461541a]16       --issuer Coyote_ID.pem --key Coyote_private.pem \
17       --attrrule "$rule" \
[3c30b59]18       --out Coyote_sneakyFriend__Bigbird_attr.xml"  \
190  "trying making attribute using attrrule option"
[461541a]20
[3c30b59]21runTest "creddy_tests/attribute_rule.sh" "test2"  \
22"$eloc/creddy --roles --cert Coyote_sneakyFriend__Bigbird_attr.xml"  \
230  "double check on the attribute made with atttrrule option"
[461541a]24
Note: See TracBrowser for help on using the repository browser.