diff options
author | Asha Akkiangady <aakkiang@redhat.com> | 2015-04-27 20:49:42 -0400 |
---|---|---|
committer | Asha Akkiangady <aakkiang@redhat.com> | 2015-04-27 20:57:51 -0400 |
commit | ef0efaa14c65f2a19569851b6b07b6bc79eaa7f0 (patch) | |
tree | 5ef7671b82c31b50f4ab5d7e0ecb55a5640cf9ce /tests/dogtag/acceptance/cli-tests/pki-user-cli/ca/pki-user-cli-user-mod-ca.sh | |
parent | c9ba4610f25f16878186901ac9d52c602910e590 (diff) | |
download | pki-ef0efaa14c65f2a19569851b6b07b6bc79eaa7f0.tar.gz pki-ef0efaa14c65f2a19569851b6b07b6bc79eaa7f0.tar.xz pki-ef0efaa14c65f2a19569851b6b07b6bc79eaa7f0.zip |
Added script to keep subsystem installed status
written to env.sh and CA pki user clis check for
CA install status before execution.
Diffstat (limited to 'tests/dogtag/acceptance/cli-tests/pki-user-cli/ca/pki-user-cli-user-mod-ca.sh')
-rwxr-xr-x | tests/dogtag/acceptance/cli-tests/pki-user-cli/ca/pki-user-cli-user-mod-ca.sh | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/tests/dogtag/acceptance/cli-tests/pki-user-cli/ca/pki-user-cli-user-mod-ca.sh b/tests/dogtag/acceptance/cli-tests/pki-user-cli/ca/pki-user-cli-user-mod-ca.sh index b8d50069e..b1bf013bc 100755 --- a/tests/dogtag/acceptance/cli-tests/pki-user-cli/ca/pki-user-cli-user-mod-ca.sh +++ b/tests/dogtag/acceptance/cli-tests/pki-user-cli/ca/pki-user-cli-user-mod-ca.sh @@ -52,22 +52,28 @@ run_pki-user-cli-user-mod-ca_tests(){ subsystemId=$1 SUBSYSTEM_TYPE=$2 MYROLE=$3 - +ca_instance_created="False" if [ "$TOPO9" = "TRUE" ] ; then prefix=$subsystemId + ca_instance_created=$(eval echo \$${subsystemId}_INSTANCE_CREATED_STATUS) elif [ "$MYROLE" = "MASTER" ] ; then if [[ $subsystemId == SUBCA* ]]; then prefix=$subsystemId + ca_instance_created=$(eval echo \$${subsystemId}_INSTANCE_CREATED_STATUS) else prefix=ROOTCA + ca_instance_created=$ROOTCA_INSTANCE_CREATED_STATUS fi else prefix=$MYROLE + ca_instance_created=$(eval echo \$${MYROLE}_INSTANCE_CREATED_STATUS) fi -SUBSYSTEM_HOST=$(eval echo \$${MYROLE}) -untrusted_cert_db_location=$UNTRUSTED_CERT_DB_LOCATION -untrusted_cert_db_password=$UNTRUSTED_CERT_DB_PASSWORD +if [ "$ca_instance_created" = "TRUE" ] ; then + SUBSYSTEM_HOST=$(eval echo \$${MYROLE}) + untrusted_cert_db_location=$UNTRUSTED_CERT_DB_LOCATION + untrusted_cert_db_password=$UNTRUSTED_CERT_DB_PASSWORD + #####Create temporary dir to save the output files ##### rlPhaseStartSetup "pki_user_cli_user_mod-ca-startup: Create temporary directory" @@ -1068,4 +1074,7 @@ $i18nuser rlRun "rm -r $TmpDir" 0 "Removing tmp directory" rlPhaseEnd + else + rlLog "CA instance not installed" + fi } |