2 * Copyright (c) 2019 Vodafone Group
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 import { Factory } from 'rosie';
18 export const VSPComplianceCheckedFactory = new Factory().attrs({
20 'compliance.compliancetests.sriov',
21 'compliance.compliancetests.computeflavors',
26 export const VSPCertificationCheckedFactory = new Factory().attrs({
27 certificationChecked: ['certification.certificationtests.certquery']
30 export const VSPGeneralInfoFactory = new Factory().attrs({
32 'certification.certificationtests.certquery': {
35 errorText: 'Please Enter a Value in the Mandatory Field'
39 errorText: 'Please Enter a Value in the Mandatory Field'
42 'compliance.compliancetests.sriov': {
45 errorText: 'Please Enter a Value in the Mandatory Field'
49 errorText: 'Please Enter a Value in the Mandatory Field'
56 'compliance.compliancetests.computeflavors': {
59 errorText: 'Please Enter a Value in the Mandatory Field'
63 errorText: 'Please Enter a Value in the Mandatory Field'
95 export const VSPTestsRequestFactory = new Factory().attrs({
97 'compliance.compliancetests.sriov': {
103 scenario: 'compliance',
104 testCaseName: 'compliance.compliancetests.sriov',
105 testSuiteName: 'compliancetests',
108 'compliance.compliancetests.computeflavors': {
113 profilespec: 'gsmafnw14',
116 scenario: 'compliance',
117 testCaseName: 'compliance.compliancetests.computeflavors',
118 testSuiteName: 'compliancetests',
121 'certification.certificationtests.certquery': {
126 scenario: 'certification',
127 testCaseName: 'certification.certificationtests.certquery',
128 testSuiteName: 'certificationtests',
129 endpoint: 'repository'
134 'host-password': '123',
135 'vsp-csar': 'vsp.csar',
137 testCaseName: 'vnf-validation',
138 testSuiteName: 'vnf-validation',
139 scenario: 'onap-dublin',
144 export const VSPTestRequestFactory = new Factory().attrs({
148 'config-json': '/opt/oclip/conf/vnf-tosca-provision.json',
150 'vnf-csar': 'file://1574080373688.csar',
152 'vnfm-driver': 'gvnfmdriver ',
153 'onap-objects': '{}',
154 'mode': 'provision ',
156 'vnf-vendor-name': 'ABC',
159 'scenario': 'onap-dublin',
160 'testCaseName': 'vnf-tosca-provision',
161 'testSuiteName': 'vnf-validation',
167 export const VSPTestsMapFactory = new Factory().attrs({
169 'compliance.compliancetests.sriov': {
170 title: ' SR-IOV Test',
174 description: 'VSP ID',
185 description: 'VSP Version',
196 description: 'Allow SR-IOV?',
198 defaultValue: 'false',
216 testCaseName: 'compliance.compliancetests.sriov',
217 testSuiteName: 'compliancetests',
218 scenario: 'compliance'
220 'compliance.compliancetests.computeflavors': {
221 title: 'Compute Flavours Test',
225 description: 'VSP ID',
236 description: 'VSP Version',
249 defaultValue: 'ZZFT',
256 label: 'Vodafone Group'
263 description: 'Profile Specification',
265 defaultValue: 'gsmafnw14',
272 label: 'GSMA NFVI Profiles'
279 description: 'VNF Type',
292 label: 'Network Intensive'
296 label: 'Compute Intensive'
303 testCaseName: 'compliance.compliancetests.computeflavors',
304 testSuiteName: 'compliancetests',
305 scenario: 'compliance'
307 'certification.certificationtests.certquery': {
308 title: 'Other Certifications',
312 description: 'VSP ID',
314 defaultValue: '$vspid',
324 description: 'Previous VSP Version',
326 defaultValue: '$vspPreviousVersion',
335 endpoint: 'repository',
336 testCaseName: 'certification.certificationtests.certquery',
337 testSuiteName: 'certificationtests',
338 scenario: 'certification'
341 title: 'vnf-validation',
345 description: 'VSP ID',
347 defaultValue: '$vspid',
357 description: 'Vsp Csar',
363 name: 'host-password',
364 description: 'host-password',
371 testCaseName: 'vnf-validation',
372 testSuiteName: 'vnf-validation',
373 scenario: 'onap-dublin'
378 export const VSPChecksFactory = new Factory().attrs({
383 name: 'certification',
384 description: 'Available Certifications Query',
387 name: 'certificationtests',
388 description: 'Additional Certification',
392 'certification.certificationtests.certquery',
393 testSuiteName: 'certificationtests',
394 description: 'Other Certifications',
395 author: 'jg@example.com',
399 description: 'VSP ID',
401 defaultValue: '$vspid',
411 description: 'Previous VSP Version',
413 defaultValue: '$vspPreviousVersion',
422 endpoint: 'repository'
430 description: 'Available ComplianceChecks',
434 name: 'compliancetests',
435 description: 'Compliance Tests',
438 testCaseName: 'compliance.compliancetests.sriov',
439 testSuiteName: 'compliancetests',
440 description: ' SR-IOV Test',
445 description: 'VSP ID',
456 description: 'VSP Version',
467 description: 'Allow SR-IOV?',
469 defaultValue: 'false',
490 'compliance.compliancetests.computeflavors',
491 testSuiteName: 'compliancetests',
492 description: 'Compute Flavours Test',
497 description: 'VSP ID',
508 description: 'VSP Version',
521 defaultValue: 'ZZFT',
528 label: 'Vodafone Group'
535 description: 'Profile Specification',
537 defaultValue: 'gsmafnw14',
544 label: 'GSMA NFVI Profiles'
551 description: 'VNF Type',
564 label: 'Network Intensive'
568 label: 'Compute Intensive'
581 'name': 'onap-dublin',
584 'name': 'vnf-validation',
587 'scenario': 'onap-dublin',
588 'testCaseName': 'vnf-tosca-provision',
589 'testSuiteName': 'vnf-validation',
590 'description': 'ONAP TOSCA VNF validation',
591 'author': 'ONAP VTP Team kanagaraj.manickam@huawei.com',
594 'name': 'config-json',
595 'description': 'Configuration file path',
597 'defaultValue': '$s{env:OPEN_CLI_HOME}/conf/vnf-tosca-provision.json',
602 'description': 'Path to the ONAP vendor service product (VSP) for the VNF to provision',
608 'description': 'Path to the TOSCA CSAR for the VNF to provision',
614 'description': 'Path to the TOSCA CSAR for the NS service to provision',
619 'name': 'vnfm-driver',
620 'description': 'VNFM driver to use. One of gvnfmdriver or hwvnfmdriver',
625 'name': 'onap-objects',
626 'description': 'Existing ONAP object ids to use instead of creating them while running this task',
632 'description': 'setup or standup or cleanup or provision or validate',
634 'defaultValue': 'checkup',
639 'description': 'VNF Name',
644 'name': 'vnf-vendor-name',
645 'description': 'VNF Vendor Name',
651 'description': 'timeout for command to complete the given task in milliseconds',
653 'defaultValue': '60000',