Commit Graph
396 Commits
Author SHA1 Message Date
Jesse Glick f178f0cef4 [JENKINS-16341] INSANE testing shows that a RenderOnDemandClosure binding adds about 380k, with or wothout 08efdf5. 2013-01-15 17:32:53 -05:00
Kohsuke Kawaguchi b4a17d3b45 merged back the RC branch
Conflicts:
	changelog.html
2013-01-07 11:31:49 -08:00
Kohsuke Kawaguchi 4895eaafca [SECURITY-49] added a tool to re-key secrets
As an AdministrativeMonitor, it shows up in the manage Jenkins UI, and
allows the administrator to run a re-keying operation.
2013-01-05 09:26:10 -08:00
Jesse Glick 9bd0210e07 Merge branch 'master' into User.authorities 2013-01-02 13:45:08 -05:00
Jesse Glick 46c170c9b1 Merge branch 'master' of github.com:jenkinsci/jenkins 2012-12-10 12:35:47 -05:00
Jesse Glick 327b93168f Comment. 2012-12-10 11:13:06 -05:00
Kohsuke Kawaguchi 148ed0d480 Merge branch 'pull-628' 2012-12-09 06:07:12 -08:00
Kohsuke Kawaguchi fe8319f971 alert should be considered a test failure unless overridden by the test case 2012-12-09 05:48:31 -08:00
Jesse Glick a8ba1162a3 Introduced MockFolder for testing. 2012-12-05 15:38:09 -05:00
Kohsuke Kawaguchi eeb99ed843 increased the timeout to 180 2012-11-18 10:20:44 -08:00
Jesse Glick 9f22e33ebd Verifying that the heap size of a SuiteResult (from Surefire) is linear in the sizes of TEST-*.xml + *-output.txt even when there is lots of stdio. 2012-10-18 15:54:29 -04:00
Jesse Glick 2e9ec45161 Updated a bit. 2012-10-18 14:25:12 -04:00
Jesse Glick d9ba4814f9 Removing stale references to dev.java.net. 2012-10-18 10:29:14 -04:00
Jesse Glick 918cf8dfca [FIXED JENKINS-15426] Run animal-sniffer:check by default (-DskipTests suppresses). 2012-10-17 13:09:02 -04:00
Jesse Glick b6ea88a05f Testing getAuthorities. 2012-10-16 10:22:13 -04:00
Jesse Glick 4557a436bf 5dd905f suffered from a ClassLoader issue visible only in maven-junit-plugin (not Surefire). 2012-09-05 19:18:43 -04:00
Jesse Glick 5dd905f2a2 Make @TestExtension work with JenkinsRule. 2012-09-05 18:15:16 -04:00
Jørgen P. Tjernø 7fead6ff7f DRY Failure/UnstableBuilder. 2012-09-01 09:26:21 -07:00
Kohsuke Kawaguchi c3f002cede merged back the RC branch 2012-08-29 10:03:33 -07:00
Kohsuke Kawaguchi 26276d1387 added a backward compatibility with MethodRule.
Without this, I saw:

FAILURE: initializationError(hudson.model.CauseTest)
[INFO] java.lang.Exception: Field j must implement MethodRule
[INFO] 	at org.junit.runners.BlockJUnit4ClassRunner.validateRuleField(BlockJUnit4ClassRunner.java:188)
[INFO] 	at org.junit.runners.BlockJUnit4ClassRunner.validateFields(BlockJUnit4ClassRunner.java:183)
[INFO] 	at org.junit.runners.BlockJUnit4ClassRunner.collectInitializationErrors(BlockJUnit4ClassRunner.java:123)
[INFO] 	at org.junit.runners.ParentRunner.validate(ParentRunner.java:269)
[INFO] 	at org.junit.runners.ParentRunner.<init>(ParentRunner.java:66)
[INFO] 	at org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:58)
[INFO] 	at org.junit.internal.builders.JUnit4Builder.runnerForClass(JUnit4Builder.java:13)
[INFO] 	at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
[INFO] 	at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
[INFO] 	at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
[INFO] 	at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)
[INFO] 	at junit.framework.JUnit4TestAdapter.<init>(JUnit4TestAdapter.java:31)
[INFO] 	at junit.framework.JUnit4TestAdapter.<init>(JUnit4TestAdapter.java:24)
[INFO] 	at com.sun.maven.junit.LocalTestCaseRunner.buildMethodTestCase(LocalTestCaseRunner.java:121)
[INFO] 	at com.sun.maven.junit.LocalTestCaseRunner.buildTestCase(LocalTestCaseRunner.java:83)
[INFO] 	at com.sun.maven.junit.LocalTestCaseRunner.runTestCase(LocalTestCaseRunner.java:62)
[INFO] 	at com.sun.maven.junit.LocalTestCaseRunner.runTestCase(LocalTestCaseRunner.java:58)
[INFO] 	at sun.reflect.GeneratedMethodAccessor334.invoke(Unknown Source)
[INFO] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO] 	at java.lang.reflect.Method.invoke(Method.java:597)
[INFO] 	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
[INFO] 	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
[INFO] 	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
[INFO] 	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
[INFO] 	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
[INFO] 	at hudson.remoting.Request$2.run(Request.java:270)
[INFO] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
[INFO] 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
[INFO] 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
[INFO] 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[INFO] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[INFO] 	at java.lang.Thread.run(Thread.java:662)
2012-08-29 08:51:07 -07:00
Jesse Glick 696f8b8687 More reasonable test names. 2012-08-23 16:19:23 -04:00
Stephen Connolly b1f0c9dddc This class is useless if these methods are protected
* The whole point of the rule is to allow access to the helper methods, so they need to be public

* also synced up with HudsonTestCase
2012-08-13 13:07:13 +01:00
Jesse Glick 77a5addcd1 Unused import. 2012-07-24 13:56:43 -04:00
Jesse Glick 8e14051c18 @since 2012-07-10 00:39:50 -03:00
Christoph Kutzinski a2f2ae9b2b I guess it was just an oversight from Kohsuke to put these tests under src/main as Maven won't run them if not located under src/test 2012-06-24 14:08:56 +02:00
Christoph Kutzinski 4b828e4e63 Disambiguate configRoundtrip call for the sake of the Eclipse compiler 2012-06-24 13:58:01 +02:00
Kohsuke Kawaguchi ffff8fb826 added a mechanism to run test without a Jenkins instance 2012-06-06 16:31:23 -07:00
Kohsuke Kawaguchi ddd6867125 Completed the new extension point.
Adding a test and fixed a broken databinding (because of SCM vs Scm)
2012-06-05 15:23:09 -07:00
Christoph Kutzinski 9aa9366379 I was getting IndexOutOfBoundExceptions on callStack.get() which means that there must be concurrent access (maybe via JS worker threads) => synchronize access to callstack 2012-06-02 23:14:12 +02:00
Kohsuke Kawaguchi 013cfc2764 run all tests with some time out to avoid infinite hang 2012-05-30 15:36:46 -07:00
Kohsuke Kawaguchi 6d3a1f5ff5 Jenkins! 2012-05-30 15:17:13 -07:00
Kohsuke Kawaguchi 52b9e14aad Merge branch 'rc' 2012-05-30 14:23:41 -07:00
Kohsuke Kawaguchi 0ffe9d591f follow-up to 642a57c7ab
There's no guarantee that the tearDown method completes, so make sure we have clean environment by doing this in the setUp.
2012-05-30 14:23:12 -07:00
Kohsuke Kawaguchi 242e682e62 improved error diagnostics 2012-05-29 11:37:09 -07:00
Kohsuke Kawaguchi e69aa12151 no 'main' directory any more 2012-05-29 11:17:16 -07:00
Kohsuke Kawaguchi 8886bea1fb fixed a concurrency bug in the impersonation code 2012-04-12 14:41:17 -07:00
Kohsuke Kawaguchi fff931ea28 formatting this as TODO 2012-04-01 07:58:27 -07:00
slavino 7a23f6ddeb Update test/src/main/java/org/jvnet/hudson/test/recipes/WithPlugin.java 2012-04-01 07:58:27 -07:00
Kohsuke Kawaguchi 9353d96318 the initialization code went to the wrong place 2012-03-27 16:57:09 -07:00
Kohsuke Kawaguchi c5c5ff41c6 exposing where the war file is exploded 2012-03-27 10:30:24 -07:00
Alex Earl 7ae303f881 [FIXED JENKINS-12647]
- Added check if running on windows to copy the web dir of the
  WebAppContext
2012-03-26 12:25:24 -07:00
Kohsuke Kawaguchi 479a8ee97f more test fixes 2012-02-13 13:48:04 -08:00
Kohsuke Kawaguchi b257b6f149 fix NPE 2012-02-13 13:38:18 -08:00
Kohsuke Kawaguchi a71d037b84 Revisited the way Guice creates an injector during unit test
The motivation of this is to enable test code to inject components from Jenkins, which means we need a single Injector that can see all of those, including @TestExtension and regular @Extension. Then I realized that the current implementation is broken, as it creates two independent Injectors. This has other undesirable side effects like @TestExtension components not being able to inject @Extensions, etc.

I briefly experimented with hierarchical Injectors (where we first create Injector that loads @Extension then create another that loads @TestExtension as a child), but this was hard to get right as we have no control over which ExtensionFinder gets instantiated first --- we'd be at the mercy of SezPoz.

So the eventual approach is to allow a single GuiceFinder to recognize multiple annotations. This also works well with our using child injector for installing plugins without restart
2012-02-09 12:18:05 -08:00
Kohsuke Kawaguchi b5973a4a1d Merge branch 'master' of github.com:jenkinsci/jenkins 2012-01-04 12:18:51 -08:00
Albert So 484d952029 [JENKINS-11762] Changes to add a configurable display name to jobs 2012-01-03 15:33:42 -08:00
imod 386618dca4 support new JenkinsPlugin type (jpi) 2012-01-03 11:47:37 -08:00
Kohsuke Kawaguchi 6e02aa9144 doc improvements 2012-01-03 11:45:40 -08:00
kiy0taka 6ffa28d1f7 JUnit4 supports recipes. 2012-01-03 11:41:01 -08:00
Kohsuke Kawaguchi d5710650d7 set the root URL 2011-12-23 19:59:09 -08:00