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.booleanbooleanisBlame()Experimental Judge Judy build.booleanbooleanbooleanA special suite of tests that connect to an LDAP server on LabManager (TPM).booleanWhether a dummy tenant should be created after the tenant is created.
-
Constructor Details
-
TenantOverridingEnvironmentData
-
-
Method Details
-
getTenant
Description copied from interface:JIRAEnvironmentDataReturns 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:
getTenantin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
getTenantin interfaceJIRAEnvironmentData- Returns:
- The tenant
-
shouldCreateDummyTenant
public boolean shouldCreateDummyTenant()Description copied from interface:JIRAEnvironmentDataWhether 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:
shouldCreateDummyTenantin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
shouldCreateDummyTenantin interfaceJIRAEnvironmentData- Returns:
- true if a dummy tenant should be created after the tenant is created.
-
getBaseUrl
- Specified by:
getBaseUrlin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
getBaseUrlin interfaceJIRAEnvironmentData
-
getXMLDataLocation
- Specified by:
getXMLDataLocationin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
getXMLDataLocationin interfaceJIRAEnvironmentData
-
getWorkingDirectory
Description copied from interface:JIRAEnvironmentDataReturns 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:
getWorkingDirectoryin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
getWorkingDirectoryin 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:
getJIRAHomeLocationin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
getJIRAHomeLocationin interfaceJIRAEnvironmentData- Returns:
- a directory that can be used by the func tests whenever file operations need to be done.
-
getReleaseInfo
Description copied from interface:JIRAEnvironmentDataThis is the expected release information shown under "Installation Type" on the sysinfo page.- Specified by:
getReleaseInfoin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
getReleaseInfoin interfaceJIRAEnvironmentData- Returns:
- the expected release information shown under "Installation Type" on the sysinfo page.
-
isBundledPluginsOnly
public boolean isBundledPluginsOnly()- Specified by:
isBundledPluginsOnlyin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
isBundledPluginsOnlyin interfaceJIRAEnvironmentData
-
isAllTests
public boolean isAllTests()- Specified by:
isAllTestsin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
isAllTestsin interfaceJIRAEnvironmentData
-
isSingleNamedTest
public boolean isSingleNamedTest()- Specified by:
isSingleNamedTestin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
isSingleNamedTestin interfaceJIRAEnvironmentData
-
getSingleTestClass
Description copied from interface:JIRAEnvironmentDataRun a specifically named test instead of the normal suite- Specified by:
getSingleTestClassin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
getSingleTestClassin interfaceJIRAEnvironmentData
-
isTpmLdapTests
public boolean isTpmLdapTests()Description copied from interface:JIRAEnvironmentDataA special suite of tests that connect to an LDAP server on LabManager (TPM).- Specified by:
isTpmLdapTestsin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
isTpmLdapTestsin interfaceJIRAEnvironmentData- Returns:
- true if we are running the TPM LDAP tests only.
-
isBlame
public boolean isBlame()Description copied from interface:JIRAEnvironmentDataExperimental Judge Judy build.- Specified by:
isBlamein interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
isBlamein interfaceJIRAEnvironmentData- Returns:
- true if we are running the Judge Judy tests.
-
getProperty
Description copied from interface:JIRAEnvironmentDataReturns a property from the test environment. If the property is not available it returns null.- Specified by:
getPropertyin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
getPropertyin interfaceJIRAEnvironmentData- Parameters:
key- the property key- Returns:
- a property from the test environment, or null if not available.
-
getContext
- Specified by:
getContextin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
getContextin interfaceJIRAEnvironmentData
-