summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/test-utils/factories/softwareProduct
diff options
context:
space:
mode:
authorVodafone <onap@vodafone.com>2019-04-05 15:49:06 +0530
committerOren Kleks <orenkle@amdocs.com>2019-04-10 06:41:37 +0000
commit18750938b1513ee32d4d68f0871ec90efdf3ddfd (patch)
treefae174b2b4d42cf5fa60312c78ced935c318cd25 /openecomp-ui/test-utils/factories/softwareProduct
parentef0e8be1453e3959b38c9832e3e729e4e86a9e04 (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-utils/factories/softwareProduct')
-rw-r--r--openecomp-ui/test-utils/factories/softwareProduct/SoftwareProductValidationFactory.js8
-rw-r--r--openecomp-ui/test-utils/factories/softwareProduct/SoftwareProductValidationResultsFactory.js80
2 files changed, 84 insertions, 4 deletions
diff --git a/openecomp-ui/test-utils/factories/softwareProduct/SoftwareProductValidationFactory.js b/openecomp-ui/test-utils/factories/softwareProduct/SoftwareProductValidationFactory.js
index 2ae9249ff7..c763e9d3e7 100644
--- a/openecomp-ui/test-utils/factories/softwareProduct/SoftwareProductValidationFactory.js
+++ b/openecomp-ui/test-utils/factories/softwareProduct/SoftwareProductValidationFactory.js
@@ -263,7 +263,7 @@ export const VSPTestsMapFactory = new Factory().attrs({
name: 'vspId',
description: 'VSP ID',
type: 'text',
- defaultValue: '',
+ defaultValue: '$vspid',
isOptional: true,
metadata: {
maxLength: 36,
@@ -275,7 +275,7 @@ export const VSPTestsMapFactory = new Factory().attrs({
name: 'vspVersion',
description: 'Previous VSP Version',
type: 'text',
- defaultValue: '',
+ defaultValue: '$vspPreviousVersion',
isOptional: true,
metadata: {
maxLength: 36,
@@ -315,7 +315,7 @@ export const VSPChecksFactory = new Factory().attrs({
name: 'vspId',
description: 'VSP ID',
type: 'text',
- defaultValue: '',
+ defaultValue: '$vspid',
isOptional: true,
metadata: {
maxLength: 36,
@@ -327,7 +327,7 @@ export const VSPChecksFactory = new Factory().attrs({
name: 'vspVersion',
description: 'Previous VSP Version',
type: 'text',
- defaultValue: '',
+ defaultValue: '$vspPreviousVersion',
isOptional: true,
metadata: {
maxLength: 36,
diff --git a/openecomp-ui/test-utils/factories/softwareProduct/SoftwareProductValidationResultsFactory.js b/openecomp-ui/test-utils/factories/softwareProduct/SoftwareProductValidationResultsFactory.js
index 6728e049b0..a4a069e355 100644
--- a/openecomp-ui/test-utils/factories/softwareProduct/SoftwareProductValidationResultsFactory.js
+++ b/openecomp-ui/test-utils/factories/softwareProduct/SoftwareProductValidationResultsFactory.js
@@ -18,6 +18,86 @@ import { Factory } from 'rosie';
export const VSPTestResultsFailureFactory = new Factory().attrs({
vspTestResults: [
{
+ scenario: 'certification',
+ description: 'Other Certifications',
+ testCaseName: 'certification.certificationtests.certquery',
+ testSuiteName: 'certificationtests',
+ executionId: 'ebaa5f21-ed68-4098-97a9-775ac8800f09-1550575025614',
+ parameters: {
+ vspId: 'uuidval',
+ vspVersion: 'ver',
+ other: 'values'
+ },
+ results: {
+ UnknownObject: {
+ someKeyanotherobject2: 'someValue',
+ someKey1: 'someValue',
+ someKey2: 'someValue',
+ someKey3: 'someValue',
+ someKey4: 'someValue',
+ someKey5: 'someValue',
+ someKey21: 'someValue11',
+ someKey111: 'someValue11',
+ someKey222: 'someValue'
+ },
+ StringResult: 'String Value of Result',
+ EmptyObject: {},
+ EmptyArray: []
+ },
+ status: 'COMPLETED',
+ startTime: '2019-02-19T11:17:05.670',
+ endTime: '2019-02-19T11:17:05.683'
+ },
+ {
+ scenario: 'compliance',
+ testCaseName: 'compliance.compliancetests.sriov',
+ description: 'Allow_SR-IOV',
+ testSuiteName: 'compliancetests',
+ executionId: 'ebaa5f21-ed68-4098-97a9-775ac8800f09-1550575025614',
+ parameters: {
+ vspId: 'uuidval',
+ vspVersion: 'ver',
+ other: 'values'
+ },
+ results: {
+ errors: [
+ {
+ attribute: '',
+ reason: 'Record Not Found',
+ advice:
+ 'User must query with (vspId, vspVersion) values for a certifications record that is present in the Repository',
+ code: 40
+ },
+ {
+ attribute: '',
+ reason: 'Record Not Found',
+ advice:
+ 'User must query with (vspId, vspVersion) values for a certifications record that is present in the Repository',
+ code: 40
+ }
+ ]
+ },
+ status: 'FAILED',
+ startTime: '2019-02-19T11:17:05.670',
+ endTime: '2019-02-19T11:17:05.683'
+ },
+ {
+ scenario: 'compliance',
+ testCaseName: ' compliance.compliancetests.computeflavours',
+ description: 'Allow SR-IOV ',
+ testSuiteName: 'compliancetests',
+ executionId: 'ebaa5f21-ed68-4098-97a9-775ac8800f09-1550575025614',
+ parameters: {
+ vspId: 'uuidval',
+ vspVersion: 'ver',
+ other: 'values'
+ },
+ results: {},
+ status: 'COMPLETED',
+ startTime: '2019-02-19T11:17:05.670',
+ endTime: '2019-02-19T11:17:05.683'
+ },
+ {
code: '500',
message: 'VTP Test(s) could not be completed',
httpStatus: 500