stable
Clone or download
Read-only
story #8572: Add project creation using XML
Use XML (which must be valid using a Relax-NG schema) to construct a ProjectCreationData object that will be used for project creation. Enable project creation when running import_project_xml.php without a project flag (-p). Add integration test that check that the project is created. Change-Id: I4cf77283503ad8d40ba8e5194e52b927ae3ba2ea
Modified Files
Name | ||||
---|---|---|---|---|
M | Makefile | +1 | −1 | Go to diff View file |
M | src/common/project/ProjectCreationData.class.php | +89 | −15 | Go to diff View file |
M | src/common/project/ProjectCreator.class.php | +0 | −6 | Go to diff View file |
M | src/common/project/ProjectXMLImporter.class.php | +29 | −12 | Go to diff View file |
M | src/common/project/ProjectXMLImporterZipArchive.php | +8 | −4 | Go to diff View file |
A | src/common/xml/resources/project-definition.rnc | +17 | −0 | Go to diff View file |
A | src/common/xml/resources/project/project-definition.rng | +40 | −0 | Go to diff View file |
M | src/common/xml/resources/project/project.rnc | +5 | −2 | Go to diff View file |
M | src/common/xml/resources/project/project.rng | +20 | −15 | Go to diff View file |
M | src/utils/import_project_xml.php | +2 | −1 | Go to diff View file |
A | tests/integration/ProjectImportTest.php | +90 | −0 | Go to diff View file |
A | tests/integration/_fixtures/fake_project.xml | +26 | −0 | Go to diff View file |
M | tests/simpletest/common/project/XMLImportZipArchiveTest.php | +2 | −2 | Go to diff View file |