source: tests/creddy_tests/attribute.sh @ 1afd681

abac0-leakabac0-mei
Last change on this file since 1afd681 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.4 KB
Line 
1#!/bin/sh
2#attribute.sh
3
4. ${TESTDIR}/test_util.sh
5
6runTest "creddy_tests/attribute.sh" "test1"  \
7"$eloc/creddy --attribute \
8       --issuer Acme_ID.pem --key Acme_private.pem --role roleOne \
9       --subject-cert Acme_ID.pem --subject-role simple_subject_role \
10       --out Acme_roleOne__Acme_simple_subject_role_attr.xml" \
110  "simple role attribute creation with same issuer"
12
13runTest "creddy_tests/attribute.sh" "test2"  \
14"$eloc/creddy --attribute \
15       --issuer Acme_ID.pem --role roleTwo \
16       --subject-cert Acme_ID.pem --subject-role simple_subject_role \
17       --out Acme_roleTwo__Acme_simple_subject_role_attr.xml" \
181  "simple role attribute creation without privkey key"
19
20runTest "creddy_tests/attribute.sh" "test3"  \
21"$eloc/creddy --attribute \
22       --issuer Acme_ID.pem --key Acme_private.pem --role roleThree \
23       --subject-cert Coyote_ID.pem --subject-role simple_subject_role \
24       --out Acme_roleThree__Coyote_simple_subject_role_attr.xml" \
250  "simple role attribute creation with differ issuer certs"
26
27runTest "creddy_tests/attribute.sh" "test4"  \
28"$eloc/creddy --attribute \
29       --issuer Acme_ID.pem --key Coyote_private.pem --role roleFour \
30       --subject-cert Coyote_ID.pem --subject-role simple_subject_role \
31       --out Acme_roleFour__Coyote_simple_subject_role_attr.xml" \
321  "simple role attribute creation with wrong privkey key"
33
Note: See TracBrowser for help on using the repository browser.