Skip to content
Permalink
Browse files

[JENKINS-46700] Expand zip file for `LocalData` to avoid JENKINS-47075

  • Loading branch information...
ikedam committed Sep 23, 2017
1 parent ebf8b83 commit 39df7ccd9639625b3227830c7a09ac04ef9d0472
Showing with 176 additions and 7 deletions.
  1. +0 −7 src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
  2. BIN src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest.zip
  3. +17 −0 ...resources/hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/config.xml
  4. +1 −0 ...ifactTest/testPermissionWhenParameterized/jobs/testJob/builds/2011-02-01_12-00-00/archive/foo.txt
  5. +12 −0 ...opyArtifactTest/testPermissionWhenParameterized/jobs/testJob/builds/2011-02-01_12-00-00/build.xml
  6. +19 −0 ...son/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/jobs/testJob/config.xml
  7. +1 −0 ...actTest/testPermissionWhenParameterized/jobs/testJob2/builds/2011-02-01_13-00-00/archive/foo2.txt
  8. +12 −0 ...pyArtifactTest/testPermissionWhenParameterized/jobs/testJob2/builds/2011-02-01_13-00-00/build.xml
  9. +19 −0 ...on/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/jobs/testJob2/config.xml
  10. +9 −0 ...hudson/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterized/users/joe/config.xml
  11. +17 −0 ...n/plugins/copyartifact/CopyArtifactTest/testPermissionWhenParameterizedForMatrixConfig/config.xml
  12. +41 −0 ...tifact/CopyArtifactTest/testPermissionWhenParameterizedForMatrixConfig/jobs/testMatrix/config.xml
  13. +1 −0 ...trixConfig/jobs/testMatrix/configurations/axis-FOO/foo/builds/2011-04-12_09-00-00/archive/foo.txt
  14. +12 −0 ...dForMatrixConfig/jobs/testMatrix/configurations/axis-FOO/foo/builds/2011-04-12_09-00-00/build.xml
  15. +15 −0 ...PermissionWhenParameterizedForMatrixConfig/jobs/testMatrix/configurations/axis-FOO/foo/config.xml
@@ -1006,9 +1006,6 @@ public void testPermissionWhenParameterized() throws Exception {
@LocalData
@Test
public void testPermissionWhenParameterizedForMatrixConfig() throws Exception {
// This test fails before Jenkins 1.406
if (new VersionNumber("1.406").isNewerThan(Hudson.getVersion())) return; // Skip

FreeStyleProject p = createProject("testMatrix/FOO=$FOO", null, "", "", false, false, false, true);
ParameterDefinition paramDef = new StringParameterDefinition("FOO", "FOO");
ParametersDefinitionProperty paramsDef = new ParametersDefinitionProperty(paramDef);
@@ -1021,12 +1018,8 @@ public void testPermissionWhenParameterizedForMatrixConfig() throws Exception {
rule.assertBuildStatusSuccess(b);
}

@LocalData
@Test
public void testPermissionWhenParameterizedForMavenModule() throws Exception {
// This test fails before Jenkins 1.406
if (new VersionNumber("1.406").isNewerThan(Hudson.getVersion())) return; // Skip

MavenModuleSet mp = setupMavenJob();
mp.addProperty(new AuthorizationMatrixProperty(
Collections.singletonMap(Item.READ, Collections.singleton("authenticated"))));
Binary file not shown.
@@ -0,0 +1,17 @@
<?xml version='1.0' encoding='UTF-8'?>
<hudson>
<version>1.376</version>
<numExecutors>1</numExecutors>
<mode>NORMAL</mode>
<useSecurity>true</useSecurity>
<authorizationStrategy class="hudson.security.ProjectMatrixAuthorizationStrategy">
<permission>hudson.model.Hudson.Administer:admin</permission>
<permission>hudson.model.Hudson.Read:anonymous</permission>
</authorizationStrategy>
<securityRealm class="hudson.security.HudsonPrivateSecurityRealm">
<disableSignup>true</disableSignup>
</securityRealm>
<jdks/>
<slaves/>
<quietPeriod>5</quietPeriod>
</hudson>
@@ -0,0 +1,12 @@
<?xml version='1.0' encoding='UTF-8'?>
<build>
<actions/>
<number>1</number>
<result>SUCCESS</result>
<duration>54321</duration>
<charset>UTF-8</charset>
<keepLog>false</keepLog>
<builtOn>master</builtOn>
<workspace>/tmp/foo</workspace>
<hudsonVersion>1.376</hudsonVersion>
</build>
@@ -0,0 +1,19 @@
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<properties>
<hudson.security.AuthorizationMatrixProperty>
<useProjectSecurity>true</useProjectSecurity>
<permission>hudson.model.Item.Read:joe</permission>
</hudson.security.AuthorizationMatrixProperty>
</properties>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>false</disabled>
<jdk>(Default)</jdk>
<triggers class="vector"/>
<builders/>
<publishers/>
<buildWrappers/>
</project>
@@ -0,0 +1,12 @@
<?xml version='1.0' encoding='UTF-8'?>
<build>
<actions/>
<number>1</number>
<result>SUCCESS</result>
<duration>54321</duration>
<charset>UTF-8</charset>
<keepLog>false</keepLog>
<builtOn>master</builtOn>
<workspace>/tmp/foo</workspace>
<hudsonVersion>1.376</hudsonVersion>
</build>
@@ -0,0 +1,19 @@
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<properties>
<hudson.security.AuthorizationMatrixProperty>
<useProjectSecurity>true</useProjectSecurity>
<permission>hudson.model.Item.Read:authenticated</permission>
</hudson.security.AuthorizationMatrixProperty>
</properties>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>false</disabled>
<jdk>(Default)</jdk>
<triggers class="vector"/>
<builders/>
<publishers/>
<buildWrappers/>
</project>
@@ -0,0 +1,9 @@
<?xml version='1.0' encoding='UTF-8'?>
<user>
<fullName>Joe</fullName>
<properties>
<hudson.security.HudsonPrivateSecurityRealm_-Details>
<passwordHash>EMXnkE:1434127ddaef0d8cc56535303b644ae94d874c40bce4ee0b53a76c2a58bd4d4a</passwordHash>
</hudson.security.HudsonPrivateSecurityRealm_-Details>
</properties>
</user>
@@ -0,0 +1,17 @@
<?xml version='1.0' encoding='UTF-8'?>
<hudson>
<version>1.376</version>
<numExecutors>1</numExecutors>
<mode>NORMAL</mode>
<useSecurity>true</useSecurity>
<authorizationStrategy class="hudson.security.ProjectMatrixAuthorizationStrategy">
<permission>hudson.model.Hudson.Administer:admin</permission>
<permission>hudson.model.Hudson.Read:anonymous</permission>
</authorizationStrategy>
<securityRealm class="hudson.security.HudsonPrivateSecurityRealm">
<disableSignup>true</disableSignup>
</securityRealm>
<jdks/>
<slaves/>
<quietPeriod>5</quietPeriod>
</hudson>
@@ -0,0 +1,41 @@
<?xml version='1.0' encoding='UTF-8'?>
<matrix-project>
<actions/>
<description></description>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.security.AuthorizationMatrixProperty>
<useProjectSecurity>true</useProjectSecurity>
<permission>hudson.model.Item.Read:anonymous</permission>
</hudson.security.AuthorizationMatrixProperty>
</properties>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers class="vector"/>
<concurrentBuild>false</concurrentBuild>
<axes>
<hudson.matrix.TextAxis>
<name>FOO</name>
<values>
<string>foo</string>
<string>bar</string>
</values>
</hudson.matrix.TextAxis>
</axes>
<builders>
<hudson.tasks.Shell>
<command>echo foo &gt; foo.txt</command>
</hudson.tasks.Shell>
</builders>
<publishers>
<hudson.tasks.ArtifactArchiver>
<artifacts>*.txt</artifacts>
<latestOnly>false</latestOnly>
</hudson.tasks.ArtifactArchiver>
</publishers>
<buildWrappers/>
<runSequentially>false</runSequentially>
</matrix-project>
@@ -0,0 +1,12 @@
<?xml version='1.0' encoding='UTF-8'?>
<matrix-run>
<actions/>
<number>1</number>
<result>SUCCESS</result>
<duration>365</duration>
<builtOn></builtOn>
<workspace>/jenkins/home/jobs/testMatrix/workspace/FOO/foo</workspace>
<hudsonVersion>1.398</hudsonVersion>
<scm class="hudson.scm.NullChangeLogParser"/>
<culprits/>
</matrix-run>
@@ -0,0 +1,15 @@
<?xml version='1.0' encoding='UTF-8'?>
<matrix-config>
<keepDependencies>false</keepDependencies>
<properties/>
<scm class="hudson.scm.NullSCM"/>
<canRoam>false</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers class="vector"/>
<concurrentBuild>false</concurrentBuild>
<builders/>
<publishers/>
<buildWrappers/>
</matrix-config>

0 comments on commit 39df7cc

Please sign in to comment.
You can’t perform that action at this time.