Class SharedCredentialsControl
- java.lang.Object
-
- com.atlassian.bamboo.testutils.backdoor.BackdoorControl<SharedCredentialsControl>
-
- com.atlassian.bamboo.testutils.backdoor.SharedCredentialsControl
-
public class SharedCredentialsControl extends BackdoorControl<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, rootPath
-
-
Constructor Summary
Constructors Constructor Description SharedCredentialsControl(@NotNull BambooEnvironmentData environmentData)
-
Method Summary
-
Methods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
client, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post, resourceRoot
-
-
-
-
Constructor Detail
-
SharedCredentialsControl
public SharedCredentialsControl(@NotNull @NotNull BambooEnvironmentData environmentData)
-
-
Method Detail
-
tearDown
public void tearDown()
Description copied from class:BackdoorControlCleanup resources- Overrides:
tearDownin classBackdoorControl<SharedCredentialsControl>
-
getAllSshSharedCredentials
public List<RestSharedCredential> getAllSshSharedCredentials()
-
getAllPasswordSharedCredentials
public List<RestSharedCredential> getAllPasswordSharedCredentials()
-
createSshSharedCredential
public RestSharedCredential createSshSharedCredential(String privateKey, String passphrase)
-
createSshSharedCredential
public RestSharedCredential createSshSharedCredential(String privateKey, String passphrase, String projectKey)
-
createSshSharedCredential
public RestSharedCredential createSshSharedCredential(RestSharedCredential sharedCredential)
-
createPasswordSharedCredential
public RestSharedCredential createPasswordSharedCredential(String username, String password)
-
createPasswordSharedCredential
public RestSharedCredential createPasswordSharedCredential(String username, String password, String projectKey)
-
createPasswordSharedCredential
public RestSharedCredential createPasswordSharedCredential(RestSharedCredential sharedCredential)
-
deleteSshSharedCredential
public void deleteSshSharedCredential(long id)
-
deletePasswordSharedCredential
public void deletePasswordSharedCredential(long id)
-
createResource
protected com.sun.jersey.api.client.WebResource 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 withWebResource.type(javax.ws.rs.core.MediaType))
BackdoorControl.createResourceForPath(java.lang.String)- Overrides:
createResourcein classBackdoorControl<SharedCredentialsControl>- Returns:
- a WebResource for the TestKit REST API root
- See Also:
BackdoorControl.createResource(),BackdoorControl.getRestModulePath()
-
-