Description
I want to import DPU template exported from one system to another system so that I can:
- prepare DPU template in a test system and then to update production environment with proper one
- restore a DPU from export/backup done earlier, after data loss or system re-install
Preconditions
- zip file representing a result of DPU template(s) export or zip file representing a result of pipeline export exists on local file system
How to do it:
- selects and clicks 'Unified Views' from 'Tools' combo box on main page of internal catalog
- 'Home' page of ODN/UV is displayed
- clicks 'DPU Templates' in main menu
- list of all DPU templates organized in Develop tree is displayed
- 'Create DPU template' button is available
- clicks 'Create DPU template' button
- 'DPU template creation' dialog is displayed
- 'zip' tab is available
- clicks to 'zip' tab
- 'Choose file' button is available
- clicks 'Choose file' button
- upload dialog for selection of file to be uploaded from local file system is displayed
- selects exported zip file containing DPU template(s) and respective DPU JARs from local file system, the zip file representing a result of:
- pipeline export (not necessarily contains DPU JARs)
- DPU template(s) export
- upload dialog is closed
- name of the zip file is displayed in dedicated field
- system checks the content of the file after selection and is able to recognize whether the exported file is a result of pipeline export or DPU template export
- list of DPU templates contained in the zip file is displayed containing columns
- 'DPU template name'
- 'Respective DPU JAR name'
- 'Import possible' - takes values 'YES' and 'NO'
- list of DPU templates contained in the zip file is displayed containing columns
- if the zip file is a result of pipeline export and contains no DPU templates
- 'Import possible' column contains 'NO' for all DPU templates
- error message is displayed "There is nothing to import."
- 'Import' button is disabled
- if the zip file is a result of pipeline export and contains DPU templates or if the zip file is a result of DPU template(s) export
- 'Import possible' column contains
- 'NO' for 2nd level DPU templates with version older than the version of DPU JARs on current system
- 'YES' for 2nd level DPU templates with version equal or newer than the version of DPU JARs on current system
- 'YES' for 2nd DPU templates that do not exist in current system yet
- 'NO' for existing (the same name) 3rd level DPU templates with parent 2nd level DPU template version older than the version of DPU JARs on current system
- 'YES' for non existing 3rd level DPU templates with parent 2nd level DPU template version older than the version of DPU JARs on current system
- 'YES' for all 3rd level DPU templates with parent 2nd level DPU template version equal or newer than the version of DPU JARs on current system
- 'YES' for 3rd level DPU templates that has no parent 2nd level DPU template in current system yet
- if at least one row contains 'NO' in 'Import possible' column, warning message is displayed "Warning, not all DPU templates will be imported due to outdated versions."
- if at least one row contains 'YES' in 'Import possible' column, 'Import' button is available
- if all rows contain 'NO' in 'Import possible' column, 'Import' button is disabled
- clicks 'Import' button
- import of 3rd level DPU templates is started after all 2nd level DPU templates are resolved
- 2nd level DPU templates with newer version are installed replacing the older versions
- 2nd level DPU templates that do not exist yet are installed as 2nd level DPU templates
- no 2nd level DPU template with version older than the version of DPU template in current system is installed
- all existing (not imported) 3rd level DPU templates remain as child DPU templates of replaced parent 2nd level DPU templates
- all non existing 3rd level DPU templates are installed and created as child DPU templates for corresponding parent 2nd level DPU templates
- existing 3rd level DPU templates are replaced only if the imported 3rd level DPU template has corresponding parent of newer version
- 'DPU template creation' dialog is closed with message 'Import of DPU template(s) was successful.'
- 'Import possible' column contains
- 'DPU template creation' dialog is displayed