diff options
author | Niranjan Mallapadi <mrniranjan@redhat.com> | 2014-11-10 18:34:24 +0530 |
---|---|---|
committer | Niranjan Mallapadi <mrniranjan@redhat.com> | 2014-11-10 18:35:10 +0530 |
commit | 99d571cee64846e8e1cfbc129aa0081b2f1f95e0 (patch) | |
tree | c226e9ea47b7b481c2680772d7cf5fe102974518 /tests | |
parent | de6269b43ecf81a2f26c3f79dbc6891037849d36 (diff) | |
download | pki-99d571cee64846e8e1cfbc129aa0081b2f1f95e0.tar.gz pki-99d571cee64846e8e1cfbc129aa0081b2f1f95e0.tar.xz pki-99d571cee64846e8e1cfbc129aa0081b2f1f95e0.zip |
Add pki ca-profile-tests in runtest and Makefile
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/dogtag/Makefile | 9 | ||||
-rwxr-xr-x | tests/dogtag/runtest.sh | 71 |
2 files changed, 79 insertions, 1 deletions
diff --git a/tests/dogtag/Makefile b/tests/dogtag/Makefile index eb96531e1..d192c75ae 100755 --- a/tests/dogtag/Makefile +++ b/tests/dogtag/Makefile @@ -214,6 +214,15 @@ build: $(BUILT_FILES) chmod a+X ./acceptance/cli-tests/pki-kra-key-cli/pki-kra-key-cli-recover-kra.sh chmod a+X ./acceptance/cli-tests/pki-kra-key-cli/pki-kra-key-cli-retrieve-kra.sh chmod a+X ./acceptance/cli-tests/pki-kra-key-cli/pki-kra-key-cli-request-review-kra.sh + #ca-profile + chmod a+x ./acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli.sh + chmod a+x ./acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-show.sh + chmod a+x ./acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-enable.sh + chmod a+x ./acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-disable.sh + chmod a+x ./acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-del.sh + chmod a+x ./acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-find.sh + chmod a+x ./acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-add.sh + chmod a+x ./acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-mod.sh # bug verifications chmod a+x ./acceptance/bugzilla/tomcatjss-bugs.sh chmod a+x ./acceptance/bugzilla/pki-core-bugs/giant-debug-log.sh diff --git a/tests/dogtag/runtest.sh b/tests/dogtag/runtest.sh index cdb687eae..9f699c4b5 100755 --- a/tests/dogtag/runtest.sh +++ b/tests/dogtag/runtest.sh @@ -150,6 +150,14 @@ . ./acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-find.sh . ./acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-show.sh . ./acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-delete.sh +. ./acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli.sh +. ./acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-show.sh +. ./acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-enable.sh +. ./acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-disable.sh +. ./acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-del.sh +. ./acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-find.sh +. ./acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-add.sh +. ./acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-mod.sh . ./acceptance/bugzilla/tomcatjss-bugs.sh . ./acceptance/bugzilla/pki-core-bugs/giant-debug-log.sh . ./acceptance/bugzilla/pki-core-bugs/CSbackup-bug.sh @@ -1249,7 +1257,68 @@ rlJournalStart subsystemType=kra run_pki-kra-group-cli-kra-group-member-del_tests $subsystemId $subsystemType $MYROLE fi - + ##CA Profile Tests + CA_PROFILE_CONFIG_UPPERCASE=$(echo $CA_PROFILE_CONFIG | tr [a-z] [A-Z]) + if [ "$CA_PROFILE_CONFIG_UPPERCASE" = "TRUE" ] || [ "$TEST_ALL_UPPERCASE" = "TRUE" ]; then + # Execute pki ca-profile config tests + run_pki-ca-profile_tests + fi + CA_PROFILE_SHOW_UPPERCASE=$(echo $CA_PROFILE_SHOW | tr [a-z] [A-Z]) + if [ "$CA_PROFILE_SHOW_UPPERCASE" = "TRUE" ] || [ "$TEST_ALL_UPPERCASE" = "TRUE" ]; then + # Execute pki ca-profile-show tests + subsystemType=ca + run_pki-ca-profile-show_tests $subsystemType $MYROLE + fi + CA_PROFILE_ENABLE_UPPERCASE=$(echo $CA_PROFILE_ENABLE | tr [a-z] [A-Z]) + if [ "$CA_PROFILE_ENABLE_UPPERCASE" = "TRUE" ] || [ "$TEST_ALL_UPPERCASE" = "TRUE" ]; then + # Execute pki ca-profile-enable tests + subsystemType=ca + run_pki-ca-profile-enable_tests $subsystemType $MYROLE + fi + CA_PROFILE_DISABLE_UPPERCASE=$(echo $CA_PROFILE_DISABLE | tr [a-z] [A-Z]) + if [ "$CA_PROFILE_DISABLE_UPPERCASE" = "TRUE" ] || [ "$TEST_ALL_UPPERCASE" = "TRUE" ]; then + # Execute pki ca-profile-disable tests + subsystemType=ca + run_pki-ca-profile-disable_tests $subsystemType $MYROLE + fi + CA_PROFILE_DEL_UPPERCASE=$(echo $CA_PROFILE_DEL | tr [a-z] [A-Z]) + if [ "$CA_PROFILE_DEL_UPPERCASE" = "TRUE" ] || [ "$TEST_ALL_UPPERCASE" = "TRUE" ]; then + # Execute pki ca-profile-del tests + subsystemType=ca + run_pki-ca-profile-del_tests $subsystemType $MYROLE + fi + CA_PROFILE_FIND_UPPERCASE=$(echo $CA_PROFILE_FIND | tr [a-z] [A-Z]) + if [ "$CA_PROFILE_FIND_UPPERCASE" = "TRUE" ] || [ "$TEST_ALL_UPPERCASE" = "TRUE" ]; then + # Execute pki ca-profile-find tests + subsystemType=ca + run_pki-ca-profile-find_tests $subsystemType $MYROLE + fi + CA_PROFILE_ADD_UPPERCASE=$(echo $CA_PROFILE_ADD | tr [a-z] [A-Z]) + if [ "$CA_PROFILE_ADD_UPPERCASE" = "TRUE" ] || [ "$TEST_ALL_UPPERCASE" = "TRUE" ]; then + # Execute pki ca-profile-add tests + subsystemType=ca + run_pki-ca-profile-add_tests $subsystemType $MYROLE + fi + CA_PROFILE_MOD_UPPERCASE=$(echo $CA_PROFILE_MOD | tr [a-z] [A-Z]) + if [ "$CA_PROFILE_MOD_UPPERCASE" = "TRUE" ] || [ "$TEST_ALL_UPPERCASE" = "TRUE" ]; then + # Execute pki ca-profile-mod tests + subsystemType=ca + run_pki-ca-profile-mod_tests $subsystemType $MYROLE + fi + ############## CA PROFILE CLI TESTS ############# + CA_PROFILE_TEST_UPPERCASE=$(echo $CA_PROFILE_TEST | tr [a-z] [A-Z]) + if [ "$CA_PROFILE_TEST_UPPERCASE" = "TRUE" ]; then + #execute CA PROFILE CLI tests + subsystemType=ca + run_pki-ca-profile_tests + run_pki-ca-profile-show_tests $subsystemType $MYROLE + run_pki-ca-profile-enable_tests $subsystemType $MYROLE + run_pki-ca-profile-disable_tests $subsystemType $MYROLE + run_pki-ca-profile-del_tests $subsystemType $MYROLE + run_pki-ca-profile-find_tests $subsystemType $MYROLE + run_pki-ca-profile-add_tests $subsystemType $MYROLE + run_pki-ca-profile-mod_tests $subsystemType $MYROLE + fi ######## PKI USER TESTS ############ USER_CLEANUP_CA_UPPERCASE=$(echo $USER_CLEANUP_CA | tr [a-z] [A-Z]) #Clean up role users (admin agent etc) created in CA |