aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2020-01-01 12:42:49 +0000
committerGerrit Code Review <gerrit@onap.org>2020-01-01 12:42:49 +0000
commit13c1d562e9ebdeeb82ad1737b3d83100f59cb39b (patch)
treebb8ea2eacc0f64d4f92e703fcd223ef2f89a8bb2
parent5a3532bc41b580fea966f4be79d0b5462ef7434d (diff)
parent6e55393f61a75e24429af4dac1dfd14327b4c7c5 (diff)
Merge "Remove network after loading a template - cypress test"
-rw-r--r--vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts18
1 files changed, 18 insertions, 0 deletions
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},
+ ]);
+ });
});
});