public class FeatureKeyClient extends com.atlassian.jira.testkit.client.RestApiClient<FeatureKeyClient>
Constructor and Description |
---|
FeatureKeyClient(com.atlassian.jira.testkit.client.JIRAEnvironmentData environmentData)
Constructs a new FeatureKeyClient for a JIRA instance.
|
Modifier and Type | Method and Description |
---|---|
protected com.sun.jersey.api.client.WebResource |
featureFlags()
Returns a WebResource for site dark features.
|
protected com.sun.jersey.api.client.WebResource |
featureFlagWithKey(String featureKey)
Returns a WebResource for site dark features for the given key.
|
Map<?,?> |
get()
GETs all the defined feature flags
|
com.atlassian.jira.testkit.client.restclient.DarkFeature |
get(String featureKey)
GETs the dark feature with the given key.
|
com.atlassian.jira.testkit.client.restclient.Response |
getResponse()
GETs all the defined feature flags returning a Response object.
|
com.atlassian.jira.testkit.client.restclient.Response |
getResponse(String featureKey)
GETs the featureKey, returning a Response object.
|
void |
put(String featureKey,
boolean enabled)
PUTs the feature key and enablement
|
com.atlassian.jira.testkit.client.restclient.Response |
putResponse(String featureKey,
boolean enabled)
PUTs the featureKey and enablement, returning a Response object.
|
anonymous, cleanUp, client, createResource, createResourceGadget, createResourceInternal, errorResponse, expanded, getEnvironmentData, loginAs, loginAs, percentEncode, registerResponse, resourceRoot, setOf, toResponse, toResponse, toResponse
public FeatureKeyClient(com.atlassian.jira.testkit.client.JIRAEnvironmentData environmentData)
environmentData
- The JIRA environment datapublic void put(String featureKey, boolean enabled) throws com.sun.jersey.api.client.UniformInterfaceException
featureKey
- feature keyenabled
- whether to enable or disable the dark featurecom.sun.jersey.api.client.UniformInterfaceException
- if there's a problem enabling the dark featurepublic com.atlassian.jira.testkit.client.restclient.Response putResponse(String featureKey, boolean enabled)
featureKey
- feature keyenabled
- whether to enable or disable the dark featurepublic Map<?,?> get() throws com.sun.jersey.api.client.UniformInterfaceException
com.sun.jersey.api.client.UniformInterfaceException
- if there's a problem enabling the dark featurepublic com.atlassian.jira.testkit.client.restclient.Response getResponse()
public com.atlassian.jira.testkit.client.restclient.DarkFeature get(String featureKey) throws com.sun.jersey.api.client.UniformInterfaceException
featureKey
- the feature keycom.sun.jersey.api.client.UniformInterfaceException
- if there's a problem enabling the dark featurepublic com.atlassian.jira.testkit.client.restclient.Response getResponse(String featureKey)
featureKey
- feature keyprotected com.sun.jersey.api.client.WebResource featureFlags()
protected com.sun.jersey.api.client.WebResource featureFlagWithKey(String featureKey)
featureKey
- feature keyCopyright © 2002-2022 Atlassian. All Rights Reserved.