source: tests/creddy_tests/attribute.sh

Last change on this file was 4f79997, checked in by Mei <mei@…>, 11 years ago

1) add a new scaling test -haystack/ralphs
2) tweak some libabac code here and there

  • Property mode set to 100755
File size: 1.4 KB
Line 
1#!/usr/bin/env sh
2#attribute.sh
3
4if [ -z "${TESTDIR}" ] ; then
5    TESTDIR=..
6fi
7. ${TESTDIR}/test_util.sh
8
9runTest "creddy_tests/attribute.sh" "test1"  \
10"$eloc/creddy --attribute \
11       --issuer Acme_ID.pem --key Acme_private.pem --role roleOne \
12       --subject-cert Acme_ID.pem --subject-role simple_subject_role \
13       --out Acme_roleOne__Acme_simple_subject_role_attr.xml" \
140  "simple role attribute creation with same issuer"
15
16runTest "creddy_tests/attribute.sh" "test2"  \
17"$eloc/creddy --attribute \
18       --issuer Acme_ID.pem --role roleTwo \
19       --subject-cert Acme_ID.pem --subject-role simple_subject_role \
20       --out Acme_roleTwo__Acme_simple_subject_role_attr.xml" \
211  "simple role attribute creation without privkey key"
22
23runTest "creddy_tests/attribute.sh" "test3"  \
24"$eloc/creddy --attribute \
25       --issuer Acme_ID.pem --key Acme_private.pem --role roleThree \
26       --subject-cert Coyote_ID.pem --subject-role simple_subject_role \
27       --out Acme_roleThree__Coyote_simple_subject_role_attr.xml" \
280  "simple role attribute creation with differ issuer certs"
29
30runTest "creddy_tests/attribute.sh" "test4"  \
31"$eloc/creddy --attribute \
32       --issuer Acme_ID.pem --key Coyote_private.pem --role roleFour \
33       --subject-cert Coyote_ID.pem --subject-role simple_subject_role \
34       --out Acme_roleFour__Coyote_simple_subject_role_attr.xml" \
351  "simple role attribute creation with wrong privkey key"
36
Note: See TracBrowser for help on using the repository browser.