From 6e55393f61a75e24429af4dac1dfd14327b4c7c5 Mon Sep 17 00:00:00 2001 From: Einat Vinouze Date: Wed, 1 Jan 2020 13:40:56 +0200 Subject: [PATCH] Remove network after loading a template - cypress test Issue-ID: VID-724 Signed-off-by: Einat Vinouze Change-Id: Id711480e3f48646516874a70711cc2d0d0912b19 Signed-off-by: Einat Vinouze --- .../integration/iFrames/instantiation-templates.e2e.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts index e481c3e8b..c83f92d4e 100644 --- a/vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts +++ b/vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts @@ -261,6 +261,24 @@ describe('Drawing Board: Instantiation Templates', function () { assertThatBodyFromDeployRequestEqualsToTemplateFromBackEnd_network(); }); + it(`Given a stored template of Network - User can remove existing network`, () => { + + loadDrawingBoardWithRecreateModeNetwork(); + + nodeAction('node-01f4c475-3f89-4f00-a2f4-39a873dba0ae-SR-IOV Provider 2-1', 'Remove'); + let removed_network_Path = [ + "networks", "SR-IOV Provider 2-1", + ]; + + let removed_network_counter_Path = [ + "existingNetworksCounterMap", "f6b6d141-0d4c-427d-ad35-797f3d1abe71", + ]; + + assertThatBodyFromDeployRequestEqualsToTemplateFromBackEnd_network([ + {path: removed_network_Path, value: undefined}, + {path: removed_network_counter_Path, value: 0}, + ]); + }); }); }); -- 2.16.6