Package com.atlassian.jira.webtests.util
Class AbstractEnvironmentData
java.lang.Object
com.atlassian.jira.webtests.util.AbstractEnvironmentData
- All Implemented Interfaces:
com.atlassian.jira.testkit.client.JIRAEnvironmentData,JIRAEnvironmentData
- Direct Known Subclasses:
CargoEnvironmentData,LocalTestEnvironmentData,ProductInstanceBasedEnvironmentData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Stringprotected StringgetEnvironmentProperty(String key, String defaultValue) protected StringgetEnvironmentProperty(String key, String defaultValue, boolean allowEmpty) 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.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.webtests.util.JIRAEnvironmentData
getBaseUrl, getContext, getJIRAHomeLocation, getWorkingDirectory, getXMLDataLocation
-
Constructor Details
-
AbstractEnvironmentData
-
-
Method Details
-
isBundledPluginsOnly
public boolean isBundledPluginsOnly()- Specified by:
isBundledPluginsOnlyin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
isBundledPluginsOnlyin 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.
-
isAllTests
public boolean isAllTests()- Specified by:
isAllTestsin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
isAllTestsin interfaceJIRAEnvironmentData
-
getEdition
-
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.
-
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.
-
getEnvironmentProperty
-
getEnvironmentProperty
-
isSingleNamedTest
public boolean isSingleNamedTest()- Specified by:
isSingleNamedTestin interfacecom.atlassian.jira.testkit.client.JIRAEnvironmentData- Specified by:
isSingleNamedTestin interfaceJIRAEnvironmentData
-
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.
-
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
-