1 | #!/bin/sh |
---|
2 | #attribute.sh |
---|
3 | |
---|
4 | . ${TESTDIR}/test_util.sh |
---|
5 | |
---|
6 | runTest "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" \ |
---|
11 | 0 "simple role attribute creation with same issuer" |
---|
12 | |
---|
13 | runTest "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" \ |
---|
18 | 1 "simple role attribute creation without privkey key" |
---|
19 | |
---|
20 | runTest "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" \ |
---|
25 | 0 "simple role attribute creation with differ issuer certs" |
---|
26 | |
---|
27 | runTest "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" \ |
---|
32 | 1 "simple role attribute creation with wrong privkey key" |
---|
33 | |
---|