summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master
diff options
context:
space:
mode:
Diffstat (limited to 'vid-webpack-master')
-rw-r--r--vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts21
-rw-r--r--vid-webpack-master/cypress/plugins/cy-ts-preprocessor.js5
2 files changed, 25 insertions, 1 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 c83f92d4e..5afcc9748 100644
--- a/vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts
+++ b/vid-webpack-master/cypress/integration/iFrames/instantiation-templates.e2e.ts
@@ -280,6 +280,27 @@ describe('Drawing Board: Instantiation Templates', function () {
]);
});
+ it('Given a template - User can add a new network', () => {
+
+ loadDrawingBoardWithRecreateModeNetwork();
+
+ // add new node
+ addNewNode('node-SR-IOV Provider 2-1-add-btn')
+ .fillNetworkPopup()
+ .getDrawingBoardDeployBtn().click()
+ .wait('@expectedPostAsyncInstantiation').then(xhr => {
+ const networkRequest = bodyOf(xhr).networks['SR-IOV Provider 2-1_1'];
+
+ expect(networkRequest.action).equals("Create");
+ expect(networkRequest.rollbackOnFailure).equals("true");
+ expect(networkRequest.originalName).equals("SR-IOV Provider 2-1");
+ expect(networkRequest.productFamilyId).equals("a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb");
+ expect(networkRequest.lcpCloudRegionId).equals("hvf6");
+ expect(networkRequest.lineOfBusiness).equals("zzz1");
+ expect(networkRequest.platformName).equals("xxx1");
+ expect(networkRequest.tenantId).equals("229bcdc6eaeb4ca59d55221141d01f8e");
+ });
+ });
});
});
});
diff --git a/vid-webpack-master/cypress/plugins/cy-ts-preprocessor.js b/vid-webpack-master/cypress/plugins/cy-ts-preprocessor.js
index 7f0bba98c..3d56c2049 100644
--- a/vid-webpack-master/cypress/plugins/cy-ts-preprocessor.js
+++ b/vid-webpack-master/cypress/plugins/cy-ts-preprocessor.js
@@ -11,7 +11,10 @@ const webpackOptions = {
exclude: [/node_modules/],
use: [
{
- loader: 'ts-loader'
+ loader: 'ts-loader',
+ options: {
+ transpileOnly: true
+ }
}
]
}