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
-
Method Summary
Modifier and TypeMethodDescriptioncreatePasswordSharedCredential
(RestSharedCredential sharedCredential) createPasswordSharedCredential
(String username, String password) createPasswordSharedCredential
(String username, String password, String projectKey) protected javax.ws.rs.client.WebTarget
Creates 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) void
deletePasswordSharedCredential
(long id) void
deleteSshSharedCredential
(long id) void
tearDown()
Cleanup resourcesMethods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
anonymousResourceRoot, client, createResourceForPath, createResourceForPath, get, getEnvironmentData, getRestModulePath, getRootPath, percentEncode, ping, post, resourceRoot
-
Constructor Details
-
SharedCredentialsControl
-
-
Method Details
-
tearDown
public void tearDown()Description copied from class:BackdoorControl
Cleanup resources- Overrides:
tearDown
in classBackdoorControl<SharedCredentialsControl>
-
createResource
protected javax.ws.rs.client.WebTarget createResource()Description copied from class:BackdoorControl
Creates the resource that corresponds to the root of the TestKit REST API, using the values returned byBackdoorControl.getRestModulePath()
. Note that the createdWebResource
has the following properties:- it logs all GET/POST/etc requests made through it
- it sets the
Content-Type: application/json
by default (override withWebTarget.request(MediaType...)
)
BackdoorControl.createResourceForPath(java.lang.String)
- Overrides:
createResource
in classBackdoorControl<SharedCredentialsControl>
- Returns:
- a WebResource for the TestKit REST API root
- See Also:
-