com.atlassian.bamboo.testutils.backdoor
Class DarkFeatureControl
java.lang.Object
com.atlassian.bamboo.testutils.backdoor.BackdoorControl<DarkFeatureControl>
com.atlassian.bamboo.testutils.backdoor.DarkFeatureControl
public class DarkFeatureControl
- extends BackdoorControl<DarkFeatureControl>
Provides a way to control dark features using the Bamboo backdoor, for testing purposes.
Methods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl |
client, createResource, createResource, createResourceForPath, createResourceForPath, get, getEnvironmentData, percentEncode, ping, resourceRoot, resourceRoot, tearDown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DARK_FEATURES_RESOURCE_BASE_URL
public static final String DARK_FEATURES_RESOURCE_BASE_URL
- See Also:
- Constant Field Values
DarkFeatureControl
public DarkFeatureControl(@NotNull
BambooEnvironmentData environmentData)
getStatus
public boolean getStatus(@NotNull
String featureKey)
throws Exception
- Gets the status of a dark feature, enabled or disabled.
- Parameters:
featureKey
- key of the dark feature
- Throws:
Exception
getRestModulePath
protected String getRestModulePath()
- Description copied from class:
BackdoorControl
- Returns the REST path used in this plugin's
atlassian-plugin.xml
(e.g. <rest path="...">
).
The default value is ""backdoor"".
- Overrides:
getRestModulePath
in class BackdoorControl<DarkFeatureControl>
- Returns:
- the REST path used in this plugin's
atlassian-plugin.xml
(e.g. <rest path="...">
).
getAll
public List<String> getAll()
throws Exception
- Gets all the enabled dark features.
- Throws:
Exception
enable
public void enable(@NotNull
String featureKey)
throws Exception
- Enables a dark feature.
- Parameters:
featureKey
- key of the dark feature
- Throws:
Exception
disable
public void disable(@NotNull
String featureKey)
throws Exception
- Disables a dark feature.
- Parameters:
featureKey
- key of the dark feature
- Throws:
Exception
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.