Class SharedCredentialsControl
java.lang.Object
com.atlassian.bamboo.testutils.backdoor.BackdoorControl<SharedCredentialsControl>
com.atlassian.bamboo.testutils.backdoor.SharedCredentialsControl
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter -
Field Summary
Fields inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, XSRF_NO_CHECK, XSRF_TOKEN_HEADER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePasswordSharedCredential(RestSharedCredential sharedCredential) createPasswordSharedCredential(String username, String password) createPasswordSharedCredential(String username, String password, String projectKey) protected jakarta.ws.rs.client.WebTargetCreates the resource that corresponds to the root of the TestKit REST API, using the values returned byBackdoorControl.getRestModulePath().createSshSharedCredential(RestSharedCredential sharedCredential) createSshSharedCredential(String privateKey, String passphrase) createSshSharedCredential(String privateKey, String passphrase, String projectKey) voiddeletePasswordSharedCredential(long id) voiddeleteSshSharedCredential(long id) voidtearDown()Cleanup resourcesMethods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
anonymousResourceRoot, client, createAnonymousResourceForPath, createAnonymousResourceForPath, createResourceForPath, createResourceForPath, get, getEnvironmentData, getRestModulePath, getRootPath, percentEncode, ping, post, resourceRoot, resourceRootWithForcedTokenAuth
-
Constructor Details
-
SharedCredentialsControl
-
-
Method Details
-
tearDown
public void tearDown()Description copied from class:BackdoorControlCleanup resources- Overrides:
tearDownin classBackdoorControl<SharedCredentialsControl>
-
createResource
protected jakarta.ws.rs.client.WebTarget createResource()Description copied from class:BackdoorControlCreates the resource that corresponds to the root of the TestKit REST API, using the values returned byBackdoorControl.getRestModulePath(). Note that the createdWebResourcehas the following properties:- it logs all GET/POST/etc requests made through it
- it sets the
Content-Type: application/jsonby default (override withWebTarget.request(MediaType...))
To create a WebResource for a different root, use
BackdoorControl.createResourceForPath(java.lang.String)- Overrides:
createResourcein classBackdoorControl<SharedCredentialsControl>- Returns:
- a WebResource for the TestKit REST API root
- See Also:
-