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.
  • Field Details

  • Constructor Details

    • DarkFeatureControl

      public DarkFeatureControl(@NotNull @NotNull BambooEnvironmentData environmentData)
  • Method Details

    • getStatus

      public boolean getStatus(@NotNull @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. &lt;rest path="..."&gt;). 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. &lt;rest path="..."&gt;).
    • getAll

      public List<String> getAll() throws Exception
      Gets all the enabled dark features.
      Throws:
      Exception
    • enable

      public void enable(@NotNull @NotNull String featureKey) throws Exception
      Enables a dark feature.
      Parameters:
      featureKey - key of the dark feature
      Throws:
      Exception
    • disable

      public void disable(@NotNull @NotNull String featureKey) throws Exception
      Disables a dark feature.
      Parameters:
      featureKey - key of the dark feature
      Throws:
      Exception