summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNiranjan Mallapadi <mrniranjan@redhat.com>2014-05-15 17:50:03 +0530
committerNiranjan Mallapadi <mrniranjan@redhat.com>2014-05-15 17:51:42 +0530
commit12b15a49805df27c89f606644e4e1994c9c56d22 (patch)
treeab75286c5b08ac192c73539e231f86d8ce6ca054 /tests
parent0475c850838a8a9acb44440d6d953b5dc637f491 (diff)
downloadpki-12b15a49805df27c89f606644e4e1994c9c56d22.tar.gz
pki-12b15a49805df27c89f606644e4e1994c9c56d22.tar.xz
pki-12b15a49805df27c89f606644e4e1994c9c56d22.zip
Minor fixes to pki-cert-show.sh
Diffstat (limited to 'tests')
-rwxr-xr-xtests/dogtag/acceptance/cli-tests/pki-cert-cli/pki-cert-show.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/dogtag/acceptance/cli-tests/pki-cert-cli/pki-cert-show.sh b/tests/dogtag/acceptance/cli-tests/pki-cert-cli/pki-cert-show.sh
index 12471eb4e..e1eb1215b 100755
--- a/tests/dogtag/acceptance/cli-tests/pki-cert-cli/pki-cert-show.sh
+++ b/tests/dogtag/acceptance/cli-tests/pki-cert-cli/pki-cert-show.sh
@@ -161,7 +161,7 @@ run_pki-cert-show-ca_tests()
rlLog "Get the Subject Name of the Certificate with $valid_pkcs10_serialNumber"
rlLog "$(cat $temp_out | grep Subject | awk -F":" '{print $2}')"
rlRun "openssl x509 -in $temp_out -noout -serial 1> $temp_out-openssl" 0 "Run openssl to verify PEM output"
- rlAssertGrep "serial=0$CONV_UPP_VAL_PKCS10" "$temp_out-openssl"
+ rlAssertGrep "serial=$CONV_UPP_VAL_PKCS10" "$temp_out-openssl"
rlPhaseEnd
#Run pki cert-show --encoded with No serial Number
@@ -185,7 +185,7 @@ run_pki-cert-show-ca_tests()
rlAssertGrep "-----BEGIN CERTIFICATE-----" "$temp_out"
rlAssertGrep "\-----END CERTIFICATE-----" "$temp_out"
rlRun "openssl x509 -in $temp_out -noout -serial 1> $temp_out-openssl" 0 "Run openssl x509 on the output file"
- rlAssertGrep "serial=0$CONV_UPP_VAL_PKCS10" "$temp_out-openssl"
+ rlAssertGrep "serial=$CONV_UPP_VAL_PKCS10" "$temp_out-openssl"
rlPhaseEnd
#Run pki cert-show <valid serialNumber> --output <filename> (crmf)
@@ -194,7 +194,7 @@ run_pki-cert-show-ca_tests()
rlAssertGrep "-----BEGIN CERTIFICATE-----" "$temp_out"
rlAssertGrep "\-----END CERTIFICATE-----" "$temp_out"
rlRun "openssl x509 -in $temp_out -noout -serial 1> $temp_out-openssl" 0 "Run openssl x509 on the output file"
- rlAssertGrep "serial=0$CONV_UPP_VAL_CRMF" "$temp_out-openssl"
+ rlAssertGrep "serial=$CONV_UPP_VAL_CRMF" "$temp_out-openssl"
rlPhaseEnd
# Run pki cert-show <invalid-serial-number> --output