[4f79997] | 1 | #!/usr/bin/env sh |
---|
[3c30b59] | 2 | # keyid.sh |
---|
[461541a] | 3 | |
---|
[4f79997] | 4 | if [ -z "${TESTDIR}" ] ; then |
---|
| 5 | TESTDIR=.. |
---|
| 6 | fi |
---|
[3c30b59] | 7 | . ${TESTDIR}/test_util.sh |
---|
| 8 | |
---|
| 9 | runTest "creddy_tests/keyid.sh" "test1" \ |
---|
| 10 | "$eloc/creddy --keyid --cert Acme_ID.pem" \ |
---|
| 11 | 0 "supplied with good identity cert" |
---|
| 12 | |
---|
| 13 | runTest "creddy_tests/keyid.sh" "test2" \ |
---|
| 14 | "$eloc/creddy --keyid --cert Acme_private.pem" \ |
---|
| 15 | 1 "supplied with privkey" |
---|
| 16 | |
---|
| 17 | runTest "creddy_tests/keyid.sh" "test3" \ |
---|
| 18 | "$eloc/creddy --keyid --cert Acme_buy_rockets__Acme_preferred_customer_attr.xml" \ |
---|
| 19 | 1 "supplied with attribute cert instead" |
---|
| 20 | |
---|
| 21 | runTest "creddy_tests/keyid.sh" "test4" \ |
---|
| 22 | "$eloc/creddy --keyid --cert bad_attr.xml" \ |
---|
| 23 | 1 "supplied with non existing attribute cert" |
---|
| 24 | |
---|
| 25 | runTest "creddy_tests/keyid.sh" "test5" \ |
---|
| 26 | "$eloc/creddy --keyid --cert not_ss.pem" \ |
---|
| 27 | 0 "supplied with good none self signed identity cert" |
---|
| 28 | |
---|
| 29 | runTest "creddy_tests/keyid.sh" "test6" \ |
---|
| 30 | "$eloc/creddy --keyid --cert not_ss.xml" \ |
---|
| 31 | 1 "supplied with none self signed attribute cert" |
---|
| 32 | |
---|
| 33 | runTest "creddy_tests/keyid.sh" "test7" \ |
---|
| 34 | "$eloc/creddy --keyid --cert priv.xml" \ |
---|
| 35 | 1 "supplied with GENI privilege attribute cert" |
---|
| 36 | |
---|
| 37 | runTest "creddy_tests/keyid.sh" "test8" \ |
---|
| 38 | "$eloc/creddy --keyid --cert PGissuer.pem" \ |
---|
| 39 | 0 "supplied with GENI issuer cert" |
---|
| 40 | |
---|
| 41 | runTest "creddy_tests/keyid.sh" "test9" \ |
---|
| 42 | "$eloc/creddy --keyid --cert ProtoGENI.xml" \ |
---|
| 43 | 1 "supplied with GENI issued attribute cert" |
---|
[ec550f7] | 44 | |
---|