Cypress to drive recreation from templates 83/98983/2
authorIttay Stern <ittay.stern@att.com>
Sun, 1 Dec 2019 17:38:32 +0000 (19:38 +0200)
committerIttay Stern <ittay.stern@att.com>
Sun, 1 Dec 2019 17:51:25 +0000 (19:51 +0200)
commite8887222c45e7d1849cb8098997c8fb7c149ebd7
tree3d6d61e509f07c6202d924c8b5735a68fcfa1451
parentd8a9536b717d0ff48f25deee301f033eceb6e100
Cypress to drive recreation from templates

A new route "RECREATE" allows the half-way between RETRY and CREATE: It
is "retry" because historic topology is loaded. It is "create" because
a new instance is created upon "Deploy".

Following commits should modify business-code, so that:

- The expectedPostAsyncInstantiation assertion pass;

- User is navigated the Instantiation-Status page;

- The template topology will be from a designated endpoint
  "templateTopology", instead of "bulkForRetry";

- Consider the hack in `templates__instance_template.json`, where action
  is "None_Create" instead of "Create" to workaround a state-oriented
  problem in the method `extractServiceFields()`.

Issue-ID: VID-724

Change-Id: I0fc282b506a05b8161f3b3f96959493d3843c7f9
Signed-off-by: Ittay Stern <ittay.stern@att.com>
vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts [new file with mode: 0644]
vid-webpack-master/cypress/support/jsonBuilders/mocks/jsons/instantiationTemplates/templates__instance_template.json [new file with mode: 0644]
vid-webpack-master/cypress/support/jsonBuilders/mocks/jsons/instantiationTemplates/templates__service_model.json [new file with mode: 0644]
vid-webpack-master/src/app/drawingBoard/drawingBoard.routing.ts