source: tests/creddy_tests/attribute.sh @ b1bd0ff

0.1.7
Last change on this file since b1bd0ff 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
RevLine 
[4f79997]1#!/usr/bin/env sh
[3c30b59]2#attribute.sh
[461541a]3
[4f79997]4if [ -z "${TESTDIR}" ] ; then
5    TESTDIR=..
6fi
[3c30b59]7. ${TESTDIR}/test_util.sh
[461541a]8
[3c30b59]9runTest "creddy_tests/attribute.sh" "test1"  \
10"$eloc/creddy --attribute \
[461541a]11       --issuer Acme_ID.pem --key Acme_private.pem --role roleOne \
12       --subject-cert Acme_ID.pem --subject-role simple_subject_role \
[3c30b59]13       --out Acme_roleOne__Acme_simple_subject_role_attr.xml" \
140  "simple role attribute creation with same issuer"
[461541a]15
[3c30b59]16runTest "creddy_tests/attribute.sh" "test2"  \
17"$eloc/creddy --attribute \
[461541a]18       --issuer Acme_ID.pem --role roleTwo \
19       --subject-cert Acme_ID.pem --subject-role simple_subject_role \
[3c30b59]20       --out Acme_roleTwo__Acme_simple_subject_role_attr.xml" \
211  "simple role attribute creation without privkey key"
[461541a]22
[3c30b59]23runTest "creddy_tests/attribute.sh" "test3"  \
24"$eloc/creddy --attribute \
[461541a]25       --issuer Acme_ID.pem --key Acme_private.pem --role roleThree \
26       --subject-cert Coyote_ID.pem --subject-role simple_subject_role \
[3c30b59]27       --out Acme_roleThree__Coyote_simple_subject_role_attr.xml" \
280  "simple role attribute creation with differ issuer certs"
[461541a]29
[3c30b59]30runTest "creddy_tests/attribute.sh" "test4"  \
31"$eloc/creddy --attribute \
[461541a]32       --issuer Acme_ID.pem --key Coyote_private.pem --role roleFour \
33       --subject-cert Coyote_ID.pem --subject-role simple_subject_role \
[3c30b59]34       --out Acme_roleFour__Coyote_simple_subject_role_attr.xml" \
351  "simple role attribute creation with wrong privkey key"
[461541a]36
Note: See TracBrowser for help on using the repository browser.