[461541a] | 1 | #!/bin/sh |
---|
[3c30b59] | 2 | #display.sh |
---|
| 3 | |
---|
| 4 | . ${TESTDIR}/test_util.sh |
---|
| 5 | |
---|
| 6 | runTest "creddy_tests/display.sh" "test1" \ |
---|
| 7 | "$eloc/creddy --display --show=all --cert Acme_ID.pem" \ |
---|
| 8 | 0 "display an issuer cert" |
---|
| 9 | |
---|
| 10 | runTest "creddy_tests/display.sh" "test2" \ |
---|
| 11 | "$eloc/creddy --display --show=all --cert Acme_private.pem" \ |
---|
| 12 | 1 "display a privkey file" |
---|
| 13 | |
---|
| 14 | runTest "creddy_tests/display.sh" "test3" \ |
---|
| 15 | "$eloc/creddy --display --show=all --cert Acme_buy_rockets__Acme_preferred_customer_attr.xml" \ |
---|
| 16 | 0 "display an attribute cert" |
---|
| 17 | |
---|
| 18 | runTest "creddy_tests/display.sh" "test4" \ |
---|
| 19 | "$eloc/creddy --display --show=all --cert Acme_preferred_customer__Coyote_attr.xml" \ |
---|
| 20 | 0 "display an attribute cert" |
---|
| 21 | |
---|
| 22 | runTest "creddy_tests/display.sh" "test5" \ |
---|
| 23 | "$eloc/creddy --display --show=all --cert bad_attr.xml" \ |
---|
| 24 | 1 "supplied a none existing attribute cert" |
---|
| 25 | |
---|
| 26 | runTest "creddy_tests/display.sh" "test6" \ |
---|
| 27 | "$eloc/creddy --display --show=all --cert not_ss.pem" \ |
---|
| 28 | 0 "display an none self signed issuer cert" |
---|
| 29 | |
---|
| 30 | runTest "creddy_tests/display.sh" "test7" \ |
---|
| 31 | "$eloc/creddy --display --show=all --cert not_ss.xml" \ |
---|
| 32 | 0 "display a none self signed attribute cert" |
---|
| 33 | |
---|
| 34 | runTest "creddy_tests/display.sh" "test8" \ |
---|
| 35 | "$eloc/creddy --display --show=all --cert iProtoGENI.xml" \ |
---|
| 36 | 1 "display an expired GENI signed attribute cert" |
---|
| 37 | |
---|
| 38 | runTest "creddy_tests/display.sh" "test9" \ |
---|
| 39 | "$eloc/creddy --display --show=all --cert ProtoGENI.xml" \ |
---|
| 40 | 0 "FAKE:display a valid GENI signed attribute cert" |
---|
| 41 | |
---|
| 42 | runTest "creddy_tests/display.sh" "test10" \ |
---|
| 43 | "$eloc/creddy --display --show=all --cert PGissuer.pem" \ |
---|
| 44 | 0 "display a GENI issuer cert" |
---|
| 45 | |
---|
| 46 | runTest "creddy_tests/display.sh" "test11" \ |
---|
| 47 | "$eloc/creddy --display --show=all --cert priv.xml" \ |
---|
| 48 | 0 "display a GENI privilege attribute cert" |
---|
| 49 | |
---|
[461541a] | 50 | |
---|