summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYolande Amate <yolandeamate@gmail.com>2017-08-15 23:43:50 +0100
committerYolande Amate <yolandeamate@gmail.com>2017-08-16 02:34:31 +0100
commit3e44a5233604fae8d8e15cf206a4ba8cc3e2ea32 (patch)
treed13ecd187c40c31dc981997b387bc15bd51c38e0 /tests
parentb402d7800cd06e9d2b097b8779416fe8bb09be89 (diff)
downloadpython-jenkins-job-builder-3e44a5233604fae8d8e15cf206a4ba8cc3e2ea32.tar.gz
python-jenkins-job-builder-3e44a5233604fae8d8e15cf206a4ba8cc3e2ea32.tar.xz
python-jenkins-job-builder-3e44a5233604fae8d8e15cf206a4ba8cc3e2ea32.zip
Add support for the Branch API Plugin
Change-Id: I3ed06a4ef957cb088bda8b9a5881d642f68cbe3d
Diffstat (limited to 'tests')
-rw-r--r--tests/properties/fixtures/branch-api-full.xml9
-rw-r--r--tests/properties/fixtures/branch-api-full.yaml5
-rw-r--r--tests/properties/fixtures/branch-api-minimal.xml9
-rw-r--r--tests/properties/fixtures/branch-api-minimal.yaml2
4 files changed, 25 insertions, 0 deletions
diff --git a/tests/properties/fixtures/branch-api-full.xml b/tests/properties/fixtures/branch-api-full.xml
new file mode 100644
index 00000000..e919921e
--- /dev/null
+++ b/tests/properties/fixtures/branch-api-full.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+ <properties>
+ <jenkins.branch.RateLimitBranchProperty_-JobPropertyImpl plugin="branch-api">
+ <durationName>Day</durationName>
+ <count>5</count>
+ </jenkins.branch.RateLimitBranchProperty_-JobPropertyImpl>
+ </properties>
+</project>
diff --git a/tests/properties/fixtures/branch-api-full.yaml b/tests/properties/fixtures/branch-api-full.yaml
new file mode 100644
index 00000000..fd87247b
--- /dev/null
+++ b/tests/properties/fixtures/branch-api-full.yaml
@@ -0,0 +1,5 @@
+properties:
+ - branch-api:
+ time-period: Day
+ number-of-builds: 5
+
diff --git a/tests/properties/fixtures/branch-api-minimal.xml b/tests/properties/fixtures/branch-api-minimal.xml
new file mode 100644
index 00000000..23e29ded
--- /dev/null
+++ b/tests/properties/fixtures/branch-api-minimal.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+ <properties>
+ <jenkins.branch.RateLimitBranchProperty_-JobPropertyImpl plugin="branch-api">
+ <durationName>Hour</durationName>
+ <count>1</count>
+ </jenkins.branch.RateLimitBranchProperty_-JobPropertyImpl>
+ </properties>
+</project>
diff --git a/tests/properties/fixtures/branch-api-minimal.yaml b/tests/properties/fixtures/branch-api-minimal.yaml
new file mode 100644
index 00000000..1cb9a890
--- /dev/null
+++ b/tests/properties/fixtures/branch-api-minimal.yaml
@@ -0,0 +1,2 @@
+properties:
+ - branch-api