java.lang.Object | ||
↳ | com.atlassian.jira.functest.framework.AbstractFuncTestUtil | |
↳ | com.atlassian.jira.functest.framework.AdministrationImpl |
Implementation of Administration
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AdministrationImpl.DefaultLink |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | LEGACY_PROJECT_PERMISSIONS_PAGE_DARK_FEATURE |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.functest.framework.Administration
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.jira.functest.framework.AbstractFuncTestUtil
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Note: if you need to construct this for an old-style
JIRAWebTest , you may
want to consider using FuncTestHelperFactory instead. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a group to a Global permission
Ends up on the Global Permissions page.
| |||||||||||
Add a group to a Global permission
Ends up on the Global Permissions page.
| |||||||||||
Gets an instance of the AdvancedApplicationProperties Page Object.
| |||||||||||
Allows you to perform backdoor actions
| |||||||||||
Copies a file to the JIRA import directory, presumably with the intention of testing imports directly.
| |||||||||||
Allows you to perform custom field actions.
| |||||||||||
enable http access logging
| |||||||||||
Exports the current running data to the specified absolute path
| |||||||||||
Allows you to modify field configuration schemes.
| |||||||||||
Allows you to modify field configurations.
| |||||||||||
Allows you to perform generalConfiguration actions.
| |||||||||||
Returns ths current build number.
| |||||||||||
Obtains the current attachment path configured for JIRA.
| |||||||||||
Returns the current edition name.
| |||||||||||
Returns the JIRA home directory as reported in the System Info section
| |||||||||||
Get the system tenant home directory.
| |||||||||||
TGo to issue linking administration section.
| |||||||||||
Allows you to modify issue security schemes.
| |||||||||||
Retrieves the administration home link in the JIRA Header.
| |||||||||||
Gets an instance of the Mail Server Administration page.
| |||||||||||
'Notification Schemes' administration section
| |||||||||||
Allows you to modify permission schemes.
| |||||||||||
Utility function to allow you some basic plugins control
| |||||||||||
Allows you to perform project actions.
| |||||||||||
Allows you to perform project imports.
| |||||||||||
Reindex JIRA, waiting for JIRA to complete the task, in the default index directory.
| |||||||||||
Remove a group from a given Global Permission.
| |||||||||||
Remove a group from a given Global Permission.
| |||||||||||
Reads in an XML file and performs token replacements on it, writes the data to a temp file which is the return value
| |||||||||||
Restores the jira instance to one with no issues.
| |||||||||||
Restores a JIRA to a well known blank instance with the supplied licence.
| |||||||||||
Same as
restoreData(String, boolean) , but with useDefaultPaths set to false. | |||||||||||
Restores the specified fileName as JIRA data.
| |||||||||||
same as
restoreDataAndLogin(String, String, boolean) but with userDefaultPaths parameter set to false. | |||||||||||
Restore the specified file and login to JIRA using the passed username.
| |||||||||||
Restores the XML file from the specified directory NOT using the clear cache mechanism.
| |||||||||||
Same as
restoreDataSlowOldWay(String, String, boolean) , but with useDefaultPath set to false;
| |||||||||||
Restores the specified fileName as JIRA data NOT using the clear cache mechanism.
| |||||||||||
Same as
restoreDataSlowOldWay(String, boolean) , except with useDefaultPaths set to false. | |||||||||||
Same as
restoreDataSlowOldWayAndLogin(String, String, boolean) but with useDefaultPath set to false. | |||||||||||
Restore the specified file data NOT using the clear cache mechanism and login to JIRA using the passed username.
| |||||||||||
Basically check the passed backup to ensure that it matches the passed build number and then restore
the data.
| |||||||||||
same as
restoreDataWithLicense(String, String, boolean) , except with useDefaultPaths set to false. | |||||||||||
Restores the specified fileName as JIRA data, using the specified License key on import.
| |||||||||||
Same as
restoreDataWithPluginsReload(String, boolean) , except with useDefaultPaths set to false. | |||||||||||
Restores the specified fileName as JIRA data NOT using the clear cache mechanism. | |||||||||||
Reads in an XML file and performs token replacements on it, writes the data to a temp file, then imports that into JIRA.
| |||||||||||
Same as
restoreDataWithReplacedTokens(String, java.util.Map, boolean) , except with useDefaultPaths set to false. | |||||||||||
Restores the specified fileName as JIRA data.
| |||||||||||
Restores a backup file with JIRA in an not setup state.
| |||||||||||
Restores a backup file with JIRA in an not setup state.
| |||||||||||
This method is deprecated.
since 7.0.1, use restoreNotSetupInstance
| |||||||||||
Allows you to perform role actions
| |||||||||||
Gets an instance of the Send Bulk Mail Page.
| |||||||||||
Returns the ViewServices object which allows you to run operations on the ViewServices page.
| |||||||||||
Set JIRA's profiling on or off.
| |||||||||||
Gets an instance of the Shared Filters Administration page.
| |||||||||||
Changes JIRA's lincense to a given license and asserts that the description then appears on the view license
| |||||||||||
Changes JIRA's lincense to a given license object
| |||||||||||
Switches the license to a personal license.
| |||||||||||
Switches the license to a starter license.
| |||||||||||
Gets an instance of the AdminTabs Page Object.
| |||||||||||
Get time tracking administration section util.
| |||||||||||
Allows you to perform user and group actions.
| |||||||||||
Field screens config.
| |||||||||||
Waits for the data import progress to complete.
| |||||||||||
Manage the 'Workflows' administration page
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.jira.functest.framework.AbstractFuncTestUtil
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.functest.framework.Administration
| |||||||||||
From interface
com.atlassian.jira.testkit.client.log.FuncTestLogger
|
Note: if you need to construct this for an old-style JIRAWebTest
, you may
want to consider using FuncTestHelperFactory
instead.
tester | the tester |
---|---|
environmentData | the environment data |
navigation | the navigation |
assertions | the assertions |
Add a group to a Global permission Ends up on the Global Permissions page.
permission | the permission to add the group to |
---|---|
group | The group to add |
Add a group to a Global permission Ends up on the Global Permissions page.
permission | the permission to add the group to |
---|---|
group | The group to add |
Gets an instance of the AdvancedApplicationProperties Page Object.
Copies a file to the JIRA import directory, presumably with the intention of testing imports directly.
file | the file to copy to JIRA_HOME/import |
---|
Allows you to perform custom field actions.
enable http access logging
Exports the current running data to the specified absolute path
fileName | to backup to. This should just be a filename because JIRA always appends ${JIRA.HOME}/export to it before doing the export. Passing a directory may make it fail on windows. |
---|
Allows you to modify field configuration schemes.
Allows you to modify field configurations.
Allows you to perform generalConfiguration actions.
Returns ths current build number. A RuntimeException
will be thrown if we can't find the build number.
Obtains the current attachment path configured for JIRA.
This method does not check whether Attachments are enabled or not. If JIRA is configured to use the "default" attachment path, then this method still returns the ACTUAL path that is used.
The implementation navigates to the Admin Attachments Settings page and screenscrapes, so don't expect to remain on the same page as when you called the method.
Returns the current edition name. This may be useful for licensing checks
Returns the JIRA home directory as reported in the System Info section
Get the system tenant home directory. This does the same thing as getJiraHomeDirectory, except it doesn't cache it in a thread local. It assumes that the environment data for this administration object is for the system tenant. It should only be called when a tenant is provisioned, which should only be done on the first test to that tenant.
TGo to issue linking administration section.
Allows you to modify issue security schemes.
Retrieves the administration home link in the JIRA Header.
Gets an instance of the Mail Server Administration page.
'Notification Schemes' administration section
NotificationSchemes
instance
Allows you to modify permission schemes.
Reindex JIRA, waiting for JIRA to complete the task, in the default index directory.
Remove a group from a given Global Permission. Ends up on the Global Permissions page.
permission | The permission to remove teh group from |
---|---|
group | the group to remove |
Remove a group from a given Global Permission. Ends up on the Global Permissions page.
permissionKey | The permission to remove the group from |
---|---|
group | the group to remove |
Reads in an XML file and performs token replacements on it, writes the data to a temp file which is the return value
originalXmlFileName | the name of the XML file to read in; must be located in the standard XML file directory |
---|---|
replacements | a map of token replacements |
IOException |
---|
Restores the jira instance to one with no issues. Some projects have been created
Restores a JIRA to a well known blank instance with the supplied licence.
license | the license to be installed |
---|
Same as restoreData(String, boolean)
, but with useDefaultPaths set to false.
Restores the specified fileName as JIRA data.
fileName | the XML file inside the standard backup file directory containing the JIRA data |
---|---|
useDefaultPaths | if set to true, the xml backup's paths (e.g., index, attachment etc) will be ignored, and the default for those used in stead |
same as restoreDataAndLogin(String, String, boolean)
but with userDefaultPaths parameter set to false.
Restore the specified file and login to JIRA using the passed username.
fileName | the name of the xml file to restore. |
---|---|
username | the username used to login to JIRA after the restore. The username and the password are assumed to be the same. |
useDefaultPaths | if set to true, the xml backup's paths (e.g., index, attachment etc) will be ignored, and the default for those used in stead |
Restores the XML file from the specified directory NOT using the clear cache mechanism. This is much slower than using the default methods and should only be used if there is a real reason for it. If you find yourself using this method perhaps we should be fixing the cache clearing stuff instead.
path | the directory in which the XML file is located |
---|---|
fileName | the name of the XML file |
useDefaultPath | if set to true, the paths (e.g., attachment, index) in the xml backup will be ignored, and the default used instead |
Same as restoreDataSlowOldWay(String, String, boolean)
, but with useDefaultPath set to false;
Restores the specified fileName as JIRA data NOT using the clear cache mechanism. This is much slower than using the default methods and should only be used if there is a real reason for it. If you find yourself using this method perhaps we should be fixing the cache clearing stuff instead.
fileName | the XML file inside the standard backup file directory containing the JIRA data |
---|---|
useDefaultPaths | if set to true, the paths in the xml backup (e.g., index, and attachment) will be ignored, and their default paths used instead. |
Same as restoreDataSlowOldWay(String, boolean)
, except with useDefaultPaths set to false.
Same as restoreDataSlowOldWayAndLogin(String, String, boolean)
but with useDefaultPath set to false.
Restore the specified file data NOT using the clear cache mechanism and login to JIRA using the passed username. This is much slower than using the default methods and should only be used if there is a real reason for it. If you find yourself using this method perhaps we should be fixing the cache clearing stuff instead.
fileName | the name of the xml file to restore. |
---|---|
username | the username used to login to JIRA after the restore. The username and the password are assumed to be the same. |
useDefaultPath | if set to true, the paths in the xml backup (e.g., index, and attachment) will be ignored, and their default paths used instead. |
Basically check the passed backup to ensure that it matches the passed build number and then restore the data. An exception will be thrown if the backup does not match the passed build number.
fileName | the path of the backup. |
---|---|
expectedBuilderNumber | the build number the data should have. |
same as restoreDataWithLicense(String, String, boolean)
, except with useDefaultPaths set to false.
Restores the specified fileName as JIRA data, using the specified License key on import.
fileName | the file conatining the JIRA data |
---|---|
licenseKey | the license key to be installed |
useDefaultPaths | if set to true, the paths (e.g., attachment, index) in the xml backup will be ignored, and the default used instead |
Same as restoreDataWithPluginsReload(String, boolean)
, except with useDefaultPaths set to false.
Restores the specified fileName as JIRA data NOT using the clear cache mechanism. The plugins system is restarted.
This restore uses the full Pico refresh the same as in Production. ie it does not do a "Quick Import".
This is much slower than using the default methods and should only be used if there is a real reason for it.
fileName | the XML file inside the standard backup file directory containing the JIRA data |
---|---|
useDefaultPaths | if set to true, the paths in the xml backup (e.g., index, and attachment) will be ignored, and their default paths used instead. |
Reads in an XML file and performs token replacements on it, writes the data to a temp file, then imports that into JIRA.
Note: this only works when the FuncTest client is running on the same host as the JIRA server.
For methods to create date strings to use as your tokens, check out the DateUtil
class
originalXmlFileName | the name of the XML file to read in; must be located in the standard XML file directory |
---|---|
replacements | a map of token replacements |
useDefaultPaths | if set to true, the paths (e.g., attachment, index) in the xml backup will be ignored, and the default used instead. If the token being replaced is part of the default paths, it is still replaced prior to restore. |
IOException |
---|
Same as restoreDataWithReplacedTokens(String, java.util.Map, boolean)
, except with useDefaultPaths set to false.
IOException |
---|
Restores the specified fileName as JIRA data. Does not make english assertions.
fileName | the fiel conatining the JIRA data |
---|
Restores a backup file with JIRA in an not setup state.
If you use this method, you will have to then set up JIRA from scratch!
Restores a backup file with JIRA in an not setup state.
If you use this method, you will have to then set up JIRA from scratch!
licenseKey | the license key to be used for restore |
---|
This method is deprecated.
since 7.0.1, use restoreNotSetupInstance
This can be removed after JIRA renaissance has been released (7.0) as roles would be enabled by default. Tracked in HIROL-1075
licenseKey | the license key to be used for restore |
---|
Gets an instance of the Send Bulk Mail Page.
Returns the ViewServices object which allows you to run operations on the ViewServices page.
Set JIRA's profiling on or off.
on | or off |
---|
Gets an instance of the Shared Filters Administration page.
Changes JIRA's lincense to a given license and asserts that the description then appears on the view license
license | license to switch to |
---|---|
description | license description |
Changes JIRA's lincense to a given license object
license | license to switch to |
---|
Switches the license to a personal license.
Switches the license to a starter license.
Gets an instance of the AdminTabs Page Object.
Get time tracking administration section util.
Allows you to perform user and group actions.
Waits for the data import progress to complete.
Manage the 'Workflows' administration page
ViewWorkflows
instance