stable

Clone or download

Read-only

feat: Move ttm steps definition fields

part of story #32280 Complete the "move artifact" feature This contribution allows ttm's steps definition field to be moved. Please note that the steps execution field is systematically considered as a not migrateable field. The main reason is that no XML is written for it when an artifact is exported. How to test: - Have a test case containing steps - Move it to another test case tracker --> It works - Have a test execution artifact - Move it to another test execution tracker --> The dry run step says the step results field it won't be moved. Change-Id: I0893a59d5006dbdaaee64fb83e54cc4e62ee1892

Modified Files

Name
M plugins/testmanagement/composer.json +5 −0 Go to diff View file
A plugins/testmanagement/include/TestManagement/Move/IsAStepDefinitionFieldVerifier.php +33 −0 Go to diff View file
A plugins/testmanagement/include/TestManagement/Move/IsAStepExecutionFieldVerifier.php +33 −0 Go to diff View file
A plugins/testmanagement/include/TestManagement/Move/TTMMovableFieldsCollector.php +46 −0 Go to diff View file
M plugins/testmanagement/include/testmanagementPlugin.php +13 −5 Go to diff View file
A plugins/testmanagement/tests/unit/Builders/StepDefinitionFieldBuilder.php +46 −0 Go to diff View file
A plugins/testmanagement/tests/unit/Builders/StepExecutionFieldBuilder.php +46 −0 Go to diff View file
A plugins/testmanagement/tests/unit/TestManagement/Move/IsAStepDefinitionFieldVerifierTest.php +45 −0 Go to diff View file
A plugins/testmanagement/tests/unit/TestManagement/Move/IsAStepExecutionFieldVerifierTest.php +48 −0 Go to diff View file
A plugins/testmanagement/tests/unit/TestManagement/Move/TTMMovableFieldsCollectorTest.php +56 −0 Go to diff View file
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +6 −1 Go to diff View file
A plugins/tracker/include/Tracker/Action/CollectMovableExternalFieldEvent.php +72 −0 Go to diff View file
M plugins/tracker/include/Tracker/Action/DryRunDuckTypingFieldCollector.php +37 −0 Go to diff View file
A plugins/tracker/include/Tracker/Action/ExternalFieldsHaveSameTypeVerifier.php +31 −0 Go to diff View file
A plugins/tracker/include/Tracker/Action/FieldIsExternalVerifier.php +33 −0 Go to diff View file
A plugins/tracker/include/Tracker/Action/VerifyExternalFieldsHaveSameType.php +29 −0 Go to diff View file
A plugins/tracker/include/Tracker/Action/VerifyIsExternalField.php +26 −0 Go to diff View file
M plugins/tracker/include/Tracker/XML/Updater/MoveChangesetXMLDuckTypingUpdater.php +38 −8 Go to diff View file
M plugins/tracker/include/Tracker/XML/Updater/MoveChangesetXMLUpdater.php +8 −2 Go to diff View file
A plugins/tracker/tests/unit/Builders/TrackerExternalFormElementBuilder.php +167 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/VerifyExternalFieldsHaveSameTypeStub.php +45 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/VerifyIsExternalFieldStub.php +47 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Action/CollectMovableExternalFieldEventTest.php +63 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Action/DryRunDuckTypingFieldCollectorTest.php +234 −41 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Action/ExternalFieldsHaveSameTypeVerifierTest.php +49 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Action/FieldIsExternalVerifierTest.php +45 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/XML/Updater/MoveChangesetXMLDuckTypingUpdaterTest.php +12 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/XML/Updater/MoveChangesetXMLUpdaterTest.php +21 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/XML/Updater/_fixtures/bugs_artifact.xml +6 −0 Go to diff View file