diff options
author | Niranjan Mallapadi <mrniranjan@redhat.com> | 2014-12-01 15:24:22 +0530 |
---|---|---|
committer | Niranjan Mallapadi <mrniranjan@redhat.com> | 2014-12-01 16:44:02 +0530 |
commit | 1e9024758746b879a013099a3873a68d9d9fb9d0 (patch) | |
tree | 91359b44e9cd88fab8ab79b396904e15db0b46db /tests/dogtag | |
parent | 4ca08a3c42352b4baf7b99e7bc4a03240ebebcca (diff) | |
download | pki-1e9024758746b879a013099a3873a68d9d9fb9d0.tar.gz pki-1e9024758746b879a013099a3873a68d9d9fb9d0.tar.xz pki-1e9024758746b879a013099a3873a68d9d9fb9d0.zip |
Modify ca profile cli's tests with minor changes
Diffstat (limited to 'tests/dogtag')
5 files changed, 8 insertions, 9 deletions
diff --git a/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-del.sh b/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-del.sh index 649b955c4..393d76882 100755 --- a/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-del.sh +++ b/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-del.sh @@ -74,13 +74,12 @@ run_pki-ca-profile-del_tests() local rand=$RANDOM local tmp_junk_data=$(openssl rand -base64 50 | perl -p -e 's/\n//') - rlPhaseStartTest "pki ca-profile-del config_test: pki ca-profile-del --help configuration test" + rlPhaseStartTest "pki_ca-profile-del: pki ca-profile-del help configuration test" rlRun "pki ca-profile-del --help > $ca_profile_out" 0 "pki ca-profile-del --help" rlAssertGrep "usage: ca-profile-del <Profile ID> \[OPTIONS...\]" "$ca_profile_out" rlAssertGrep " --help Show help options" "$ca_profile_out" rlPhaseEnd - rlPhaseStartTest "pki_ca_profile_del-001:Create a user profile and delete the profile" profile="caUserTestProfile$RANDOM" rlRun "python -m PkiLib.pkiprofilecli --new user --profileId $profile --output $TmpDir/$profile\.xml" diff --git a/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-disable.sh b/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-disable.sh index 67c3314ae..a9f36fbb9 100755 --- a/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-disable.sh +++ b/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-disable.sh @@ -74,7 +74,7 @@ run_pki-ca-profile-disable_tests() local rand=$RANDOM local tmp_junk_data=$(openssl rand -base64 50 | perl -p -e 's/\n//') - rlPhaseStartTest "pki ca-profile-disable config_test: pki ca-profile-disable --help configuration test" + rlPhaseStartTest "pki_ca-profile-disable-config_test: pki ca-profile-disable --help configuration test" rlRun "pki ca-profile-disable --help > $ca_profile_out" 0 "pki ca-profile-disable --help" rlAssertGrep "usage: ca-profile-disable <Profile ID> \[OPTIONS...\]" "$ca_profile_out" rlAssertGrep " --help Show help options" "$ca_profile_out" diff --git a/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-enable.sh b/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-enable.sh index ba85b64b5..84ba966f7 100755 --- a/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-enable.sh +++ b/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-enable.sh @@ -74,7 +74,7 @@ run_pki-ca-profile-enable_tests() local rand=$RANDOM local tmp_junk_data=$(openssl rand -base64 50 | perl -p -e 's/\n//') - rlPhaseStartTest "pki ca-profile-enable config_test: pki ca-profile-enable- --help configuration test" + rlPhaseStartTest "pki_ca-profile-enable-config_test: pki ca-profile-enable- --help configuration test" rlRun "pki ca-profile-enable --help > $ca_profile_out" 0 "pki ca-profile-enable --help" rlAssertGrep "usage: ca-profile-enable <Profile ID> \[OPTIONS...\]" "$ca_profile_out" rlAssertGrep " --help Show help options" "$ca_profile_out" diff --git a/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-find.sh b/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-find.sh index e9ac26524..5174be144 100755 --- a/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-find.sh +++ b/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli-find.sh @@ -74,10 +74,10 @@ run_pki-ca-profile-find_tests() local rand=$RANDOM - rlPhaseStartTest "pki_ca-profile-find --help Test: Show all the options of pki ca-profile-find" - local temp_out="$TmpDir/pki-ca-profile-help" + rlPhaseStartTest "pki_ca-profile-find-config-Test: Show all the options of pki ca-profile-find" + local temp_out="$TmpDir/pki-ca-profile-help" rlLog "Executing pki ca-profile-find --help" - rlRun "pki ca-profile-find --help 1> $ca_profile_out" 0 "pki ca-profile-find --help" + rlRun "pki ca-profile-find --help 1> $ca_profile_out" 0 "pki ca-profile-find --help" rlAssertGrep "usage: ca-profile-find \[OPTIONS...\]" "$ca_profile_out" rlAssertGrep " --help Show help options" "$ca_profile_out" rlAssertGrep " --size <size> Page size" "$ca_profile_out" diff --git a/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli.sh b/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli.sh index ce7fd227b..2aeecf5ee 100755 --- a/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli.sh +++ b/tests/dogtag/acceptance/cli-tests/pki-ca-profile-cli/pki-ca-profile-cli.sh @@ -46,7 +46,7 @@ run_pki-ca-profile_tests() rlRun "pushd $TmpDir" rlPhaseEnd - rlPhaseStartTest "pki_ca-profile --help Test: Show all the options of pki ca-profile" + rlPhaseStartTest "pki-ca profile config test: Show all the options of pki ca-profile" local temp_out="$TmpDir/pki-ca-profile-help" rlLog "Executing pki ca-profile --help" rlRun "pki ca-profile --help 1> $temp_out" 0 "pki ca-profile --help" @@ -60,7 +60,7 @@ run_pki-ca-profile_tests() rlAssertGrep " ca-profile-disable Disable profiles" "$temp_out" rlPhaseEnd - rlPhaseStartTest "pki_ca-profile-001: pki ca-profile with junk characters should return invalid module" + rlPhaseStartTest "pki-ca-profile-001: pki ca-profile with junk characters should return invalid module" local temp_out1="$TmpDir/pki_ca-profile001" local junk=$(openssl rand -base64 50 | perl -p -e 's/\n//') rlLog "Executing pki ca-profile \"$junk\" characters" |