jenkins-job-builder/tests/publishers/fixtures
Darragh Bailey 09c0224fb2 Convert all inline publisher examples to tests
Convert all publisher examples to unit tests and use literalinclude to
have sphinx automatically inline the test file contents. Replace
mavendeploy test with more complete version from the code and include
some tests from files that were identical to the inline example.

Enable yaml syntax highlighting for existing examples for consistent
display of docstrings across the publishers module.

In turn fix any python 3 compatibility issues highlighted by the
additional tests executing previously unexercised code paths.

Change-Id: Ic0fd39dee0121c0c22a932fd455dccc5344893b2
2015-03-21 11:18:02 +00:00
..
README Fix multibyte character problem 2014-01-21 22:34:30 +09:00
aggregate-flow-tests.xml Add 'Build Flow Test Aggregator' publisher 2015-02-24 15:29:53 +01:00
aggregate-flow-tests.yaml Add 'Build Flow Test Aggregator' publisher 2015-02-24 15:29:53 +01:00
aggregate-tests001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
aggregate-tests001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
archive001.xml Add fingerprint parameter to archive publisher. 2014-11-13 21:15:26 +01:00
archive001.yaml Add fingerprint parameter to archive publisher. 2014-11-13 21:15:26 +01:00
artifact-dep.xml ArtifactDeployer Plugin support added 2014-02-27 15:01:30 +04:00
artifact-dep.yaml ArtifactDeployer Plugin support added 2014-02-27 15:01:30 +04:00
blame001.xml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
blame001.yaml Added support for Jenkins plugin Blame upstream committers 2013-11-25 18:29:54 +01:00
build-publisher001.xml Remove nonexistent servername and cleanup build publisher 2015-03-15 01:43:33 +01:00
build-publisher001.yaml Remove nonexistent servername and cleanup build publisher 2015-03-15 01:43:33 +01:00
build-publisher002.xml Remove nonexistent servername and cleanup build publisher 2015-03-15 01:43:33 +01:00
build-publisher002.yaml Remove nonexistent servername and cleanup build publisher 2015-03-15 01:43:33 +01:00
campfire001.xml Added support for Jenkins Campfire plugin 2014-02-20 08:31:26 +01:00
campfire001.yaml Added support for Jenkins Campfire plugin 2014-02-20 08:31:26 +01:00
campfire002.xml Added support for Jenkins Campfire plugin 2014-02-20 08:31:26 +01:00
campfire002.yaml Added support for Jenkins Campfire plugin 2014-02-20 08:31:26 +01:00
campfire003.xml Added support for Jenkins Campfire plugin 2014-02-20 08:31:26 +01:00
campfire003.yaml Added support for Jenkins Campfire plugin 2014-02-20 08:31:26 +01:00
checkstyle001.xml Checkstyle publisher did not honor 0 values 2014-05-02 19:26:55 +00:00
checkstyle001.yaml Tests for checkstyle publisher 2014-04-07 10:29:52 +02:00
checkstyle002.xml Checkstyle publisher did not honor 0 values 2014-05-02 19:26:55 +00:00
checkstyle002.yaml Tests for checkstyle publisher 2014-04-07 10:29:52 +02:00
checkstyle003.xml Tests for checkstyle publisher 2014-04-07 10:29:52 +02:00
checkstyle003.yaml Tests for checkstyle publisher 2014-04-07 10:29:52 +02:00
checkstyle004.xml Refactor checkstyle publisher 2014-11-26 11:10:03 +01:00
checkstyle004.yaml Refactor checkstyle publisher 2014-11-26 11:10:03 +01:00
checkstyle005.xml Refactor checkstyle publisher 2014-11-26 11:10:03 +01:00
checkstyle005.yaml Refactor checkstyle publisher 2014-11-26 11:10:03 +01:00
checkstyle006.xml Refactor checkstyle publisher 2014-11-26 11:10:03 +01:00
checkstyle006.yaml Refactor checkstyle publisher 2014-11-26 11:10:03 +01:00
cifs001.xml Flatten attribute for publish plugins 2014-09-26 10:51:50 +01:00
cifs001.yaml Flatten attribute for publish plugins 2014-09-26 10:51:50 +01:00
cigame.xml Added support for CI Game plugin 2014-03-13 21:37:22 +09:00
cigame.yaml Added support for CI Game plugin 2014-03-13 21:37:22 +09:00
claim-build001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
claim-build001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
clone-workspace001.xml Added clone-workspace publisher 2014-02-06 14:39:14 -07:00
clone-workspace001.yaml Added clone-workspace publisher 2014-02-06 14:39:14 -07:00
clone-workspace002.xml Added clone-workspace publisher 2014-02-06 14:39:14 -07:00
clone-workspace002.yaml Added clone-workspace publisher 2014-02-06 14:39:14 -07:00
cloverphp001.xml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
cloverphp001.yaml cloverphp publisher 2013-12-10 20:40:57 +00:00
cloverphp002.xml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
cloverphp002.yaml cloverphp publisher 2013-12-10 20:40:57 +00:00
cloverphp003.xml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
cloverphp003.yaml cloverphp publisher 2013-12-10 20:40:57 +00:00
cobertura001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
cobertura001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
conditional-publisher001.xml Added flexible publish support 2014-10-14 11:54:31 -05:00
conditional-publisher001.yaml Added flexible publish support 2014-10-14 11:54:31 -05:00
conditional-publisher002.xml updated conditional_publisher to support plugin changes 2015-03-13 17:55:00 -05:00
conditional-publisher002.yaml Added flexible publish support 2014-10-14 11:54:31 -05:00
conditional-publisher003.plugins_info.yaml updated conditional_publisher to support plugin changes 2015-03-13 17:55:00 -05:00
conditional-publisher003.xml updated conditional_publisher to support plugin changes 2015-03-13 17:55:00 -05:00
conditional-publisher003.yaml updated conditional_publisher to support plugin changes 2015-03-13 17:55:00 -05:00
copy-to-master001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
copy-to-master001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
coverage001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
coverage001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
cppcheck001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
cppcheck001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
description-setter001.xml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
description-setter001.yaml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
description-setter002.xml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
description-setter002.yaml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
doxygen001.xml Add support for the Jenkins Doxygen publisher plugin. 2014-04-18 08:52:03 +02:00
doxygen001.yaml Add support for the Jenkins Doxygen publisher plugin. 2014-04-18 08:52:03 +02:00
dry001.xml Add DRY publisher 2015-01-12 14:55:57 +01:00
dry001.yaml Add DRY publisher 2015-01-12 14:55:57 +01:00
dry002.xml Add DRY publisher 2015-01-12 14:55:57 +01:00
dry002.yaml Add DRY publisher 2015-01-12 14:55:57 +01:00
dry003.xml Add DRY publisher 2015-01-12 14:55:57 +01:00
dry003.yaml Add DRY publisher 2015-01-12 14:55:57 +01:00
dry004.xml Add DRY publisher 2015-01-12 14:55:57 +01:00
dry004.yaml Add DRY publisher 2015-01-12 14:55:57 +01:00
email-ext001.xml adds safe-output to email-ext in publishers.py 2014-11-21 13:45:26 -06:00
email-ext001.yaml adds safe-output to email-ext in publishers.py 2014-11-21 13:45:26 -06:00
email-ext002.xml adds safe-output to email-ext in publishers.py 2014-11-21 13:45:26 -06:00
email-ext002.yaml Change default Reply-To header to $DEFAULT_REPLYTO. 2014-07-07 08:09:37 -07:00
email001.xml The email publisher needs a list of recipients 2015-02-23 13:35:37 -08:00
email001.yaml The email publisher needs a list of recipients 2015-02-23 13:35:37 -08:00
email002.xml The email publisher needs a list of recipients 2015-02-23 13:35:37 -08:00
email002.yaml The email publisher needs a list of recipients 2015-02-23 13:35:37 -08:00
emotional-jenkins.xml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
emotional-jenkins.yaml Added support for Emotional Jenkins 2013-11-19 19:25:30 +09:00
fingerprint001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
fingerprint001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
fitnesse001.xml Support Fitnesse results publisher 2014-04-15 08:51:17 -07:00
fitnesse001.yaml Support Fitnesse results publisher 2014-04-15 08:51:17 -07:00
ftp001.xml Flatten attribute for publish plugins 2014-09-26 10:51:50 +01:00
ftp001.yaml Flatten attribute for publish plugins 2014-09-26 10:51:50 +01:00
git001.xml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
git001.yaml Cleaned up fixtures. Removing vim editor settings 2013-11-25 18:33:32 +01:00
github-notifier.xml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
github-notifier.yaml Added support for Github notifier 2013-12-21 23:37:06 +09:00
groovy-postbuild001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
groovy-postbuild001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
html-publisher001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
html-publisher001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
ircbot001.xml Fix typo in ircbot's default matrix-notifier. 2014-03-12 14:37:09 -07:00
ircbot001.yaml Fix typo in ircbot's default matrix-notifier. 2014-03-12 14:37:09 -07:00
ircbot002.xml Fix typo in ircbot's default matrix-notifier. 2014-03-12 14:37:09 -07:00
ircbot002.yaml Fix typo in ircbot's default matrix-notifier. 2014-03-12 14:37:09 -07:00
jabber001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
jabber001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
jacoco001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
jacoco001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
jira001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
jira001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
join-trigger001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
join-trigger001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
junit001.xml Add support for Test Stability with Junit 2014-01-24 10:50:03 +01:00
junit001.yaml Add support for Test Stability with Junit 2014-01-24 10:50:03 +01:00
junit002.xml Adds claim-build support junit publisher 2014-11-06 14:09:38 +01:00
junit002.yaml Adds claim-build support junit publisher 2014-11-06 14:09:38 +01:00
logparser001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
logparser001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
maven-deploy001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
maven-deploy001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
performance001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
performance001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
performance002.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
performance002.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
performance003.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
performance003.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
pipeline001.xml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
pipeline001.yaml Add support for parameters in pipeline publisher. 2014-01-09 18:36:04 +00:00
pipeline002.xml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
pipeline002.yaml Add support for parameters in pipeline publisher. 2014-01-09 18:36:04 +00:00
plot001.xml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
plot001.yaml Cleaned up fixtures. Removing vim editor settings 2013-11-25 18:33:32 +01:00
plot002.xml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
plot002.yaml Cleaned up fixtures. Removing vim editor settings 2013-11-25 18:33:32 +01:00
plot003.xml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
plot003.yaml Cleaned up fixtures. Removing vim editor settings 2013-11-25 18:33:32 +01:00
plot004.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
plot004.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
pmd001.xml Add PMD publisher 2014-09-17 11:12:36 +02:00
pmd001.yaml Add PMD publisher 2014-09-17 11:12:36 +02:00
pmd002.xml Add PMD publisher 2014-09-17 11:12:36 +02:00
pmd002.yaml Add PMD publisher 2014-09-17 11:12:36 +02:00
pmd003.xml Add PMD publisher 2014-09-17 11:12:36 +02:00
pmd003.yaml Add PMD publisher 2014-09-17 11:12:36 +02:00
pmd004.xml Add PMD publisher 2014-09-17 11:12:36 +02:00
pmd004.yml Add PMD publisher 2014-09-17 11:12:36 +02:00
post-tasks001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
post-tasks001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
postbuildscript000.xml Support the Post Build Script plugin 2014-03-14 23:05:22 +01:00
postbuildscript000.yaml Support the Post Build Script plugin 2014-03-14 23:05:22 +01:00
postbuildscript001.xml Support the Post Build Script plugin 2014-03-14 23:05:22 +01:00
postbuildscript001.yaml deprecate postbuildscript onsuccess and onfailure parameter names 2014-12-15 09:53:17 -08:00
postbuildscript002.xml Support the Post Build Script plugin 2014-03-14 23:05:22 +01:00
postbuildscript002.yaml Support the Post Build Script plugin 2014-03-14 23:05:22 +01:00
postbuildscript003.xml support execute-on for postbuildscript 2014-05-01 06:55:36 -07:00
postbuildscript003.yaml support execute-on for postbuildscript 2014-05-01 06:55:36 -07:00
postbuildscript004.xml Retain user specified order of post build scripts 2014-09-16 17:48:32 +01:00
postbuildscript004.yaml deprecate postbuildscript onsuccess and onfailure parameter names 2014-12-15 09:53:17 -08:00
richtext001.xml Added support for Rich Text Publisher Plugin 2014-10-28 09:10:49 +01:00
richtext001.yaml Added support for Rich Text Publisher Plugin 2014-10-28 09:10:49 +01:00
richtext002.xml Added support for Rich Text Publisher Plugin 2014-10-28 09:10:49 +01:00
richtext002.yaml Added support for Rich Text Publisher Plugin 2014-10-28 09:10:49 +01:00
robot001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
robot001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
ruby-metrics.xml Ensure dict orders are deterministic 2014-09-01 14:15:10 +01:00
ruby-metrics.yaml Ruby metrics plugin support added 2014-03-11 15:28:08 +04:00
s3001.xml Add support for the S3 Publisher plugin 2014-11-12 03:48:03 +00:00
s3001.yaml Add support for the S3 Publisher plugin 2014-11-12 03:48:03 +00:00
scan-build001.xml Add support for the Jenkins Clang Scan-Build publisher plugin. 2014-11-15 16:26:37 +01:00
scan-build001.yaml Add support for the Jenkins Clang Scan-Build publisher plugin. 2014-11-15 16:26:37 +01:00
scan-build002.xml Add support for the Jenkins Clang Scan-Build publisher plugin. 2014-11-15 16:26:37 +01:00
scan-build002.yaml Add support for the Jenkins Clang Scan-Build publisher plugin. 2014-11-15 16:26:37 +01:00
scp001.xml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
scp001.yaml Cleaned up fixtures. Removing vim editor settings 2013-11-25 18:33:32 +01:00
shiningpanda001.xml Adding coverage.py publisher for ShiningPanda Plugin 2015-02-18 22:12:04 +02:00
shiningpanda001.yaml Adding coverage.py publisher for ShiningPanda Plugin 2015-02-18 22:12:04 +02:00
sitemonitor001.xml Support site monitor publisher 2014-02-01 11:49:39 +01:00
sitemonitor001.yaml Support site monitor publisher 2014-02-01 11:49:39 +01:00
sloccount001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
sloccount001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
sonar001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
sonar001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
ssh001.xml Flatten attribute for publish plugins 2014-09-26 10:51:50 +01:00
ssh001.yaml Flatten attribute for publish plugins 2014-09-26 10:51:50 +01:00
stash001.xml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
stash001.yaml Added support for Stash Notifier 2013-11-20 15:53:08 +01:00
tap001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
tap001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
testng001.xml Add support for TestNG publisher. 2014-02-24 14:16:31 +00:00
testng001.yaml Add support for TestNG publisher. 2014-02-24 14:16:31 +00:00
text-finder001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
text-finder001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
trigger_parameterized_builds001.xml Merge "Add examples for 'predefined-parameters'" 2014-12-08 12:29:14 +00:00
trigger_parameterized_builds001.yaml Merge "Add examples for 'predefined-parameters'" 2014-12-08 12:29:14 +00:00
trigger_parameterized_builds002.xml Add support for the NodeLabel Parameter plugin 2014-10-24 04:57:00 -04:00
trigger_parameterized_builds002.yaml Add support for the NodeLabel Parameter plugin 2014-10-24 04:57:00 -04:00
trigger_success.xml Add best and worst status details for conditional-step plugin. 2014-02-10 12:08:40 -05:00
trigger_success.yaml Add best and worst status details for conditional-step plugin. 2014-02-10 12:08:40 -05:00
valgrind001.xml valgrind publisher: Add parameters to fail build 2014-08-31 22:11:14 +02:00
valgrind001.yaml valgrind publisher: Add parameters to fail build 2014-08-31 22:11:14 +02:00
violations001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
violations001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
warnings001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
warnings001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
workspace-cleanup001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
workspace-cleanup001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
xml-summary001.xml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
xml-summary001.yaml Convert all inline publisher examples to tests 2015-03-21 11:18:02 +00:00
xunit001.xml xUnit publisher: add option to skip if there are no tests files 2015-02-19 00:28:31 +00:00
xunit001.yaml Cleaned up fixtures. Removing vim editor settings 2013-11-25 18:33:32 +01:00
xunit002.xml xUnit publisher: add option to skip if there are no tests files 2015-02-19 00:28:31 +00:00
xunit002.yaml xUnit publisher: add option to skip if there are no tests files 2015-02-19 00:28:31 +00:00

README

This directory contains fixtures to test the publishers.

The filename should start with a publisher name (example: xunit) and you must
provide two files:
 - .yaml : yaml snippet representing the publisher as it would be written
           in jenkins job builder configuration file.
 - .xml  : xml Jenkins snippet that should be rendered by the publisher

Each yaml file MUST have a corresponding xml file.

Once the YAML file has been parsed, it is prettify using python minidom
which also means that:
- your XML file must start with: <?xml version="1.0" encoding="utf-8"?>
- self closing elements do not contains space eg: <element/>