Package com.atlassian.jira.webtests.util
Interface JIRAEnvironmentData
- All Superinterfaces:
com.atlassian.jira.testkit.client.JIRAEnvironmentData
- All Known Implementing Classes:
AbstractEnvironmentData,CargoEnvironmentData,HaProductEnvironmentData,LocalTestEnvironmentData,ProductInstanceBasedEnvironmentData,TenantOverridingEnvironmentData
public interface JIRAEnvironmentData
extends com.atlassian.jira.testkit.client.JIRAEnvironmentData
-
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.Returns a property from the test environment.Class<?> 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.
-
Method Details
-
getContext
String getContext()- Specified by:
getContextin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
-
getTenant
String getTenant()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:
getTenantin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Returns:
- The tenant
-
shouldCreateDummyTenant
boolean shouldCreateDummyTenant()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:
shouldCreateDummyTenantin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Returns:
- true if a dummy tenant should be created after the tenant is created.
-
getBaseUrl
URL getBaseUrl()- Specified by:
getBaseUrlin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
-
getXMLDataLocation
File getXMLDataLocation()- Specified by:
getXMLDataLocationin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
-
getWorkingDirectory
File getWorkingDirectory()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:
getWorkingDirectoryin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Returns:
- a directory that can be used by the func tests whenever file operations need to be done.
- See Also:
-
getJIRAHomeLocation
Deprecated.Please usegetWorkingDirectory(). This was renamed to avoid confusion with the "jira-home" functionality. Deprecated since v4.0- Specified by:
getJIRAHomeLocationin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Returns:
- a directory that can be used by the func tests whenever file operations need to be done.
-
getReleaseInfo
String getReleaseInfo()This is the expected release information shown under "Installation Type" on the sysinfo page.- Specified by:
getReleaseInfoin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Returns:
- the expected release information shown under "Installation Type" on the sysinfo page.
-
isBundledPluginsOnly
boolean isBundledPluginsOnly()- Specified by:
isBundledPluginsOnlyin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
-
isAllTests
boolean isAllTests()- Specified by:
isAllTestsin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
-
isSingleNamedTest
boolean isSingleNamedTest()- Specified by:
isSingleNamedTestin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
-
getSingleTestClass
Class<?> getSingleTestClass()Run a specifically named test instead of the normal suite- Specified by:
getSingleTestClassin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData
-
isTpmLdapTests
boolean isTpmLdapTests()A special suite of tests that connect to an LDAP server on LabManager (TPM).- Specified by:
isTpmLdapTestsin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Returns:
- true if we are running the TPM LDAP tests only.
-
isBlame
boolean isBlame()Experimental Judge Judy build.- Specified by:
isBlamein interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Returns:
- true if we are running the Judge Judy tests.
-
getProperty
Returns a property from the test environment. If the property is not available it returns null.- Specified by:
getPropertyin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Parameters:
key- the property key- Returns:
- a property from the test environment, or null if not available.
-
getRequiredProperty
Returns a property from the test environment. If the property is not available or is empty, it throws an IllegalStateException.- Parameters:
key- the property key- Returns:
- a property from the test environment.
- Throws:
IllegalStateException- if the property is not found or is empty.
-
getWorkingDirectory().