Package com.atlassian.jira.webtests.util
Class TenantOverridingEnvironmentData
java.lang.Object
com.atlassian.jira.webtests.util.TenantOverridingEnvironmentData
- All Implemented Interfaces:
com.atlassian.jira.testkit.client.JIRAEnvironmentData
,JIRAEnvironmentData
- Since:
- v4.3
-
Constructor Summary
ConstructorsConstructorDescriptionTenantOverridingEnvironmentData
(String tenant, JIRAEnvironmentData environmentData) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getProperty
(String key) Returns a property from the test environment.This is the expected release information shown under "Installation Type" on the sysinfo page.Class<? extends junit.framework.TestCase>
Run a specifically named test instead of the normal suiteReturns the tenant to run requests on.Returns a directory that can be used by the func tests whenever file operations need to be done.boolean
boolean
isBlame()
Experimental Judge Judy build.boolean
boolean
boolean
A special suite of tests that connect to an LDAP server on LabManager (TPM).boolean
Whether a dummy tenant should be created after the tenant is created.
-
Constructor Details
-
TenantOverridingEnvironmentData
-
-
Method Details
-
getTenant
Description copied from interface:JIRAEnvironmentData
Returns the tenant to run requests on. This triggers X-Atlassian-Tenant to be set for each request to this value. If null, no header is set.- Specified by:
getTenant
in interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
- Specified by:
getTenant
in interfaceJIRAEnvironmentData
- Returns:
- The tenant
-
shouldCreateDummyTenant
public boolean shouldCreateDummyTenant()Description copied from interface:JIRAEnvironmentData
Whether a dummy tenant should be created after the tenant is created. This is useful for picking up issues where tenant specific state is statically referenced, so the most recently created tenant is fine, but older tenants fail. The dummy tenant will be fine, but the tests will be run against the older tenant.- Specified by:
shouldCreateDummyTenant
in interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
- Specified by:
shouldCreateDummyTenant
in interfaceJIRAEnvironmentData
- Returns:
- true if a dummy tenant should be created after the tenant is created.
-
getBaseUrl
- Specified by:
getBaseUrl
in interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
- Specified by:
getBaseUrl
in interfaceJIRAEnvironmentData
-
getXMLDataLocation
- Specified by:
getXMLDataLocation
in interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
- Specified by:
getXMLDataLocation
in interfaceJIRAEnvironmentData
-
getWorkingDirectory
Description copied from interface:JIRAEnvironmentData
Returns a directory that can be used by the func tests whenever file operations need to be done.This directory is guaranteed to not be used by other func test instances simultaneously running on the same machine in Bamboo.
This should return a canonical file name (ie an absolute file name, without any '..' parts in it).
- Specified by:
getWorkingDirectory
in interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
- Specified by:
getWorkingDirectory
in interfaceJIRAEnvironmentData
- Returns:
- a directory that can be used by the func tests whenever file operations need to be done.
- See Also:
-
getJIRAHomeLocation
Deprecated.- Specified by:
getJIRAHomeLocation
in interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
- Specified by:
getJIRAHomeLocation
in interfaceJIRAEnvironmentData
- Returns:
- a directory that can be used by the func tests whenever file operations need to be done.
-
getReleaseInfo
Description copied from interface:JIRAEnvironmentData
This is the expected release information shown under "Installation Type" on the sysinfo page.- Specified by:
getReleaseInfo
in interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
- Specified by:
getReleaseInfo
in interfaceJIRAEnvironmentData
- Returns:
- the expected release information shown under "Installation Type" on the sysinfo page.
-
isBundledPluginsOnly
public boolean isBundledPluginsOnly()- Specified by:
isBundledPluginsOnly
in interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
- Specified by:
isBundledPluginsOnly
in interfaceJIRAEnvironmentData
-
isAllTests
public boolean isAllTests()- Specified by:
isAllTests
in interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
- Specified by:
isAllTests
in interfaceJIRAEnvironmentData
-
isSingleNamedTest
public boolean isSingleNamedTest()- Specified by:
isSingleNamedTest
in interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
- Specified by:
isSingleNamedTest
in interfaceJIRAEnvironmentData
-
getSingleTestClass
Description copied from interface:JIRAEnvironmentData
Run a specifically named test instead of the normal suite- Specified by:
getSingleTestClass
in interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
- Specified by:
getSingleTestClass
in interfaceJIRAEnvironmentData
-
isTpmLdapTests
public boolean isTpmLdapTests()Description copied from interface:JIRAEnvironmentData
A special suite of tests that connect to an LDAP server on LabManager (TPM).- Specified by:
isTpmLdapTests
in interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
- Specified by:
isTpmLdapTests
in interfaceJIRAEnvironmentData
- Returns:
- true if we are running the TPM LDAP tests only.
-
isBlame
public boolean isBlame()Description copied from interface:JIRAEnvironmentData
Experimental Judge Judy build.- Specified by:
isBlame
in interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
- Specified by:
isBlame
in interfaceJIRAEnvironmentData
- Returns:
- true if we are running the Judge Judy tests.
-
getProperty
Description copied from interface:JIRAEnvironmentData
Returns a property from the test environment. If the property is not available it returns null.- Specified by:
getProperty
in interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
- Specified by:
getProperty
in interfaceJIRAEnvironmentData
- Parameters:
key
- the property key- Returns:
- a property from the test environment, or null if not available.
-
getContext
- Specified by:
getContext
in interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
- Specified by:
getContext
in interfaceJIRAEnvironmentData
-