aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-ui/test/softwareProduct
diff options
context:
space:
mode:
authorandre.schmid <andre.schmid@est.tech>2022-01-25 19:38:32 +0000
committerMichael Morris <michael.morris@est.tech>2022-01-31 15:23:21 +0000
commit4594cba0c53461bc1a273458e0a7a314da6bfb68 (patch)
treec78010c789d726aa72ee8591ab12720b72d1c675 /openecomp-ui/test/softwareProduct
parent99b7fb519806870b3c84e9e1ac0ac2f59320a6b0 (diff)
Obtain and control VSP package upload status
Obtain the upload status and control the upload from the frontend perspective. Change-Id: Idcc921cf592efea33df35c557afcfae827af3a39 Issue-ID: SDC-3862 Signed-off-by: andre.schmid <andre.schmid@est.tech>
Diffstat (limited to 'openecomp-ui/test/softwareProduct')
-rw-r--r--openecomp-ui/test/softwareProduct/landingPage/landingPage.test.js16
1 files changed, 11 insertions, 5 deletions
diff --git a/openecomp-ui/test/softwareProduct/landingPage/landingPage.test.js b/openecomp-ui/test/softwareProduct/landingPage/landingPage.test.js
index 2ef1d9fce8..de7db29ad7 100644
--- a/openecomp-ui/test/softwareProduct/landingPage/landingPage.test.js
+++ b/openecomp-ui/test/softwareProduct/landingPage/landingPage.test.js
@@ -39,6 +39,7 @@ describe('Software Product Landing Page: ', function () {
let currentSoftwareProduct = {}, softwareProductCategories = [], currentScreen = {},
finalizedLicenseModelList, licenseAgreementList, featureGroupsList, qschema, qdata = {};
const dummyFunc = () => {};
+ const fetchUploadStatusMock = () => { return Promise.resolve({ data: {} }) };
beforeAll(function() {
finalizedLicenseModelList = FinalizedLicenseModelFactory.buildList(2);
@@ -96,7 +97,8 @@ describe('Software Product Landing Page: ', function () {
...currentScreen.props,
currentSoftwareProduct,
componentsList: VSPComponentsFactory.buildList(2),
- features: [{name:'EXTERNAL_LICENSE', active: true}]
+ features: [{name:'EXTERNAL_LICENSE', active: true}],
+ fetchUploadStatus: fetchUploadStatusMock
};
const store = storeCreator();
@@ -113,7 +115,8 @@ describe('Software Product Landing Page: ', function () {
...currentScreen.props,
currentSoftwareProduct,
componentsList: VSPComponentsFactory.buildList(2),
- features: [{name:'EXTERNAL_LICENSE', active: true}]
+ features: [{name:'EXTERNAL_LICENSE', active: true}],
+ fetchUploadStatus: fetchUploadStatusMock
};
const e = { target: {
value: 'INTERNAL'
@@ -143,7 +146,8 @@ describe('Software Product Landing Page: ', function () {
currentSoftwareProduct,
...currentScreen.props,
componentsList: VSPComponentsFactory.buildList(2),
- features: [{name:'EXTERNAL_LICENSE', active: true}]
+ features: [{name:'EXTERNAL_LICENSE', active: true}],
+ fetchUploadStatus: fetchUploadStatusMock
};
const store = storeCreator();
@@ -171,7 +175,8 @@ describe('Software Product Landing Page: ', function () {
onUploadConfirmation: dummyFunc,
onUpload: dummyFunc,
onInvalidFileSizeUpload: dummyFunc,
- features: [{name:'EXTERNAL_LICENSE', active: true}]
+ features: [{name:'EXTERNAL_LICENSE', active: true}],
+ fetchUploadStatus: fetchUploadStatusMock
};
const files = [
@@ -215,7 +220,8 @@ describe('Software Product Landing Page: ', function () {
onUploadConfirmation: dummyFunc,
onUpload: dummyFunc,
onInvalidFileSizeUpload: dummyFunc,
- features: [{name:'EXTERNAL_LICENSE', active: true}]
+ features: [{name:'EXTERNAL_LICENSE', active: true}],
+ fetchUploadStatus: fetchUploadStatusMock
};
const store = storeCreator();