Commit Graph
449 Commits
Author SHA1 Message Date
Kohsuke Kawaguchi 8c4288ca59 Merge remote-tracking branch 'origin/master' into executor-ondemand 2013-10-07 20:38:34 -07:00
Jesse Glick 571de9c148 JUnit 4; introduced GroovyJenkinsRule. 2013-10-07 11:43:39 -04:00
Jesse Glick 071139f8e5 Merge branch 'master' of github.com:jenkinsci/jenkins 2013-10-04 14:59:01 -04:00
Jesse Glick f1205fa4d6 Copy basic Surefire configuration, esp. forkCount=2, to the plugin POM.
Shaves >11min off the test time for maven-plugin on my machine!
2013-10-04 14:37:27 -04:00
Andrew Kiellor ff71ab755c Migrated some usages of GNUCLibrary to the jnr PosixAPI, fixed 'mvn -Plight-test install' on ubuntu with OpenJDK. 2013-10-04 13:42:42 -04:00
Jesse Glick ea85489a0a Fixing JenkinsRule as HudsonTestCase was for optional dependencies in e11c01c.
(Implies reverting c4e3add as well, since we need resolvePluginFile to return null.)
2013-10-01 17:09:15 -04:00
christ66 562204628e Add @DataBoundConstructor to SleepBuilder along with test unit. 2013-09-17 17:26:12 -07:00
Oliver Gondža 37d1b8d7a4 Merge pull request #855 from olivergondza/node-permissions 2013-09-16 11:00:22 +02:00
Kohsuke Kawaguchi 4d6d2432ad added a convenience class 2013-09-15 08:48:29 -07:00
Oliver Gondža 83d5ac10a5 [JENKINS-18485] Enable Computer.EXTENDED_READ permission using "hudson.security.ExtendedReadPermission". 2013-09-12 17:05:06 +02:00
Kohsuke Kawaguchi 7232798611 [FIXED JENKINS-19124]
Added another attribute 'checkDependsOn' on <input> elements (akin to
'fillDependsOn', etc) to list up the other dependency controls, and
insert appropriate onchange events.

'checkUrl' is now just the stem portion of the URL to invoke, and
the client script builds up the query parameters.
2013-08-08 16:24:09 -07:00
Jesse Glick d1d524863c [FIXED JENKINS-18895] MavenModuleSetBuild.getResult is expensive. 2013-07-29 16:06:18 -04:00
Jesse Glick 2152cf478e [FIXED JENKINS-18918] From plugins we must use target/ not target/classes/ to unpack Maven.
Also cleaning up variable names to be less misleading.

Note that new File("target") is really a bad idea since we cannot predict the CWD in effect when Maven is run.
(From the standard bin/mvn launcher, it seems that it will always be *some* Maven project at least.
This may not be true for Maven run embedded from various tools.)
But leaving that as is for now, since it is not clear how else we would find the project location.
(new File(env.description().getTestClass().getProtectionDomain().getCodeSource().getLocation().toURI()).getParentFile() might work but it is pretty hacky.)
2013-07-24 18:16:18 -04:00
Jesse Glick 68f1fa281f Comment about probable bug. 2013-07-24 18:09:10 -04:00
Jesse Glick 74d57de91b Misleading comment. 2013-07-24 15:11:56 -04:00
Olivier Lamy 941e83fae1 [JENKINS-15935] Can't build using maven 3.1.0 latest release candidate
Merge branch 'maven-3.1.0' for maven 3.1.0 support in Maven Integration Plugin
2013-07-24 10:16:20 +10:00
Olivier Lamy 0a53e45d7f prepare test suite for mvn 3.1.x 2013-07-20 13:30:13 +10:00
Olivier Lamy 8f4dc07f82 add groupId and maven build with setRunHeadless( true ): prevent too many coffee on osx! 2013-07-19 23:42:30 +10:00
Kohsuke Kawaguchi 92c2503b1a This work around no longer necessary,
... as the newer Groovy compiler produces the proper enclosing class
infromation.
2013-07-17 16:41:12 -07:00
Kohsuke Kawaguchi eec271d76d Groovy compiler doesn't seem to put the enclosing class information in the class file. 2013-07-17 16:41:12 -07:00
Kohsuke Kawaguchi 681769a9df Merge pull request #803 from olivergondza/node-cli
[FIXED JENKINS-18282] - Manipulate nodes via CLI
2013-07-16 21:56:01 -07:00
Christoph Kutzinski 852c2f1f69 suppress some pointless warnings 2013-07-14 11:38:58 +02:00
Christoph Kutzinski 46ecc01f9f typo 2013-07-13 13:31:29 +02:00
Oliver Gondža b74185f133 Merge branch 'master' into node-cli 2013-07-07 01:40:19 +02:00
Kohsuke Kawaguchi bcce421513 Fixed NPE with @WithoutJenkins 2013-06-20 14:21:13 -07:00
Kohsuke Kawaguchi 80cf49068f [FIXED JENKINS-18259]
Added a listener that gets called at the end of the test to provide opportunity for a cleanup.
This avoids the code duplication between HudsonTestCase vs JenkinsRule, too.
2013-06-19 09:28:06 -07:00
Kohsuke Kawaguchi 61c75ef7d4 minor doc improvement 2013-06-19 09:28:06 -07:00
Kohsuke Kawaguchi 7e006e08dd Touching up on the fix by ikedam 2013-06-18 17:11:23 -07:00
ikedam 2b9a083fbf [FIX JENKINS-4409] Release plugins and class loaders when JVM shuts down. 2013-06-18 17:07:08 -07:00
Jesse Glick 984c4cf44e Setting a nonempty contextPath turned up a couple problems in the test harness; goTo must be given a relative path.
https://ci.jenkins-ci.org/job/jenkins_main_trunk/2602/testReport/junit/hudson.model/JobTest/readPermission/
com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 404 Not Found for http://localhost:47898/jenkins//j_acegi_security_check
	at com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:549)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:333)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:357)
	at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:196)
	at org.jvnet.hudson.test.JenkinsRule$WebClient.login(JenkinsRule.java:1776)
	at org.jvnet.hudson.test.JenkinsRule$WebClient.login(JenkinsRule.java:1788)
	at hudson.model.JobTest.readPermission(JobTest.java:182)
2013-06-13 06:57:10 -04:00
Jesse Glick bff177dfa1 Deprecating HudsonTestCase. 2013-06-12 16:23:11 -04:00
Jesse Glick 1ed4e4b80f Set a nonempty context path to strengthen tests, just like we do for hpi:run & hudson-dev:run. 2013-06-12 16:07:39 -04:00
Oliver Gondža a6203831c0 Introduce CLICommandInvoker for testing purposes 2013-06-11 12:31:37 +02:00
Jesse Glick c4e3adde15 Better diagnosis when resolvePluginFile would be about to return null. 2013-06-10 17:07:48 -04:00
Jesse Glick b1c82f1e30 stephenc asks to use TODO rather than XXX 2013-06-10 11:53:13 -04:00
Jesse Glick aec064adc5 Make assertGC more useful by showing root references in case of failure. 2013-06-10 10:44:32 -04:00
Jesse Glick 04e2ccade6 [FIXED JENKINS-18074] Avoid clearing AbstractItem.displayName when the new parent ItemGroup is different. 2013-05-24 12:06:37 -04:00
Jesse Glick 03ca63c62c Lazy-loading utility test class designed for fix of JENKINS-15858. 2013-05-23 15:07:54 -04:00
Jesse Glick e3fee0aa36 Merge pull request #779 from ikedam/feature/JENKINS-17774-2
[FIXED JENKINS-17774] Plugin tests often fails in Windows (just reverting JENKINS-12647).
2013-05-22 11:39:32 -07:00
ikedam 68db55528a [FIXED JENKINS-17774] Make not to copy a webapp directory every time for each tests.
Copying every time causes overwriting files in the webapp directory, and often causes errors in Windows.
This reverts JENKINS-12647(commit 7ae303f881).
2013-05-15 20:58:48 +09:00
Jesse Glick a4bd40d3da Try harder to set Jenkins root URL, since some tests rely on it. 2013-05-10 12:38:03 -04:00
Jesse Glick 1205e9f6c4 [FIXED JENKINS-17575] Redirecting properly after deleting jobs in folders.
Expanded MockFolder to be a ViewGroup so that it is possible to test views inside folders,
and generally fixed it to service Stapler hierarchies properly so that WebClient-based tests can work.
2013-04-11 11:34:56 -04:00
Jesse Glick a4d4305124 Clean up TestPluginManager.INSTANCE.rootDir at the end of the test run.
Otherwise your disk will fill up with (large) /tmp/hudson*tmp/ dirs when running plugin tests.
(Would have been better to use e.g. TemporaryFolder, but that would require incompatible changes to the test harness.)
2013-03-28 19:44:20 -04:00
Jesse Glick a9e1de4f65 Behave properly when using Surefire excludedGroups (i.e. @Category).
To reproduce SUREFIRE-974 prior to this fix, pick an arbitrary group class to (not) exclude:
mvn -f test/pom.xml -Dtest=CoreJellyTest -DexcludedGroups=hudson.ExtensionPoint test
2013-03-28 14:01:23 -04:00
Jesse Glick 7c20f84737 createTmpDir → TemporaryFolder 2013-03-18 12:03:40 -04:00
Jesse Glick 2ef5a7cd43 Comment only. 2013-03-15 10:39:40 -04:00
Jesse Glick 5d68a20700 Using new assertFails method wherever possible to simplify tests. 2013-02-22 16:35:27 -05:00
Jesse Glick 0de3e9b14e [SECURITY-47]
- My second patch, with whitelisted XPath values and forbidden JSONP.
- Disabling JSONP altogether for REST API (unless explicitly allowed).
- Forbid primitive XPath result sets by default.
- Refuse to serve _crumb=123456 as this could (very hypothetically) be exploited.
(cherry picked from commit f4af9b1ab4)

Conflicts:

	core/src/main/java/hudson/model/Api.java
2013-02-13 15:31:22 -08:00
Jesse Glick 74e6409a06 [JENKINS-15156] Class loading errors can result from OOME if you are not careful. 2013-02-06 20:56:20 -05:00
Johno Crawford fe95fc53f8 [JENKINS-15156] Refactored fix. 2013-02-07 00:56:47 +01:00