Package hudson.slaves
Class NodeProvisionerRule
- java.lang.Object
-
- org.jvnet.hudson.test.JenkinsRule
-
- hudson.slaves.NodeProvisionerRule
-
- All Implemented Interfaces:
hudson.ExtensionPoint
,hudson.model.Action
,hudson.model.ModelObject
,hudson.model.RootAction
,org.junit.rules.MethodRule
,org.junit.rules.TestRule
@Deprecated public class NodeProvisionerRule extends JenkinsRule
Deprecated.useRealJenkinsRule
OverridesLoadStatistics.CLOCK
,NodeProvisioner.NodeProvisionerInvoker.INITIALDELAY
, and/orNodeProvisioner.NodeProvisionerInvoker.RECURRENCEPERIOD
during the test.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jvnet.hudson.test.JenkinsRule
JenkinsRule.BreakException, JenkinsRule.DummySecurityRealm, JenkinsRule.JSONWebResponse, JenkinsRule.TestBuildWrapper, JenkinsRule.WebClient
-
-
Field Summary
-
Fields inherited from class org.jvnet.hudson.test.JenkinsRule
computerConnectorTester, contextPath, env, homeLoader, hudson, jenkins, jsDebugger, localPort, MIME_TYPES, NO_PROPERTIES, recipes, server, SLAVE_DEBUG_PORT, tearDowns, testDescription, timeout, useLocalPluginManager
-
-
Constructor Summary
Constructors Constructor Description NodeProvisionerRule(int clock, int initialDelay, int recurrencePeriod)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
after()
Deprecated.Override to tear down your specific external resource.void
before()
Deprecated.Override to set up your specific external resource.-
Methods inherited from class org.jvnet.hudson.test.JenkinsRule
_configureJenkinsForTest, _configureUpdateCenter, _configureUserRealm, _createWebServer, _createWebServer, _stopJenkins, apply, apply, assertAllImageLoadSuccessfully, assertBuildStatus, assertBuildStatus, assertBuildStatusSuccess, assertBuildStatusSuccess, assertEqualBeans, assertEqualDataBoundBeans, assertEqualDataBoundBeans, assertGoodStatus, assertHelpExists, assertLogContains, assertLogNotContains, assertStringContains, assertStringContains, assertXPath, assertXPath, assertXPathResultsContainText, assertXPathValue, assertXPathValueContains, buildAndAssertStatus, buildAndAssertSuccess, buildAndAssertSuccess, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configRoundtrip, configureUpdateCenter, configureUserRealm, createApiToken, createComputerLauncher, createDummySecurityRealm, createFolder, createFreeStyleProject, createFreeStyleProject, createLocalLauncher, createOnlineSlave, createOnlineSlave, createOnlineSlave, createPretendSlave, createProject, createProject, createSlave, createSlave, createSlave, createSlave, createSlave, createSlave, createSlave, createTaskListener, createTmpDir, createUniqueProjectName, createWebClient, createWebServer, createWebServer, disconnectSlave, executeOnServer, findDataBoundConstructor, findPreviousInputElement, get, getButtonByCaption, getDisplayName, getIconFileName, getInstance, getJSON, getLog, getPluginManager, getTestDescription, getURL, getUrlName, getWebAppRoot, interactiveBreak, isGoodHttpStatus, isSomethingHappening, last, newHudson, pause, postJSON, recipe, recipeLoadCurrentPlugin, search, setPluginManager, setQuietPeriod, showAgentLogs, showAgentLogs, submit, submit, waitForCompletion, waitForMessage, waitOnline, waitUntilNoActivity, waitUntilNoActivityUpTo, with, with, withExistingHome, withNewHome, withPresetData, writeReplace
-
-
-
-
Method Detail
-
before
public void before() throws Throwable
Deprecated.Description copied from class:JenkinsRule
Override to set up your specific external resource.- Overrides:
before
in classJenkinsRule
- Throws:
Throwable
- if setup fails (which will disableafter
-
after
public void after() throws Exception
Deprecated.Description copied from class:JenkinsRule
Override to tear down your specific external resource.- Overrides:
after
in classJenkinsRule
- Throws:
Exception
-
-