stable
Clone or download
Part of request #11795 Add option update in import project xml how to test : tuleap import-project-xml -u admin -i <path_project.zip> --automap no-email,create:A --name new_project tuleap import-project-xml -u admin -i <path_project.zip> --automap no-email,create:A --project new_project --update expected results : If update with no artifacts : Nothing expected No exceptions triggered If update With artifacts : Add new artifacts after olds artifacts Currently, the artifacts are add after existings artifacts If update without "--update" : Exception triggered "Cannot be created. Use option '--update' to update an existing tracker" If use "--update" without "--project": Exception triggered "Can't use --update" Change-Id: Iec75baa9e20d5aac36ea5478745d706c7279602d
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/Tracker/Artifact/XMLImport.class.php | +27 | −0 | Go to diff View file |
A | plugins/tracker/include/TrackerFromXmlImportCannotBeUpdatedException.php | +38 | −0 | Go to diff View file |
A | plugins/tracker/include/TrackerXMLFieldMappingFromExistingTracker.php | +114 | −0 | Go to diff View file |
M | plugins/tracker/include/TrackerXmlImport.class.php | +106 | −48 | Go to diff View file |
A | plugins/tracker/phpunit/Tracker/TrackerXMLFieldMappingFromExistingTrackerTest.php | +302 | −0 | Go to diff View file |
A | plugins/tracker/phpunit/Tracker/_fixtures/TestFieldMapping.xml | +69 | −0 | Go to diff View file |
M | plugins/tracker/site-content/en_US/tracker.tab | +1 | −1 | Go to diff View file |
M | plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po | +13 | −5 | Go to diff View file |
M | plugins/tracker/site-content/fr_FR/tracker.tab | +1 | −1 | Go to diff View file |
M | plugins/tracker/site-content/tuleap-tracker.pot | +6 | −0 | Go to diff View file |
M | plugins/tracker/tests/TrackerXmlImportTest.php | +33 | −10 | Go to diff View file |
M | src/common/CLI/Command/ImportProjectXMLCommand.php | +17 | −1 | Go to diff View file |
M | src/common/project/XML/Import/ImportConfig.php | +12 | −2 | Go to diff View file |