Package io.jenkins.plugins.casc.misc
Class JenkinsConfiguredRule
java.lang.Object
org.jvnet.hudson.test.JenkinsRule
io.jenkins.plugins.casc.misc.JenkinsConfiguredRule
- All Implemented Interfaces:
ExtensionPoint,Action,ModelObject,RootAction,org.junit.rules.MethodRule,org.junit.rules.TestRule
- Direct Known Subclasses:
JenkinsConfiguredWithCodeRule,JenkinsConfiguredWithReadmeRule
public class JenkinsConfiguredRule
extends org.jvnet.hudson.test.JenkinsRule
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jvnet.hudson.test.JenkinsRule
org.jvnet.hudson.test.JenkinsRule.BreakException, org.jvnet.hudson.test.JenkinsRule.DummySecurityRealm, org.jvnet.hudson.test.JenkinsRule.JSONWebResponse, org.jvnet.hudson.test.JenkinsRule.TestBuildWrapper, org.jvnet.hudson.test.JenkinsRule.WebClientNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class org.jvnet.hudson.test.JenkinsRule
computerConnectorTester, contextPath, env, homeLoader, hudson, jenkins, jsDebugger, localPort, NO_PROPERTIES, recipes, server, SLAVE_DEBUG_PORT, tearDowns, testDescription, timeout, useLocalPluginManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexportToString(boolean strict) Exports the Jenkins configuration to a string.Methods inherited from class org.jvnet.hudson.test.JenkinsRule
_configureJenkinsForTest, _configureUpdateCenter, _configureUserRealm, _createWebAppContext2, _createWebAppContext2, _stopJenkins, after, apply, apply, assertAllImageLoadSuccessfully, assertBuildStatus, assertBuildStatus, assertBuildStatusSuccess, assertBuildStatusSuccess, assertEqualBeans, assertEqualDataBoundBeans, assertEqualDataBoundBeans, assertGoodStatus, assertHelpExists, assertLogContains, assertLogNotContains, assertStringContains, assertStringContains, assertXPath, assertXPath, assertXPathResultsContainText, assertXPathValue, assertXPathValueContains, before, 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, createWebServer2, createWebServer2, 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, restart, search, setPluginManager, setQuietPeriod, showAgentLogs, showAgentLogs, submit, submit, waitForCompletion, waitForMessage, waitOnline, waitUntilNoActivity, waitUntilNoActivityUpTo, with, with, withExistingHome, withNewHome, withPresetData, writeReplace
-
Constructor Details
-
JenkinsConfiguredRule
public JenkinsConfiguredRule()
-
-
Method Details
-
exportToString
Exports the Jenkins configuration to a string.- Parameters:
strict- Fail if any export operation returns error- Returns:
- YAML as string
- Throws:
Exception- Export errorAssertionError- Failed to export the configuration- Since:
- 1.25
-