Class DarkFeatureControl
java.lang.Object
com.atlassian.bamboo.testutils.backdoor.BackdoorControl<DarkFeatureControl>
com.atlassian.bamboo.testutils.backdoor.DarkFeatureControl
Provides a way to control dark features using the Bamboo backdoor, for testing purposes.
-
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
Methods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
anonymousResourceRoot, client, createResource, createResourceForPath, createResourceForPath, get, getEnvironmentData, getRootPath, percentEncode, ping, post, resourceRoot, tearDown
-
Field Details
-
DARK_FEATURES_RESOURCE_BASE_URL
- See Also:
-
-
Constructor Details
-
DarkFeatureControl
-
-
Method Details
-
getStatus
Gets the status of a dark feature, enabled or disabled.- Parameters:
featureKey
- key of the dark feature- Throws:
Exception
-
getRestModulePath
Description copied from class:BackdoorControl
Returns the REST path used in this plugin'satlassian-plugin.xml
(e.g.<rest path="...">
). The default value is ""backdoor"".- Overrides:
getRestModulePath
in classBackdoorControl<DarkFeatureControl>
- Returns:
- the REST path used in this plugin's
atlassian-plugin.xml
(e.g.<rest path="...">
).
-
getAll
Gets all the enabled dark features.- Throws:
Exception
-
enable
Enables a dark feature.- Parameters:
featureKey
- key of the dark feature- Throws:
Exception
-
disable
Disables a dark feature.- Parameters:
featureKey
- key of the dark feature- Throws:
Exception
-