summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/publishers/fixtures/packer-full.xml24
-rw-r--r--tests/publishers/fixtures/packer-full.yaml16
-rw-r--r--tests/publishers/fixtures/packer-minimal.xml14
-rw-r--r--tests/publishers/fixtures/packer-minimal.yaml3
4 files changed, 57 insertions, 0 deletions
diff --git a/tests/publishers/fixtures/packer-full.xml b/tests/publishers/fixtures/packer-full.xml
new file mode 100644
index 00000000..ffd07e3b
--- /dev/null
+++ b/tests/publishers/fixtures/packer-full.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+ <publishers>
+ <biz.neustar.jenkins.plugins.packer.PackerPublisher>
+ <name>test name</name>
+ <jsonTemplate>test template</jsonTemplate>
+ <jsonTemplateText>test template text</jsonTemplateText>
+ <params>additional params</params>
+ <useDebug>true</useDebug>
+ <changeDir>change to directory</changeDir>
+ <templateMode>global</templateMode>
+ <fileEntries>
+ <biz.neustar.jenkins.plugins.packer.PackerFileEntry>
+ <varFileName>test var</varFileName>
+ <contents>test content</contents>
+ </biz.neustar.jenkins.plugins.packer.PackerFileEntry>
+ <biz.neustar.jenkins.plugins.packer.PackerFileEntry>
+ <varFileName>test var 2</varFileName>
+ <contents>test content 2</contents>
+ </biz.neustar.jenkins.plugins.packer.PackerFileEntry>
+ </fileEntries>
+ </biz.neustar.jenkins.plugins.packer.PackerPublisher>
+ </publishers>
+</project>
diff --git a/tests/publishers/fixtures/packer-full.yaml b/tests/publishers/fixtures/packer-full.yaml
new file mode 100644
index 00000000..93efcacb
--- /dev/null
+++ b/tests/publishers/fixtures/packer-full.yaml
@@ -0,0 +1,16 @@
+publishers:
+ - packer:
+ name: test name
+ json-template: test template
+ json-template-text: test template text
+ add-params: additional params
+ use-debug: true
+ change-dir: change to directory
+ template-mode: global
+ file-entries:
+ - files:
+ variable-name: test var
+ contents: test content
+ - files:
+ variable-name: test var 2
+ contents: test content 2
diff --git a/tests/publishers/fixtures/packer-minimal.xml b/tests/publishers/fixtures/packer-minimal.xml
new file mode 100644
index 00000000..e5632749
--- /dev/null
+++ b/tests/publishers/fixtures/packer-minimal.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+ <publishers>
+ <biz.neustar.jenkins.plugins.packer.PackerPublisher>
+ <name>test name</name>
+ <jsonTemplate/>
+ <jsonTemplateText/>
+ <params/>
+ <useDebug>false</useDebug>
+ <changeDir/>
+ <templateMode>global</templateMode>
+ </biz.neustar.jenkins.plugins.packer.PackerPublisher>
+ </publishers>
+</project>
diff --git a/tests/publishers/fixtures/packer-minimal.yaml b/tests/publishers/fixtures/packer-minimal.yaml
new file mode 100644
index 00000000..5ddbe505
--- /dev/null
+++ b/tests/publishers/fixtures/packer-minimal.yaml
@@ -0,0 +1,3 @@
+publishers:
+ - packer:
+ name: test name