summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2019-10-13 20:46:59 +0000
committerGerrit Code Review <review@openstack.org>2019-10-13 20:46:59 +0000
commitda1e227c8c80e4c280d172c4e830b6d27a17d86f (patch)
tree812816b987e33fe56c4639ee1d07e679492d8e98 /tests
parent6e835286f198276de883370e0aa9a48d82ac33f2 (diff)
parent895d8f3f7a8714d13636ff7113db11b764927998 (diff)
downloadpython-jenkins-job-builder-da1e227c8c80e4c280d172c4e830b6d27a17d86f.tar.gz
python-jenkins-job-builder-da1e227c8c80e4c280d172c4e830b6d27a17d86f.tar.xz
python-jenkins-job-builder-da1e227c8c80e4c280d172c4e830b6d27a17d86f.zip
Merge "Fix Authorization properties for folder and job in Folder"
Diffstat (limited to 'tests')
-rw-r--r--tests/yamlparser/fixtures/project_folder_template003.xml25
-rw-r--r--tests/yamlparser/fixtures/project_folder_template003.yaml9
2 files changed, 34 insertions, 0 deletions
diff --git a/tests/yamlparser/fixtures/project_folder_template003.xml b/tests/yamlparser/fixtures/project_folder_template003.xml
new file mode 100644
index 00000000..717ab44d
--- /dev/null
+++ b/tests/yamlparser/fixtures/project_folder_template003.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<com.cloudbees.hudson.plugins.folder.Folder plugin="cloudbees-folder">
+ <icon class="com.cloudbees.hudson.plugins.folder.icons.StockFolderIcon"/>
+ <views/>
+ <viewsTabBar class="hudson.views.DefaultViewsTabBar"/>
+ <primaryView>All</primaryView>
+ <healthMetrics/>
+ <actions/>
+ <description>foo bar&lt;!-- Managed by Jenkins Job Builder --&gt;</description>
+ <keepDependencies>false</keepDependencies>
+ <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
+ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
+ <concurrentBuild>false</concurrentBuild>
+ <canRoam>true</canRoam>
+ <properties>
+ <com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty>
+ <inheritanceStrategy class="org.jenkinsci.plugins.matrixauth.inheritance.InheritParentStrategy"/>
+ <permission>hudson.model.Item.Read:foobar</permission>
+ <permission>hudson.model.Item.ExtendedRead:foobar</permission>
+ </com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty>
+ </properties>
+ <scm class="hudson.scm.NullSCM"/>
+ <publishers/>
+ <buildWrappers/>
+</com.cloudbees.hudson.plugins.folder.Folder>
diff --git a/tests/yamlparser/fixtures/project_folder_template003.yaml b/tests/yamlparser/fixtures/project_folder_template003.yaml
new file mode 100644
index 00000000..af214cee
--- /dev/null
+++ b/tests/yamlparser/fixtures/project_folder_template003.yaml
@@ -0,0 +1,9 @@
+- job:
+ name: folder_with_auth
+ project-type: folder
+ description: foo bar
+ properties:
+ - authorization:
+ foobar:
+ - 'job-read'
+ - 'job-extended-read'