From e8887222c45e7d1849cb8098997c8fb7c149ebd7 Mon Sep 17 00:00:00 2001 From: Ittay Stern Date: Sun, 1 Dec 2019 19:38:32 +0200 Subject: 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 --- vid-webpack-master/src/app/drawingBoard/drawingBoard.routing.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vid-webpack-master/src/app/drawingBoard') diff --git a/vid-webpack-master/src/app/drawingBoard/drawingBoard.routing.ts b/vid-webpack-master/src/app/drawingBoard/drawingBoard.routing.ts index 0c1fa700c..6564746b7 100644 --- a/vid-webpack-master/src/app/drawingBoard/drawingBoard.routing.ts +++ b/vid-webpack-master/src/app/drawingBoard/drawingBoard.routing.ts @@ -26,6 +26,14 @@ export const DrawingBoardRoutes: Route[] = [ viewEditResolver: ViewEditResolver } }, + { + path: 'RECREATE', + component: ServicePlanningComponent, + resolve: { + flags: FlagsResolve, + viewEditResolver: RetryResolver + } + }, { path: 'RETRY_EDIT', component: ServicePlanningComponent, -- cgit 1.2.3-korg