summaryrefslogtreecommitdiffstats
path: root/tests/yamlparser
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-02-08 04:08:00 +0000
committerGerrit Code Review <review@openstack.org>2018-02-08 04:08:00 +0000
commit308aec601e7d99eb0c7b01219c255206b3c90f35 (patch)
treea94352f7620cadc6724c69e1f49aea405bf52a67 /tests/yamlparser
parent0133a97b7016ee97978759527253522b9449465b (diff)
parentcd651c4b8033765ab30f4d0cb10289a9580fc2a4 (diff)
downloadpython-jenkins-job-builder-308aec601e7d99eb0c7b01219c255206b3c90f35.tar.gz
python-jenkins-job-builder-308aec601e7d99eb0c7b01219c255206b3c90f35.tar.xz
python-jenkins-job-builder-308aec601e7d99eb0c7b01219c255206b3c90f35.zip
Merge "hipchat_notif: Fix compatibility dispatch"
Diffstat (limited to 'tests/yamlparser')
-rw-r--r--tests/yamlparser/fixtures/hipchat1.plugins_info.yaml3
-rw-r--r--tests/yamlparser/fixtures/hipchat1.xml27
-rw-r--r--tests/yamlparser/fixtures/hipchat1.yaml17
3 files changed, 47 insertions, 0 deletions
diff --git a/tests/yamlparser/fixtures/hipchat1.plugins_info.yaml b/tests/yamlparser/fixtures/hipchat1.plugins_info.yaml
new file mode 100644
index 00000000..25ec76fa
--- /dev/null
+++ b/tests/yamlparser/fixtures/hipchat1.plugins_info.yaml
@@ -0,0 +1,3 @@
+- longName: 'Jenkins HipChat Plugin'
+ shortName: 'hipchat'
+ version: "2.1.1"
diff --git a/tests/yamlparser/fixtures/hipchat1.xml b/tests/yamlparser/fixtures/hipchat1.xml
new file mode 100644
index 00000000..e5ec0d31
--- /dev/null
+++ b/tests/yamlparser/fixtures/hipchat1.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+ <actions/>
+ <description>desc&lt;!-- Managed by Jenkins Job Builder --&gt;</description>
+ <keepDependencies>false</keepDependencies>
+ <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
+ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
+ <concurrentBuild>false</concurrentBuild>
+ <canRoam>true</canRoam>
+ <properties/>
+ <scm class="hudson.scm.NullSCM"/>
+ <builders/>
+ <publishers>
+ <jenkins.plugins.hipchat.HipChatNotifier>
+ <token/>
+ <room>room1</room>
+ <startNotification>true</startNotification>
+ <notifySuccess>false</notifySuccess>
+ <notifyAborted>false</notifyAborted>
+ <notifyNotBuilt>false</notifyNotBuilt>
+ <notifyUnstable>false</notifyUnstable>
+ <notifyFailure>false</notifyFailure>
+ <notifyBackToNormal>false</notifyBackToNormal>
+ </jenkins.plugins.hipchat.HipChatNotifier>
+ </publishers>
+ <buildWrappers/>
+</project>
diff --git a/tests/yamlparser/fixtures/hipchat1.yaml b/tests/yamlparser/fixtures/hipchat1.yaml
new file mode 100644
index 00000000..7a797fc2
--- /dev/null
+++ b/tests/yamlparser/fixtures/hipchat1.yaml
@@ -0,0 +1,17 @@
+- defaults:
+ name: global
+ project-type: freestyle
+ description: desc
+
+- project:
+ name: hipchat1
+ jobs:
+ - 'hipchat1-tpl'
+
+- job-template:
+ name: 'hipchat1-tpl'
+ scm: []
+ hipchat:
+ enabled: true
+ rooms: [room1]
+ notify-start: true