diff options
author | Ari LiVigni <alivigni@redhat.com> | 2017-03-30 10:25:17 -0400 |
---|---|---|
committer | Ari LiVigni <alivigni@redhat.com> | 2017-03-31 11:55:06 -0400 |
commit | 16c41b6a82d406aa62c86c361221bfe258eb4028 (patch) | |
tree | 694492d6cbff70342b916ff5fa98d5211a6e2c92 /tests/triggers | |
parent | a5eb235881c2848d258fb06eae4a60a1b83edd4b (diff) | |
download | python-jenkins-job-builder-16c41b6a82d406aa62c86c361221bfe258eb4028.tar.gz python-jenkins-job-builder-16c41b6a82d406aa62c86c361221bfe258eb4028.tar.xz python-jenkins-job-builder-16c41b6a82d406aa62c86c361221bfe258eb4028.zip |
Add support for jms_messaging plugin as a trigger
- Added all the fields for JMS Messaging plugins
- Added a minimal example
- Added a full example
Change-Id: I62906133019253a0cf391eda76b3515ecf328b9f
Diffstat (limited to 'tests/triggers')
-rw-r--r-- | tests/triggers/fixtures/jms-messaging001.xml | 20 | ||||
-rw-r--r-- | tests/triggers/fixtures/jms-messaging001.yaml | 9 | ||||
-rw-r--r-- | tests/triggers/fixtures/jms-messaging002.xml | 10 | ||||
-rw-r--r-- | tests/triggers/fixtures/jms-messaging002.yaml | 5 |
4 files changed, 44 insertions, 0 deletions
diff --git a/tests/triggers/fixtures/jms-messaging001.xml b/tests/triggers/fixtures/jms-messaging001.xml new file mode 100644 index 00000000..9c45a8bd --- /dev/null +++ b/tests/triggers/fixtures/jms-messaging001.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<project> + <triggers class="vector"> + <com.redhat.jenkins.plugins.ci.CIBuildTrigger> + <spec/> + <selector>topic = "org.fedoraproject.prod.fedimg.image.upload"</selector> + <providerName>fedmsg</providerName> + <checks> + <com.redhat.jenkins.plugins.ci.messaging.checks.MsgCheck> + <field>compose</field> + <expectedValue>.+compose_id.+Fedora-Atomic.+</expectedValue> + </com.redhat.jenkins.plugins.ci.messaging.checks.MsgCheck> + <com.redhat.jenkins.plugins.ci.messaging.checks.MsgCheck> + <field>image_name</field> + <expectedValue>.+Fedora-Atomic.+</expectedValue> + </com.redhat.jenkins.plugins.ci.messaging.checks.MsgCheck> + </checks> + </com.redhat.jenkins.plugins.ci.CIBuildTrigger> + </triggers> +</project>
\ No newline at end of file diff --git a/tests/triggers/fixtures/jms-messaging001.yaml b/tests/triggers/fixtures/jms-messaging001.yaml new file mode 100644 index 00000000..2e9d4b77 --- /dev/null +++ b/tests/triggers/fixtures/jms-messaging001.yaml @@ -0,0 +1,9 @@ +triggers: + - jms-messaging: + selector: topic = "org.fedoraproject.prod.fedimg.image.upload" + provider-name: fedmsg + checks: + - field: compose + expected-value: .+compose_id.+Fedora-Atomic.+ + - field: image_name + expected-value: .+Fedora-Atomic.+ diff --git a/tests/triggers/fixtures/jms-messaging002.xml b/tests/triggers/fixtures/jms-messaging002.xml new file mode 100644 index 00000000..d0b6c23c --- /dev/null +++ b/tests/triggers/fixtures/jms-messaging002.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<project> + <triggers class="vector"> + <com.redhat.jenkins.plugins.ci.CIBuildTrigger> + <spec/> + <selector>topic = "org.fedoraproject.prod.fedimg.image.upload"</selector> + <providerName>fedmsg</providerName> + </com.redhat.jenkins.plugins.ci.CIBuildTrigger> + </triggers> +</project>
\ No newline at end of file diff --git a/tests/triggers/fixtures/jms-messaging002.yaml b/tests/triggers/fixtures/jms-messaging002.yaml new file mode 100644 index 00000000..36e5085b --- /dev/null +++ b/tests/triggers/fixtures/jms-messaging002.yaml @@ -0,0 +1,5 @@ +triggers: + - jms-messaging: + selector: topic = "org.fedoraproject.prod.fedimg.image.upload" + provider-name: fedmsg + |