summaryrefslogtreecommitdiffstats
path: root/tests/publishers
diff options
context:
space:
mode:
authorAndrew Mellen <andrew_mellen@icloud.com>2018-04-25 11:20:42 -0400
committerAndrew Mellen <andrew_mellen@icloud.com>2018-04-25 11:20:47 -0400
commitc3c2802d4fc166c7e81d8953b226a68c2252ff77 (patch)
treeb07345ec254b60fd7f9d8096e8fe5f5417353ec5 /tests/publishers
parentf95db7c756383e461ca49e4f5a9028370331c55e (diff)
downloadpython-jenkins-job-builder-c3c2802d4fc166c7e81d8953b226a68c2252ff77.tar.gz
python-jenkins-job-builder-c3c2802d4fc166c7e81d8953b226a68c2252ff77.tar.xz
python-jenkins-job-builder-c3c2802d4fc166c7e81d8953b226a68c2252ff77.zip
Add Slack 2.2 new settings
The slack plugin added the "includeFailedTests" and "notifyRegression" options. This review adds those two options, along with unit tests for them. Change-Id: I256933d3d25c09c72c688928e9068fe66f23055b
Diffstat (limited to 'tests/publishers')
-rw-r--r--tests/publishers/fixtures/slack003.xml2
-rw-r--r--tests/publishers/fixtures/slack004.xml2
-rw-r--r--tests/publishers/fixtures/slack004.yaml2
3 files changed, 6 insertions, 0 deletions
diff --git a/tests/publishers/fixtures/slack003.xml b/tests/publishers/fixtures/slack003.xml
index 518a3777..026be446 100644
--- a/tests/publishers/fixtures/slack003.xml
+++ b/tests/publishers/fixtures/slack003.xml
@@ -14,8 +14,10 @@
<notifyUnstable>false</notifyUnstable>
<notifyFailure>false</notifyFailure>
<notifyBackToNormal>false</notifyBackToNormal>
+ <notifyRegression>false</notifyRegression>
<notifyRepeatedFailure>false</notifyRepeatedFailure>
<includeTestSummary>false</includeTestSummary>
+ <includeFailedTests>false</includeFailedTests>
<commitInfoChoice>NONE</commitInfoChoice>
<includeCustomMessage>false</includeCustomMessage>
<customMessage/>
diff --git a/tests/publishers/fixtures/slack004.xml b/tests/publishers/fixtures/slack004.xml
index 13b23b54..73eb8b68 100644
--- a/tests/publishers/fixtures/slack004.xml
+++ b/tests/publishers/fixtures/slack004.xml
@@ -14,8 +14,10 @@
<notifyUnstable>true</notifyUnstable>
<notifyFailure>true</notifyFailure>
<notifyBackToNormal>true</notifyBackToNormal>
+ <notifyRegression>true</notifyRegression>
<notifyRepeatedFailure>true</notifyRepeatedFailure>
<includeTestSummary>true</includeTestSummary>
+ <includeFailedTests>true</includeFailedTests>
<commitInfoChoice>AUTHORS_AND_TITLES</commitInfoChoice>
<includeCustomMessage>true</includeCustomMessage>
<customMessage>A custom message.</customMessage>
diff --git a/tests/publishers/fixtures/slack004.yaml b/tests/publishers/fixtures/slack004.yaml
index bb7d8e60..bf4d9e1c 100644
--- a/tests/publishers/fixtures/slack004.yaml
+++ b/tests/publishers/fixtures/slack004.yaml
@@ -13,7 +13,9 @@ publishers:
notify-failure: True
notify-back-to-normal: True
notify-repeated-failure: True
+ notify-regression: True
include-test-summary: True
+ include-failed-tests: True
commit-info-choice: 'AUTHORS_AND_TITLES'
include-custom-message: True
custom-message: 'A custom message.'