summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJohn Oram <joram@tutelatechnologies.com>2019-12-13 11:33:21 -0800
committerThanh Ha <zxiiro@gmail.com>2020-01-07 12:41:26 -0500
commitf760f090fcb799e886d5724b41f073adc277af26 (patch)
tree036f625937090768c2380000e9a5803b6510beb3 /tests
parent7b00932d2c4ccd25a269ca6238f90427f3c6ad37 (diff)
downloadpython-jenkins-job-builder-f760f090fcb799e886d5724b41f073adc277af26.tar.gz
python-jenkins-job-builder-f760f090fcb799e886d5724b41f073adc277af26.tar.xz
python-jenkins-job-builder-f760f090fcb799e886d5724b41f073adc277af26.zip
Add support for opsgenie notification plugin
Change-Id: Id84b3d9282568cf47d5feb930fd618afe969b45f
Diffstat (limited to 'tests')
-rwxr-xr-xtests/publishers/fixtures/opsgenie-full.xml15
-rwxr-xr-xtests/publishers/fixtures/opsgenie-full.yaml10
-rwxr-xr-xtests/publishers/fixtures/opsgenie-minimal.xml15
-rwxr-xr-xtests/publishers/fixtures/opsgenie-minimal.yaml2
4 files changed, 42 insertions, 0 deletions
diff --git a/tests/publishers/fixtures/opsgenie-full.xml b/tests/publishers/fixtures/opsgenie-full.xml
new file mode 100755
index 00000000..4e630e6e
--- /dev/null
+++ b/tests/publishers/fixtures/opsgenie-full.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+ <publishers>
+ <com.opsgenie.integration.jenkins.OpsGenieNotifier plugin="opsgenie">
+ <alertPriority>P1</alertPriority>
+ <notifyBuildStartPriority>P2</notifyBuildStartPriority>
+ <enable>true</enable>
+ <notifyBuildStart>true</notifyBuildStart>
+ <apiKey>test api key</apiKey>
+ <apiUrl>another-opsgenie-instance.com</apiUrl>
+ <tags>a,b,c</tags>
+ <teams>team a, team b</teams>
+ </com.opsgenie.integration.jenkins.OpsGenieNotifier>
+ </publishers>
+</project>
diff --git a/tests/publishers/fixtures/opsgenie-full.yaml b/tests/publishers/fixtures/opsgenie-full.yaml
new file mode 100755
index 00000000..3bc58059
--- /dev/null
+++ b/tests/publishers/fixtures/opsgenie-full.yaml
@@ -0,0 +1,10 @@
+publishers:
+- opsgenie:
+ enable-sending-alerts: true
+ notify-build-start: true
+ api-key: "test api key"
+ priority: "P1"
+ build-starts-alerts-priority: "P2"
+ api-url: "another-opsgenie-instance.com"
+ tags: "a,b,c"
+ teams: "team a, team b"
diff --git a/tests/publishers/fixtures/opsgenie-minimal.xml b/tests/publishers/fixtures/opsgenie-minimal.xml
new file mode 100755
index 00000000..21d7587b
--- /dev/null
+++ b/tests/publishers/fixtures/opsgenie-minimal.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+ <publishers>
+ <com.opsgenie.integration.jenkins.OpsGenieNotifier plugin="opsgenie">
+ <alertPriority>P3</alertPriority>
+ <notifyBuildStartPriority>P3</notifyBuildStartPriority>
+ <enable>false</enable>
+ <notifyBuildStart>false</notifyBuildStart>
+ <apiKey/>
+ <apiUrl/>
+ <tags/>
+ <teams/>
+ </com.opsgenie.integration.jenkins.OpsGenieNotifier>
+ </publishers>
+</project>
diff --git a/tests/publishers/fixtures/opsgenie-minimal.yaml b/tests/publishers/fixtures/opsgenie-minimal.yaml
new file mode 100755
index 00000000..d3c1d339
--- /dev/null
+++ b/tests/publishers/fixtures/opsgenie-minimal.yaml
@@ -0,0 +1,2 @@
+publishers:
+- opsgenie