summaryrefslogtreecommitdiffstats
path: root/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dogtag/acceptance/cli-tests/pki-kra-user-cli')
-rwxr-xr-xtests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-add.sh9
-rwxr-xr-xtests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-delete.sh6
-rwxr-xr-xtests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-find.sh9
-rwxr-xr-xtests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-show.sh5
-rwxr-xr-xtests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-mod.sh2
5 files changed, 11 insertions, 20 deletions
diff --git a/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-add.sh b/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-add.sh
index 383feda89..f9653622a 100755
--- a/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-add.sh
+++ b/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-add.sh
@@ -94,7 +94,6 @@ ROOTCA_agent_user=${caId}_agentV
rlAssertGrep "--input <file> Input file" "$TmpDir/pki_kra_user_cert_add_cfg.out"
rlAssertGrep "--serial <serial number> Serial number of certificate in CA" "$TmpDir/pki_kra_user_cert_add_cfg.out"
rlAssertGrep "--help Show help options" "$TmpDir/pki_kra_user_cert_add_cfg.out"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/843"
rlPhaseEnd
##### Tests to add certs to KRA users ####
@@ -1445,7 +1444,7 @@ rlPhaseStartTest "pki_kra_user_cli_kra_user_cert-add-0022: Adding a cert as CA_a
errorcode=255
rlRun "verifyErrorMsg \"$command\" \"$errmsg\" \"$errorcode\"" 0 "Verify expected error message - Adding cert to a user as an expired admin cert"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/962"
+ rlLog "FAIL: https://fedorahosted.org/pki/ticket/934"
rlRun "date --set='2 days ago'" 0 "Set System back to the present day"
rlPhaseEnd
@@ -1591,7 +1590,7 @@ rlPhaseStartTest "pki_kra_user_cli_kra_user_cert-add-0025: Adding a cert as agen
errorcode=255
rlRun "verifyErrorMsg \"$command\" \"$errmsg\" \"$errorcode\"" 0 "Verify expected error message - Adding cert to a user as an agent user with expired cert"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/962"
+ rlLog "FAIL: https://fedorahosted.org/pki/ticket/934"
rlRun "date --set='2 days ago'" 0 "Set System back to the present day"
rlPhaseEnd
@@ -1639,7 +1638,6 @@ rlPhaseStartTest "pki_kra_user_cli_kra_user_cert-add-0026: Adding a cert as role
errorcode=255
rlRun "verifyErrorMsg \"$command\" \"$errmsg\" \"$errorcode\"" 0 "Verify expected error message - Adding cert to a user as KRA_adminUTCA"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/962"
rlPhaseEnd
##### Adding a cert as KRA_agentUTCA #####
@@ -1686,7 +1684,6 @@ rlPhaseStartTest "pki_kra_user_cli_kra_user_cert-add-0027: Adding a cert as KRA_
errorcode=255
rlRun "verifyErrorMsg \"$command\" \"$errmsg\" \"$errorcode\"" 0 "Verify expected error message - Adding cert to a user KRA_agentUTCA"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/962"
rlPhaseEnd
##### Adding a cert as an KRA_operatorV #####
@@ -1779,7 +1776,7 @@ rlPhaseStartTest "pki_kra_user_cli_kra_user_cert-add-0029: Adding a cert as user
errorcode=255
rlRun "verifyErrorMsg \"$command\" \"$errmsg\" \"$errorcode\"" 0 "Verify expected error message - Adding cert to $userid as a user not associated with any group"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/962"
+ rlLog "FAIL: https://fedorahosted.org/pki/ticket/934"
rlPhaseEnd
##### Add one cert to a user - switching position of options #####
diff --git a/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-delete.sh b/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-delete.sh
index b2e508171..f6c85280d 100755
--- a/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-delete.sh
+++ b/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-delete.sh
@@ -92,7 +92,6 @@ ROOTCA_agent_user=${caId}_agentV
"User cert delete configuration"
rlAssertGrep "usage: kra-user-cert-del <User ID> <Cert ID>" "$TmpDir/pki_kra_user_cert_del_cfg.out"
rlAssertNotGrep "Error: Unrecognized option: --help" "$TmpDir/pki_kra_user_cert_del_cfg.out"
- rlLog "FAIL:https://fedorahosted.org/pki/ticket/843"
rlPhaseEnd
##### Tests to delete certs assigned to KRA users ####
@@ -372,7 +371,6 @@ ROOTCA_agent_user=${caId}_agentV
errorcode=255
rlRun "verifyErrorMsg \"$command\" \"$errmsg\" \"$errorcode\"" 0 "Verify expected error message - pki kra-user-cert-del should fail if authenticating using a valid auditor cert"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/962"
rlPhaseEnd
##### Delete certs asigned to a user - as KRA_adminE #####
@@ -395,7 +393,7 @@ ROOTCA_agent_user=${caId}_agentV
rlRun "verifyErrorMsg \"$command\" \"$errmsg\" \"$errorcode\"" 0 "Verify expected error message - pki kra-user-cert-del should fail if authenticating using an expired admin cert"
rlRun "date --set='2 days ago'" 0 "Set System back to the present day"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/962"
+ rlLog "FAIL: https://fedorahosted.org/pki/ticket/934"
rlPhaseEnd
##### Delete certs asigned to a user - as KRA_agentE #####
@@ -418,7 +416,7 @@ ROOTCA_agent_user=${caId}_agentV
rlRun "verifyErrorMsg \"$command\" \"$errmsg\" \"$errorcode\"" 0 "Verify expected error message - pki kra-user-cert-del should fail if authenticating using an expired agent cert"
rlRun "date --set='2 days ago'" 0 "Set System back to the present day"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/962"
+ rlLog "FAIL: https://fedorahosted.org/pki/ticket/934"
rlPhaseEnd
##### Delete certs asigned to a user - as KRA_adminR #####
diff --git a/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-find.sh b/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-find.sh
index 6cd5c3afa..14392ec5e 100755
--- a/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-find.sh
+++ b/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-find.sh
@@ -96,7 +96,6 @@ ca_signing_cert_subj_name=$(eval echo \$${caId}_SIGNING_CERT_SUBJECT_NAME)
rlAssertGrep "--size <size> Page size" "$TmpDir/pki_kra_user_cert_find_cfg.out"
rlAssertGrep "--start <start> Page start" "$TmpDir/pki_kra_user_cert_find_cfg.out"
rlAssertNotGrep "Error: Unrecognized option: --help" "$TmpDir/pki_kra_user_cert_find_cfg.out"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/843"
rlPhaseEnd
##### Find certs assigned to a CA user - with userid argument - this user has only a single page of certs ####
@@ -554,7 +553,7 @@ rlPhaseStartTest "pki_kra_user_cli_kra_user_cert-find-0013: Find the certs of a
errmsg="The value for size shold be greater than or equal to 0"
errorcode=255
rlRun "verifyErrorMsg \"$command\" \"$errmsg\" \"$errorcode\"" 0 "Verify expected error message - the value for --start should not be less than 0"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/861"
+ rlLog "FAIL: https://fedorahosted.org/pki/ticket/929"
rlPhaseEnd
##### Find certs assigned to a KRA user - with --start=50 ####
@@ -956,7 +955,7 @@ rlPhaseStartTest "pki_kra_user_cli_kra_user_cert-find-025: Find the certs of a u
errorcode=255
rlRun "verifyErrorMsg \"$command\" \"$errmsg\" \"$errorcode\"" 0 "Verify expected error message - kra-user-cert-find should fail when authenticated as an admin user with an expired cert"
rlRun "date --set='2 days ago'" 0 "Set System back to the present day"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/962"
+ rlLog "FAIL: https://fedorahosted.org/pki/ticket/934"
rlPhaseEnd
#### Find certs assigned to a KRA user - authenticating as an admin user with revoked cert ###
@@ -992,7 +991,7 @@ rlPhaseStartTest "pki_kra_user_cli_kra_user_cert-find-028: Find the certs of a u
errorcode=255
rlRun "verifyErrorMsg \"$command\" \"$errmsg\" \"$errorcode\"" 0 "Verify expected error message - kra-user-cert-find should fail when authenticated as an agent user with an expired cert"
rlRun "date --set='2 days ago'" 0 "Set System back to the present day"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/962"
+ rlLog "FAIL: https://fedorahosted.org/pki/ticket/934"
rlPhaseEnd
#### Find certs assigned to a KRA user - authenticating as a user whose KRA cert has not been trusted ###
@@ -1020,7 +1019,7 @@ rlPhaseStartTest "pki_kra_user_cli_kra_user_cert-find-031: Find the certs of a u
errmsg="ForbiddenException: Authorization Error"
errorcode=255
rlRun "verifyErrorMsg \"$command\" \"$errmsg\" \"$errorcode\"" 0 "Verify expected error message - kra-user-cert-find should fail when authenticated as a user not assigned to any role"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/962"
+ rlLog "FAIL: https://fedorahosted.org/pki/ticket/934"
rlPhaseEnd
#### Find certs assigned to a KRA user - userid is missing ###
diff --git a/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-show.sh b/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-show.sh
index de156e213..c35b201b1 100755
--- a/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-show.sh
+++ b/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-cert-show.sh
@@ -95,7 +95,6 @@ ca_signing_cert_subj_name=$(eval echo \$${caId}_SIGNING_CERT_SUBJECT_NAME)
rlAssertGrep "--output <file> Output file" "$TmpDir/pki_kra_user_cert_show_cfg.out"
rlAssertGrep "--pretty Pretty print" "$TmpDir/pki_kra_user_cert_show_cfg.out"
rlAssertNotGrep "Error: Unrecognized option: --help" "$TmpDir/pki_kra_user_cert_show_cfg.out"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/843"
rlPhaseEnd
##### Tests to find certs assigned to KRA users ####
@@ -758,7 +757,7 @@ ca_signing_cert_subj_name=$(eval echo \$${caId}_SIGNING_CERT_SUBJECT_NAME)
errorcode=255
rlRun "verifyErrorMsg \"$command\" \"$errmsg\" \"$errorcode\"" 0 "Verify expected error message - pki kra-user-cert-show should fail when authenticating with an expired admin cert"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/962"
+ rlLog "FAIL: https://fedorahosted.org/pki/ticket/934"
rlRun "date --set='2 days ago'" 0 "Set System back to the present day"
rlPhaseEnd
@@ -778,7 +777,7 @@ ca_signing_cert_subj_name=$(eval echo \$${caId}_SIGNING_CERT_SUBJECT_NAME)
errorcode=255
rlRun "verifyErrorMsg \"$command\" \"$errmsg\" \"$errorcode\"" 0 "Verify expected error message - pki kra-user-cert-show should fail when authenticating with an expired agent cert"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/962"
+ rlLog "FAIL: https://fedorahosted.org/pki/ticket/934"
rlRun "date --set='2 days ago'" 0 "Set System back to the present day"
rlPhaseEnd
diff --git a/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-mod.sh b/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-mod.sh
index 6260bb5a3..deed0d4d2 100755
--- a/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-mod.sh
+++ b/tests/dogtag/acceptance/cli-tests/pki-kra-user-cli/pki-kra-user-cli-kra-user-mod.sh
@@ -896,7 +896,6 @@ rlPhaseStartTest "pki_kra_user_cli_kra_user_mod-034: Modify a user -- User ID do
rlAssertGrep "State: $state" "$TmpDir/pki-kra-user-mod-039_1.out"
command="pki -d $CERTDB_DIR -n $(eval echo \$${subsystemId}_adminV_user) -c $CERTDB_DIR_PASSWORD -h $KRA_HOST -p $KRA_PORT kra-user-mod --phone=\"\" u16"
rlRun "$command" 0 "Successfully updated phone to empty value"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/836"
rlPhaseEnd
#### Modify a user - state option is empty ####
@@ -914,7 +913,6 @@ rlPhaseStartTest "pki_kra_user_cli_kra_user_mod-034: Modify a user -- User ID do
rlAssertGrep "State: $state" "$TmpDir/pki-kra-user-mod-040_1.out"
command="pki -d $CERTDB_DIR -n $(eval echo \$${subsystemId}_adminV_user) -c $CERTDB_DIR_PASSWORD -h $KRA_HOST -p $KRA_PORT kra-user-mod --state=\"\" u16"
rlRun "$command" 0 "Successfully updated phone to empty value"
- rlLog "FAIL: https://fedorahosted.org/pki/ticket/836"
rlPhaseEnd