summaryrefslogtreecommitdiffstats
path: root/tests/publishers
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-04-30 21:39:21 +0000
committerGerrit Code Review <review@openstack.org>2018-04-30 21:39:21 +0000
commit7696ea37fd65b845ef5cdfb15dcd31e907af2585 (patch)
treee7fb300260210f73ab0ce9b4c13dc7506a444010 /tests/publishers
parent30068062b24a07279981c838b952af86e772dde6 (diff)
parentfbce8ef267177946c16014492ccd8114af0ebe95 (diff)
downloadpython-jenkins-job-builder-7696ea37fd65b845ef5cdfb15dcd31e907af2585.tar.gz
python-jenkins-job-builder-7696ea37fd65b845ef5cdfb15dcd31e907af2585.tar.xz
python-jenkins-job-builder-7696ea37fd65b845ef5cdfb15dcd31e907af2585.zip
Merge "Add support for Cloud Foundry plugin"
Diffstat (limited to 'tests/publishers')
-rw-r--r--tests/publishers/fixtures/cloudfoundry-full.xml62
-rw-r--r--tests/publishers/fixtures/cloudfoundry-full.yaml39
-rw-r--r--tests/publishers/fixtures/cloudfoundry-minimal.xml31
-rw-r--r--tests/publishers/fixtures/cloudfoundry-minimal.yaml6
4 files changed, 138 insertions, 0 deletions
diff --git a/tests/publishers/fixtures/cloudfoundry-full.xml b/tests/publishers/fixtures/cloudfoundry-full.xml
new file mode 100644
index 00000000..a5820365
--- /dev/null
+++ b/tests/publishers/fixtures/cloudfoundry-full.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+ <publishers>
+ <com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher plugin="cloudfoundry">
+ <target>https://api.stackato-rkw2.local</target>
+ <organization>AS</organization>
+ <cloudSpace>SimpleSpace</cloudSpace>
+ <credentialsId>123</credentialsId>
+ <selfSigned>true</selfSigned>
+ <resetIfExists>true</resetIfExists>
+ <pluginTimeout>240</pluginTimeout>
+ <appURIs/>
+ <servicesToCreate>
+ <com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher_-Service>
+ <name>foo-name</name>
+ <type>foo-type</type>
+ <plan>plan1</plan>
+ <resetService>true</resetService>
+ </com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher_-Service>
+ <com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher_-Service>
+ <name>bar-name</name>
+ <type>bar-type</type>
+ <plan>plan2</plan>
+ <resetService>false</resetService>
+ </com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher_-Service>
+ </servicesToCreate>
+ <manifestChoice>
+ <value>jenkinsConfig</value>
+ <manifestFile>manifest.yml</manifestFile>
+ <appName>cloudfoundry</appName>
+ <memory>1024</memory>
+ <hostname>cloudfoundry</hostname>
+ <instances>5</instances>
+ <timeout>120</timeout>
+ <noRoute>true</noRoute>
+ <appPath>foo</appPath>
+ <buildpack>custom-buildpack</buildpack>
+ <stack>custom-stack</stack>
+ <command>start</command>
+ <domain>cloudfoundry.domain</domain>
+ <envVars>
+ <com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher_-EnvironmentVariable>
+ <key>key</key>
+ <value>value</value>
+ </com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher_-EnvironmentVariable>
+ <com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher_-EnvironmentVariable>
+ <key>key2</key>
+ <value>value2</value>
+ </com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher_-EnvironmentVariable>
+ </envVars>
+ <servicesNames>
+ <com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher_-ServiceName>
+ <name>service-name</name>
+ </com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher_-ServiceName>
+ <com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher_-ServiceName>
+ <name>service-name2</name>
+ </com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher_-ServiceName>
+ </servicesNames>
+ </manifestChoice>
+ </com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher>
+ </publishers>
+</project>
diff --git a/tests/publishers/fixtures/cloudfoundry-full.yaml b/tests/publishers/fixtures/cloudfoundry-full.yaml
new file mode 100644
index 00000000..9afa8115
--- /dev/null
+++ b/tests/publishers/fixtures/cloudfoundry-full.yaml
@@ -0,0 +1,39 @@
+publishers:
+ - cloudfoundry:
+ target: https://api.stackato-rkw2.local
+ organization: AS
+ space: SimpleSpace
+ credentials-id: 123
+ self-signed: true
+ reset-app: true
+ timeout: 240
+ create-services:
+ - name: foo-name
+ type: foo-type
+ plan: plan1
+ reset-service: true
+ - name: bar-name
+ type: bar-type
+ plan: plan2
+ reset-service: false
+ value: jenkinsConfig
+ manifest-file: manifest.yml
+ app-name: cloudfoundry
+ memory: 1024
+ host-name: cloudfoundry
+ instances: 5
+ manifest-timeout: 120
+ no-route: true
+ app-path: foo
+ build-pack: custom-buildpack
+ stack: custom-stack
+ command: start
+ domain: cloudfoundry.domain
+ environment-variables:
+ - key: key
+ value: value
+ - key: key2
+ value: value2
+ services-names:
+ - name: service-name
+ - name: service-name2
diff --git a/tests/publishers/fixtures/cloudfoundry-minimal.xml b/tests/publishers/fixtures/cloudfoundry-minimal.xml
new file mode 100644
index 00000000..8a6a51f5
--- /dev/null
+++ b/tests/publishers/fixtures/cloudfoundry-minimal.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+ <publishers>
+ <com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher plugin="cloudfoundry">
+ <target>https://api.stackato-rkw2.local</target>
+ <organization>AS</organization>
+ <cloudSpace>SimpleSpace</cloudSpace>
+ <credentialsId>j89jk213</credentialsId>
+ <selfSigned>false</selfSigned>
+ <resetIfExists>false</resetIfExists>
+ <pluginTimeout>120</pluginTimeout>
+ <appURIs/>
+ <servicesToCreate/>
+ <manifestChoice>
+ <value>manifestFile</value>
+ <manifestFile>manifest.yml</manifestFile>
+ <appName/>
+ <memory>512</memory>
+ <hostname/>
+ <instances>1</instances>
+ <timeout>60</timeout>
+ <noRoute>false</noRoute>
+ <appPath/>
+ <buildpack/>
+ <stack/>
+ <command/>
+ <domain/>
+ </manifestChoice>
+ </com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher>
+ </publishers>
+</project>
diff --git a/tests/publishers/fixtures/cloudfoundry-minimal.yaml b/tests/publishers/fixtures/cloudfoundry-minimal.yaml
new file mode 100644
index 00000000..a96e5057
--- /dev/null
+++ b/tests/publishers/fixtures/cloudfoundry-minimal.yaml
@@ -0,0 +1,6 @@
+publishers:
+ - cloudfoundry:
+ target: https://api.stackato-rkw2.local
+ organization: AS
+ space: SimpleSpace
+ credentials-id: j89jk213