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