Commit Graph
1725 Commits
Author SHA1 Message Date
Kohsuke Kawaguchi c1e89aa74e report URL in case of a failure 2015-01-23 10:46:17 -08:00
Jesse Glick c8806c9906 Merge pull request #1532 from jglick/death-to-groovy-long-live-the-new-test
Convert UpdateCenter2Test to Java
2015-01-16 10:23:25 -05:00
Oliver Gondža 555e2d593f [JENKINS-26411] Handle ChannelClosedException as well 2015-01-16 11:17:50 +01:00
Oliver Gondža 788d6ff6e9 [FIXED JENKINS-26411] Improve error reporting when channel closed 2015-01-15 19:21:26 +01:00
Oliver Gondža f61f2cd3ca [JENKINS-26411] Do not interrupt build abruptly when exception is thrown from build step 2015-01-15 19:20:50 +01:00
Jesse Glick b25157adb9 Convert UpdateCenter2Test to Java. 2015-01-15 07:56:14 -05:00
Jesse Glick 9e333bc1e6 [JENKINS-10944] [JENKINS-24519] Noting merge of #1513. 2015-01-09 07:57:57 -05:00
René Scheibe 13ab787d5f don't extend a test class from org.junit.Assert to use its static methods 2015-01-09 12:25:37 +01:00
Jesse Glick 75eeccf866 [FIXED JENKINS-26331] Noting merge of #1519. 2015-01-08 21:08:15 -05:00
Jesse Glick 28984e5920 Merge pull request #1521 from darxriggs/consistent-use-of-Assert
statically import methods used from org.junit.Assert
2015-01-08 20:11:09 -05:00
christ66 3661ed5093 Remove unnecessary check in test unit. Fix misleading test unit comment. 2015-01-08 11:27:29 -08:00
René Scheibe 2d3dbad35a statically import methods used from org.junit.Assert
* that's a common practice so do it consistently in all tests
2015-01-08 20:25:18 +01:00
Daniel Spilker 1fae8c072a [JENKINS-26331] use buildDirectory system property to configure target directory 2015-01-08 15:39:58 +01:00
christ66 c3eb1cac79 If a project action fails to load we should log the project action and continue to load the project. 2015-01-07 15:17:58 -08:00
christ66 cd0752432e Merge remote-tracking branch 'upstream/master' into JENKINS-22811
Conflicts:
	test/src/test/java/hudson/model/ItemGroupMixInTest.java
2015-01-07 13:12:18 -08:00
christ66 fa40c102f5 Mark test extension with the correct annotation 2015-01-07 10:16:08 -08:00
christ66 8f24c4aa5c Obtain folder from jenkins instead of using local variable. 2015-01-07 10:14:26 -08:00
René Scheibe bd1d6251e0 replace all deprecated @Bug annotations with @Issue 2015-01-07 17:12:21 +01:00
christ66 b5213b3815 Fixed compilation error 2015-01-06 19:46:01 -08:00
christ66 3e29bd7eff [JENKINS-22811] Folder loading can break when an item inside the folder fails to load or throws an Exception. 2015-01-06 19:41:51 -08:00
René Scheibe 3a618a0633 migrate tests from using HudsonTestCase to JenkinsRule
* these are simple tests without Jelly files or actions implemented in the test class
2015-01-06 16:30:04 +01:00
Jesse Glick 1a80973ab8 Merge branch 'master' into FlyweightTask-JENKINS-10944 2015-01-06 07:03:50 -05:00
Jesse Glick 86ed77711b Correcting 9595175f10 (JUnit 4 merge fixup for #1472). 2015-01-06 07:03:08 -05:00
Oliver Gondža 9595175f10 Use JUnit4 in merged patch too 2015-01-06 12:28:01 +01:00
Oliver Gondža 5bfaca449c Merge pull request #1472 from jbaranov/JENKINS-25514
[JENKINS-25514] Fixed lock case in FutureImpl
2015-01-06 11:52:32 +01:00
Jesse Glick 4470b9ea04 JUnit 4. 2015-01-05 18:01:32 -05:00
Jesse Glick 3e344a94a9 [FIXED JENKINS-10944] [FIXED JENKINS-24519] If makeBuildable fails on a FlyweightTask, keep it in queue. 2015-01-05 17:02:52 -05:00
Jesse Glick 449fd234a6 Indentation fix. 2015-01-05 15:52:23 -05:00
Jesse Glick 778e9e194e JUnit 4. 2015-01-05 15:45:16 -05:00
Jesse Glick 7d248e3572 Merge pull request #1507 from darxriggs/no-more-GroovyHudsonTestCase
not using the deprecated GroovyHudsonTestCase anymore
2015-01-02 12:36:15 -05:00
René Scheibe 8aebada975 not using the deprecated GroovyHudsonTestCase anymore
* just the two updated classes were affected
2015-01-02 01:52:41 +01:00
René Scheibe 73efe6825a convert tests from JUnit3 to JUnit4
* life goes on :-)
* touching all tests that directly inherit from junit.framework.TestCase
2014-12-27 22:41:09 +01:00
René Scheibe d2f49da5b6 cleanup - make pom.xml files more consistent 2014-12-25 18:20:07 +01:00
Kohsuke Kawaguchi 296849edf9 Merge pull request 1379 2014-12-22 14:33:48 -08:00
Jesse Glick b415b467fb Replacing Util.createTempDir with the standard TemporaryFolder rule in some tests. 2014-12-17 15:04:45 -05:00
Jesse Glick 7c988de3cd Merge branch 'master' into build-number-is-id-JENKINS-24380 2014-12-12 13:27:31 -05:00
Jesse Glick 81701326a0 Merge branch 'unique-Permission' (#1444). 2014-12-10 09:27:54 -05:00
Jesse Glick ce94579c50 [FIXED JENKINS-25788] RunMap.remove was always returning false, even when the Run was in fact removed. 2014-12-09 15:24:06 -05:00
Jesse Glick 96ecabedb0 JUnit 4. 2014-12-09 15:12:19 -05:00
Jesse Glick 30f00b111a For RunMapTest to be Groovy was pointless and aggravating. 2014-12-09 15:07:15 -05:00
Eugene Baranov 3edae667b3 [JENKINS-25514] Fixed lock case in FutureImpl
when some other process is waiting for build in queue.
2014-12-09 21:51:39 +02:00
Dominique 60c2071a30 [JENKINS-23966] Master labels disappear when system configuration is updated 2014-12-04 20:26:49 -05:00
Kanstantsin Shautsou 9aaeb0a3f2 Explode WAR fails when ./target does not yet exist (e.g., run from IDEA).
Create parent directory before trying to lock dir using files.

java.lang.Exception: Failed to initialize exploded war
at org.jvnet.hudson.test.WarExploder.getExplodedDir(WarExploder.java:49)
at org.jvnet.hudson.test.JenkinsRule.createWebServer(JenkinsRule.java:582)
at org.jvnet.hudson.test.JenkinsRule.newHudson(JenkinsRule.java:538)
at org.jvnet.hudson.test.JenkinsRule.before(JenkinsRule.java:332)
at org.jvnet.hudson.test.JenkinsRule$2.evaluate(JenkinsRule.java:482)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
Caused by: java.io.FileNotFoundException: /Users/integer/Documents/idea/jenkins-ws-git-plugin/./target/jenkins-for-test.exploding (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:212)
at java.io.FileOutputStream.(FileOutputStream.java:104)
at org.jvnet.hudson.test.WarExploder.explode(WarExploder.java:99)
at org.jvnet.hudson.test.WarExploder.(WarExploder.java:58)
... 24 more
2014-11-16 02:55:42 +03:00
Jesse Glick bc430e7ec7 Merge branch 'master' into unique-Permission 2014-11-10 15:36:47 -05:00
Kohsuke Kawaguchi ada8432fc5 [JENKINS-25144] Merge pull request #1427 2014-11-07 09:43:25 -08:00
Christof Schoell 0176b6d902 [JENKINS-25144]
return authentication object instead of null if authentication is not
required - otherwise valid login fails with basic authentication
2014-11-07 09:40:26 -08:00
Jesse Glick 8878c7fa5b Prevent duplicate Permission or PermissionGroup objects from being created. 2014-10-28 16:18:20 -04:00
Jesse Glick d0cdcb5798 JUnit 4. 2014-10-28 15:42:17 -04:00
Jesse Glick f0658e233d Merge branch 'security-rc' into SECURITY-144-rc
Conflicts:
	core/src/main/java/hudson/FilePath.java
2014-10-26 13:55:39 -07:00
Jesse Glick 97b2f931ae Merge branch 'SECURITY-144' into SECURITY-144-rc 2014-10-20 08:57:11 -04:00