From 50921c15d1d1459f76cb2251b72d1092104fdd75 Mon Sep 17 00:00:00 2001 From: Matej Habrnal Date: Mar 07 2015 05:25:30 +0000 Subject: abrt-cli test: minor fixes Signed-off-by: Matej Habrnal --- diff --git a/tests/p_abrt-cli/10-abrt-cli-reporting-test.sh b/tests/p_abrt-cli/10-abrt-cli-reporting-test.sh index 7391188..d7e9be4 100755 --- a/tests/p_abrt-cli/10-abrt-cli-reporting-test.sh +++ b/tests/p_abrt-cli/10-abrt-cli-reporting-test.sh @@ -6,11 +6,12 @@ source $TEST_DIR/_lib.sh source $TEST_DIR/_CentOSBugTracker.conf # run only on centos 7 or greater -[[ $centos_ver -lt 7 ]] && exit +[[ $centos_ver -lt 7 ]] && exit 0 t_Log "Running $0 - test reporting to CentOS Bug Tracker" conf_file="/etc/libreport/events/report_CentOSBugTracker.conf" +abrt_action_conf_file="/etc/abrt/abrt-action-save-package-data.conf" cat > /etc/libreport/events.d/test_event.conf << _EOF_ EVENT=notify @@ -68,6 +69,7 @@ function generate_crash() function set_configuration() { conf_file_original=`cat $conf_file` + abrt_action_conf_file_original=`cat $abrt_action_conf_file` cat > $conf_file << EOF Mantisbt_MantisbtURL = $URL @@ -75,11 +77,20 @@ Mantisbt_Login = $LOGIN Mantisbt_Password = $PASSWORD Mantisbt_SSLVerify = $SSLVERIFY EOF + + cat > $abrt_action_conf_file << EOF +penGPGCheck = no +BlackList = nspluginwrapper, valgrind, strace, mono-core +ProcessUnpackaged = no +BlackListedPaths = /usr/share/doc/*, */example*, /usr/bin/nspluginviewer, /usr/lib/xulrunner-*/plugin-container +Interpreters = python2, python2.7, python, python3, python3.3, perl, perl5.16.2 +EOF } function restore_configuration() { echo $conf_file_original > $conf_file + echo $abrt_action_conf_file_original > $abrt_action_conf_file } rlJournalStart @@ -89,6 +100,9 @@ rlJournalStart check_prior_crashes + systemctl start abrtd + systemctl start abrt-ccpp + orig_editor=`echo $EDITOR` export EDITOR=cat @@ -146,14 +160,14 @@ rlJournalStart data="$LOGIN$PASSWORD$issue_id" - curl --data "$data" $URL"/api/soap/mantisconnect.php" > curl.log + curl --data "$data" -H "Content-Type:text/xml" $URL"/api/soap/mantisconnect.php" > curl.log rlAssertGrep "\[abrt\]" curl.log rlAssertGrep "I am comment. abrt-cli testing" curl.log rlAssertGrep "AttachmentData\[[0-9]*\]" curl.log -e rlAssertNotGrep "AttachmentData\[0\]" curl.log rlAssertGrep "CustomFieldValueForIssueData\[[0-9]*\]" curl.log -e rlAssertNotGrep "CustomFieldValueForIssueData\[0\]" curl.log - rlAssertGrep "