summaryrefslogtreecommitdiffstats
path: root/plugins/features/ccsdk-properties-node/pom.xml
blob: 929169d640d1db47bc0502a8d2b246b46c3b5d36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.onap.ccsdk.parent</groupId>
        <artifactId>single-feature-parent</artifactId>
        <version>2.8.0-SNAPSHOT</version>
        <relativePath/>
    </parent>

    <groupId>org.onap.ccsdk.sli.plugins</groupId>
    <artifactId>ccsdk-properties-node</artifactId>
    <version>1.9.0-SNAPSHOT</version>
    <packaging>feature</packaging>

    <name>ccsdk-sli-plugins :: features :: ${project.artifactId}</name>

    <dependencies>

        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>properties-node-provider</artifactId>
            <version>${project.version}</version>
        </dependency>

    </dependencies>
</project>
> 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498
/**
 * Copyright (c) 2019 Vodafone Group
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import { Factory } from 'rosie';

export const VSPComplianceCheckedFactory = new Factory().attrs({
    complianceChecked: [
        'compliance.compliancetests.sriov',
        'compliance.compliancetests.computeflavors'
    ]
});

export const VSPCertificationCheckedFactory = new Factory().attrs({
    certificationChecked: ['certification.certificationtests.certquery']
});

export const VSPGeneralInfoFactory = new Factory().attrs({
    generalInfo: {
        'certification.certificationtests.certquery': {
            vspId: {
                isValid: false,
                errorText: 'Please Enter a Value in the Mandatory Field'
            },
            vspVersion: {
                isValid: false,
                errorText: 'Please Enter a Value in the Mandatory Field'
            }
        },
        'compliance.compliancetests.sriov': {
            vspId: {
                isValid: false,
                errorText: 'Please Enter a Value in the Mandatory Field'
            },
            vspVersion: {
                isValid: false,
                errorText: 'Please Enter a Value in the Mandatory Field'
            },
            allowSriov: {
                isValid: true,
                errorText: ''
            }
        },
        'compliance.compliancetests.computeflavors': {
            vspId: {
                isValid: false,
                errorText: 'Please Enter a Value in the Mandatory Field'
            },
            vspVersion: {
                isValid: false,
                errorText: 'Please Enter a Value in the Mandatory Field'
            },
            csp: {
                isValid: true,
                errorText: ''
            },
            profilespec: {
                isValid: true,
                errorText: ''
            },
            vnftype: {
                isValid: true,
                errorText: ''
            }
        }
    }
});

export const VSPTestsRequestFactory = new Factory().attrs({
    testsRequest: {
        'compliance.compliancetests.sriov': {
            parameters: {
                vspId: '',
                vspVersion: '',
                allowSriov: 'false'
            },
            scenario: 'compliance',
            testCaseName: 'compliance.compliancetests.sriov',
            testSuiteName: 'compliancetests',
            endpoint: 'vtp'
        },
        'compliance.compliancetests.computeflavors': {
            parameters: {
                vspId: '',
                vspVersion: '',
                csp: 'ZZFT',
                profilespec: 'gsmafnw14',
                vnftype: 'B'
            },
            scenario: 'compliance',
            testCaseName: 'compliance.compliancetests.computeflavors',
            testSuiteName: 'compliancetests',
            endpoint: 'ovp'
        },
        'certification.certificationtests.certquery': {
            parameters: {
                vspId: '',
                vspVersion: ''
            },
            scenario: 'certification',
            testCaseName: 'certification.certificationtests.certquery',
            testSuiteName: 'certificationtests',
            endpoint: 'repository'
        }
    }
});

export const VSPTestsMapFactory = new Factory().attrs({
    vspTestsMap: {
        'compliance.compliancetests.sriov': {
            title: ' SR-IOV Test',
            parameters: [
                {
                    name: 'vspId',
                    description: 'VSP ID',
                    type: 'text',
                    isOptional: false,
                    metadata: {
                        disabled: false,
                        maxLength: '36',
                        minLength: '1'
                    }
                },
                {
                    name: 'vspVersion',
                    description: 'VSP Version',
                    type: 'text',
                    isOptional: false,
                    metadata: {
                        disabled: false,
                        maxLength: '36',
                        minLength: '1'
                    }
                },
                {
                    name: 'allowSriov',
                    description: 'Allow  SR-IOV?',
                    type: 'select',
                    defaultValue: 'false',
                    isOptional: false,
                    metadata: {
                        disabled: true,
                        choices: [
                            {
                                key: 'true',
                                label: 'Yes'
                            },
                            {
                                key: 'false',
                                label: 'No'
                            }
                        ]
                    }
                }
            ],
            endpoint: 'vtp',
            testCaseName: 'compliance.compliancetests.sriov',
            testSuiteName: 'compliancetests',
            scenario: 'compliance'
        },
        'compliance.compliancetests.computeflavors': {
            title: 'Compute Flavours Test',
            parameters: [
                {
                    name: 'vspId',
                    description: 'VSP ID',
                    type: 'text',
                    isOptional: false,
                    metadata: {
                        disabled: false,
                        maxLength: '36',
                        minLength: '1'
                    }
                },
                {
                    name: 'vspVersion',
                    description: 'VSP Version',
                    type: 'text',
                    isOptional: false,
                    metadata: {
                        disabled: false,
                        maxLength: '36',
                        minLength: '1'
                    }
                },
                {
                    name: 'csp',
                    description: 'CSP',
                    type: 'select',
                    defaultValue: 'ZZFT',
                    isOptional: false,
                    metadata: {
                        disabled: false,
                        choices: [
                            {
                                key: 'ZZTF',
                                label: 'Vodafone Group'
                            }
                        ]
                    }
                },
                {
                    name: 'profilespec',
                    description: 'Profile Specification',
                    type: 'select',
                    defaultValue: 'gsmafnw14',
                    isOptional: false,
                    metadata: {
                        disabled: false,
                        choices: [
                            {
                                key: 'gsmafnw14',
                                label: 'GSMA NFVI Profiles'
                            }
                        ]
                    }
                },
                {
                    name: 'vnftype',
                    description: 'VNF Type',
                    type: 'select',
                    defaultValue: 'B',
                    isOptional: false,
                    metadata: {
                        disabled: false,
                        choices: [
                            {
                                key: 'B',
                                label: 'Basic'
                            },
                            {
                                key: 'N',
                                label: 'Network Intensive'
                            },
                            {
                                key: 'C',
                                label: 'Compute Intensive'
                            }
                        ]
                    }
                }
            ],
            endpoint: 'ovp',
            testCaseName: 'compliance.compliancetests.computeflavors',
            testSuiteName: 'compliancetests',
            scenario: 'compliance'
        },
        'certification.certificationtests.certquery': {
            title: 'Other Certifications',
            parameters: [
                {
                    name: 'vspId',
                    description: 'VSP ID',
                    type: 'text',
                    defaultValue: '',
                    isOptional: true,
                    metadata: {
                        maxLength: 36,
                        minLength: 1,
                        disabled: true
                    }
                },
                {
                    name: 'vspVersion',
                    description: 'Previous VSP Version',
                    type: 'text',
                    defaultValue: '',
                    isOptional: true,
                    metadata: {
                        maxLength: 36,
                        minLength: 1,
                        disabled: true
                    }
                }
            ],
            endpoint: 'repository',
            testCaseName: 'certification.certificationtests.certquery',
            testSuiteName: 'certificationtests',
            scenario: 'certification'
        }
    }
});

export const VSPChecksFactory = new Factory().attrs({
    name: 'root',
    description: 'root',
    children: [
        {
            name: 'certification',
            description: 'Available Certifications Query',
            children: [
                {
                    name: 'certificationtests',
                    description: 'Additional Certification',
                    tests: [
                        {
                            testCaseName:
                                'certification.certificationtests.certquery',
                            testSuiteName: 'certificationtests',
                            description: 'Other Certifications',
                            author: 'jg@example.com',
                            inputs: [
                                {
                                    name: 'vspId',
                                    description: 'VSP ID',
                                    type: 'text',
                                    defaultValue: '',
                                    isOptional: true,
                                    metadata: {
                                        maxLength: 36,
                                        minLength: 1,
                                        disabled: true
                                    }
                                },
                                {
                                    name: 'vspVersion',
                                    description: 'Previous VSP Version',
                                    type: 'text',
                                    defaultValue: '',
                                    isOptional: true,
                                    metadata: {
                                        maxLength: 36,
                                        minLength: 1,
                                        disabled: true
                                    }
                                }
                            ],
                            endpoint: 'repository'
                        }
                    ]
                }
            ]
        },
        {
            name: 'compliance',
            description: 'Available ComplianceChecks',
            tests: [],
            children: [
                {
                    name: 'compliancetests',
                    description: 'Compliance Tests',
                    tests: [
                        {
                            testCaseName: 'compliance.compliancetests.sriov',
                            testSuiteName: 'compliancetests',
                            description: ' SR-IOV Test',
                            author: 'Jim',
                            inputs: [
                                {
                                    name: 'vspId',
                                    description: 'VSP ID',
                                    type: 'text',
                                    isOptional: false,
                                    metadata: {
                                        disabled: false,
                                        maxLength: '36',
                                        minLength: '1'
                                    }
                                },
                                {
                                    name: 'vspVersion',
                                    description: 'VSP Version',
                                    type: 'text',
                                    isOptional: false,
                                    metadata: {
                                        disabled: false,
                                        maxLength: '36',
                                        minLength: '1'
                                    }
                                },
                                {
                                    name: 'allowSriov',
                                    description: 'Allow  SR-IOV?',
                                    type: 'select',
                                    defaultValue: 'false',
                                    isOptional: false,
                                    metadata: {
                                        disabled: true,
                                        choices: [
                                            {
                                                key: 'true',
                                                label: 'Yes'
                                            },
                                            {
                                                key: 'false',
                                                label: 'No'
                                            }
                                        ]
                                    }
                                }
                            ],
                            endpoint: 'vtp'
                        },
                        {
                            testCaseName:
                                'compliance.compliancetests.computeflavors',
                            testSuiteName: 'compliancetests',
                            description: 'Compute Flavours Test',
                            author: 'Jim',
                            inputs: [
                                {
                                    name: 'vspId',
                                    description: 'VSP ID',
                                    type: 'text',
                                    isOptional: false,
                                    metadata: {
                                        disabled: false,
                                        maxLength: '36',
                                        minLength: '1'
                                    }
                                },
                                {
                                    name: 'vspVersion',
                                    description: 'VSP Version',
                                    type: 'text',
                                    isOptional: false,
                                    metadata: {
                                        disabled: false,
                                        maxLength: '36',
                                        minLength: '1'
                                    }
                                },
                                {
                                    name: 'csp',
                                    description: 'CSP',
                                    type: 'select',
                                    defaultValue: 'ZZFT',
                                    isOptional: false,
                                    metadata: {
                                        disabled: false,
                                        choices: [
                                            {
                                                key: 'ZZTF',
                                                label: 'Vodafone Group'
                                            }
                                        ]
                                    }
                                },
                                {
                                    name: 'profilespec',
                                    description: 'Profile Specification',
                                    type: 'select',
                                    defaultValue: 'gsmafnw14',
                                    isOptional: false,
                                    metadata: {
                                        disabled: false,
                                        choices: [
                                            {
                                                key: 'gsmafnw14',
                                                label: 'GSMA NFVI Profiles'
                                            }
                                        ]
                                    }
                                },
                                {
                                    name: 'vnftype',
                                    description: 'VNF Type',
                                    type: 'select',
                                    defaultValue: 'B',
                                    isOptional: false,
                                    metadata: {
                                        disabled: false,
                                        choices: [
                                            {
                                                key: 'B',
                                                label: 'Basic'
                                            },
                                            {
                                                key: 'N',
                                                label: 'Network Intensive'
                                            },
                                            {
                                                key: 'C',
                                                label: 'Compute Intensive'
                                            }
                                        ]
                                    }
                                }
                            ],
                            endpoint: 'ovp'
                        }
                    ]
                }
            ]
        }
    ]
});