diff options
author | Vodafone <onap@vodafone.com> | 2019-04-05 15:49:06 +0530 |
---|---|---|
committer | Oren Kleks <orenkle@amdocs.com> | 2019-04-10 06:41:37 +0000 |
commit | 18750938b1513ee32d4d68f0871ec90efdf3ddfd (patch) | |
tree | fae174b2b4d42cf5fa60312c78ced935c318cd25 /openecomp-ui/test/softwareProduct/validationResults/SoftwareProductValidationResultsView.test.js | |
parent | ef0e8be1453e3959b38c9832e3e729e4e86a9e04 (diff) |
VSP Compliance Check for Compute Flavor
Change-Id: I04768a20413393026606a3f5b200e959e37c1410
Issue-ID: SDC-2051
Co-authored-by: rahul.ghugikar@vodafone.com, soumyarup.paul@vodafone.com
Signed-off-by: Vodafone <onap@vodafone.com>
Diffstat (limited to 'openecomp-ui/test/softwareProduct/validationResults/SoftwareProductValidationResultsView.test.js')
-rw-r--r-- | openecomp-ui/test/softwareProduct/validationResults/SoftwareProductValidationResultsView.test.js | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/openecomp-ui/test/softwareProduct/validationResults/SoftwareProductValidationResultsView.test.js b/openecomp-ui/test/softwareProduct/validationResults/SoftwareProductValidationResultsView.test.js index b2cc2c0985..67e9fcfd89 100644 --- a/openecomp-ui/test/softwareProduct/validationResults/SoftwareProductValidationResultsView.test.js +++ b/openecomp-ui/test/softwareProduct/validationResults/SoftwareProductValidationResultsView.test.js @@ -19,6 +19,8 @@ import { mapStateToProps } from 'sdc-app/onboarding/softwareProduct/validationRe import SoftwareProductValidationResultsView from 'sdc-app/onboarding/softwareProduct/validationResults/SoftwareProductValidationResultsView.jsx'; import { VSPTestResultsSuccessFactory } from 'test-utils/factories/softwareProduct/SoftwareProductValidationResultsFactory.js'; import { VSPTestResultsFailureFactory } from 'test-utils/factories/softwareProduct/SoftwareProductValidationResultsFactory.js'; +import { VSPTestsMapFactory } from 'test-utils/factories/softwareProduct/SoftwareProductValidationFactory.js'; + import TestUtils from 'react-dom/test-utils'; describe('SoftwareProductValidationResults Mapper and View Classes', () => { @@ -28,11 +30,13 @@ describe('SoftwareProductValidationResults Mapper and View Classes', () => { it('mapStateToProps fail data test', () => { const vspTestResults = VSPTestResultsFailureFactory.build(); + const vspTestsMap = VSPTestsMapFactory.build(); var obj = { softwareProduct: { softwareProductValidation: { - vspTestResults: vspTestResults.vspTestResults + vspTestResults: vspTestResults.vspTestResults, + vspTestsMap: vspTestsMap.vspTestsMap } } }; @@ -42,11 +46,13 @@ describe('SoftwareProductValidationResults Mapper and View Classes', () => { it('mapStateToProps success data test', () => { const vspTestResults = VSPTestResultsSuccessFactory.build(); + const vspTestsMap = VSPTestsMapFactory.build(); var obj = { softwareProduct: { softwareProductValidation: { - vspTestResults: vspTestResults.vspTestResults + vspTestResults: vspTestResults.vspTestResults, + vspTestsMap: vspTestsMap.vspTestsMap } } }; @@ -56,6 +62,7 @@ describe('SoftwareProductValidationResults Mapper and View Classes', () => { it('SoftwareProductValidationResultsView test fail render test', () => { const vspTestResults = VSPTestResultsFailureFactory.build(); + const vspTestsMap = VSPTestsMapFactory.build(); const version = { name: 1 @@ -65,7 +72,8 @@ describe('SoftwareProductValidationResults Mapper and View Classes', () => { softwareProductId: softwareProductId, version: version, softwareProductValidation: { - vspTestResults: vspTestResults.vspTestResults + vspTestResults: vspTestResults.vspTestResults, + vspTestsMap: vspTestsMap.vspTestsMap } }; let vspValidationResultsView = TestUtils.renderIntoDocument( @@ -76,6 +84,7 @@ describe('SoftwareProductValidationResults Mapper and View Classes', () => { it('SoftwareProductValidationResultsView test success render test', () => { const vspTestResults = VSPTestResultsSuccessFactory.build(); + const vspTestsMap = VSPTestsMapFactory.build(); let version = { name: 1 @@ -85,7 +94,8 @@ describe('SoftwareProductValidationResults Mapper and View Classes', () => { softwareProductId: softwareProductId, version: version, softwareProductValidation: { - vspTestResults: vspTestResults.vspTestResults + vspTestResults: vspTestResults.vspTestResults, + vspTestsMap: vspTestsMap.vspTestsMap } }; let vspValidationResultsView = TestUtils.renderIntoDocument( |