summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiranjan Mallapadi <mrniranjan@redhat.com>2014-04-06 22:51:51 +0530
committerNiranjan Mallapadi <mrniranjan@redhat.com>2014-04-07 22:07:35 +0530
commit02c84915741579945eccf3276298eb087600a30b (patch)
tree14ada765c6d90f095e74b4000e29171e533549ae
parentae95c7bf3f6456fa2eaf0a242a478e02a72bd64c (diff)
downloadpki-02c84915741579945eccf3276298eb087600a30b.tar.gz
pki-02c84915741579945eccf3276298eb087600a30b.tar.xz
pki-02c84915741579945eccf3276298eb087600a30b.zip
Not call non caUserCert profiles for user profiles
This was a bug fix for existing create_user_cert function which was calling caDualCert,caDirUserPin profiles when caUserCert profile was already created xml request
-rwxr-xr-xtests/dogtag/shared/pki-cert-cli-lib.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/dogtag/shared/pki-cert-cli-lib.sh b/tests/dogtag/shared/pki-cert-cli-lib.sh
index c68afbb7e..2f765203c 100755
--- a/tests/dogtag/shared/pki-cert-cli-lib.sh
+++ b/tests/dogtag/shared/pki-cert-cli-lib.sh
@@ -196,7 +196,8 @@ local rand=$(cat /dev/urandom | tr -dc '0-9' | fold -w 5 | head -n 1)
[ "$profilename" != "caDirPinUserCert" ] || \
[ "$profilename" != "caDirUserCert" ] || \
[ "$profilename" != "caECDirUserCert" ] || \
- [ "$profilename" != "caAgentServerCert" ]; then
+ [ "$profilename" != "caAgentServerCert" ] && \
+ [ "$profilename" != "caUserCert" ]; then
rlRun "xmlstarlet ed -L -u \"CertEnrollmentRequest/Input/Attribute[@name='cert_request_type']/Value\" -v \"$request_type\" $xml_profile_file"
rlRun "xmlstarlet ed -L -u \"CertEnrollmentRequest/Input/Attribute[@name='cert_request']/Value\" -v \"$(cat -v $dir/$cert_request_file)\" $xml_profile_file"
rlRun "xmlstarlet ed -L -u \"CertEnrollmentRequest/Input/Attribute[@name='sn_cn']/Value\" -v \"$cn\" $xml_profile_file"