stable

Clone or download

Read-only

Replace restangular by fetch

part of request #16558 Replace restangular by tlp fetch in testmanagement plugin No functional change expected. Things to try: - Campaign creation - Browsing campaigns, tests - Link a test to an issue - Edit a campaign (add / remove tests, label, jenkins job) - Changing step status - Changing test status - Artifact links graph Implementation notes: We cannot mix async/await with angularJS promises. As long as the external API uses angularJS promises, our code MUST use .then() and .catch(). Otherwise, it never works in jest tests (we reach timeout). Change-Id: I310452a26f49359ee5d905b1fa78dc3fc3ffabe2

Modified Files

Name
M plugins/testmanagement/package-lock.json +0 −8 Go to diff View file
M plugins/testmanagement/package.json +0 −1 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/artifact-links-graph/artifact-links-graph-rest-service.js +29 −19 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/artifact-links-graph/artifact-links-graph-rest-service.test.js +32 −8 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/artifact-links-graph/artifact-links-graph.js +1 −3 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/campaign/campaign-service.js +65 −44 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/campaign/campaign-service.test.js +171 −105 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/campaign/campaign.js +0 −2 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/definition/definition-service.js +24 −41 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/definition/definition-service.test.js +64 −27 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/definition/definition.js +2 −5 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/execution-collection/execution-collection.js +1 −2 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/execution-collection/execution-rest-service.js +101 −96 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/execution-collection/execution-rest-service.test.js +229 −130 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/execution/execution-detail-controller.test.js +2 −0 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/execution/execution-list-controller.test.js +21 −0 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/execution/execution.js +0 −2 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/jwt/jwt-service.js +26 −15 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/jwt/jwt-service.test.js +19 −5 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/jwt/jwt.js +1 −4 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/tests/jest.setup.js +0 −3 Go to diff View file