diff options
author | stark, steven <steven.stark@att.com> | 2019-01-28 14:59:01 -0800 |
---|---|---|
committer | stark, steven <steven.stark@att.com> | 2019-01-29 08:03:41 -0800 |
commit | 48a07b6942d3956666d30947372653feb702fdae (patch) | |
tree | 5a5fc3135f2703ad19543b78e661ea954e98bb33 /ice_validator/tests/test_contrail_resource_id.py | |
parent | 43130f8b173d9053ad4f56f264376851d3fb890c (diff) |
[VVP] stand alone tool, script updates
1) Validation script updates:
Various bug fixes and script enhancements
New tests for:
R-18683
R-94669
R-304011
R-01455
R-86476
R-708564
R-85734
R-18683
R-94669
R-304011
R-01455
R-86476
R-86476
R-589037
Removed tests for:
R-75202
R-62954
R-22441
R-49177
R-16576
R-86237
R-44491
R-70757
R-01896
R-26124
2) Stand Alone tool introduced
3) Added optional "categories" capability
Change-Id: I193cd5c267750791d97b350e91fc36faa72d8d5f
Issue-ID: VVP-143
Signed-off-by: stark, steven <steven.stark@att.com>
Diffstat (limited to 'ice_validator/tests/test_contrail_resource_id.py')
-rw-r--r-- | ice_validator/tests/test_contrail_resource_id.py | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/ice_validator/tests/test_contrail_resource_id.py b/ice_validator/tests/test_contrail_resource_id.py index 7667600..88cc2f0 100644 --- a/ice_validator/tests/test_contrail_resource_id.py +++ b/ice_validator/tests/test_contrail_resource_id.py @@ -2,7 +2,7 @@ # ============LICENSE_START==================================================== # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# Copyright © 2019 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -43,17 +43,17 @@ contrail """ import pytest -from .structures import ContrailV2InterfaceRouteTable -from .structures import ContrailV2NetworkIpam -from .structures import ContrailV2PortTuple -from .structures import ContrailV2ServiceHealthCheck -from .structures import ContrailV2ServiceTemplate +from .structures import ContrailV2InterfaceRouteTableProcessor +from .structures import ContrailV2NetworkIpamProcessor +from .structures import ContrailV2PortTupleProcessor +from .structures import ContrailV2ServiceHealthCheckProcessor +from .structures import ContrailV2ServiceTemplateProcessor from .utils.network_roles import get_network_roles from .utils.vm_types import get_vm_types from .structures import Heat from .helpers import validates -VERSION = "1.0.1" +VERSION = "2.0.0" def run_test(heat_template, contrail_class, get_parts, part_name): @@ -98,7 +98,10 @@ def test_contrail_interfaceroutetable_resource_id(heat_template): contain the ``{network-role}``. """ run_test( - heat_template, ContrailV2InterfaceRouteTable, get_network_roles, "network_role" + heat_template, + ContrailV2InterfaceRouteTableProcessor, + get_network_roles, + "network_role", ) @@ -111,7 +114,9 @@ def test_contrail_networkipam_resource_id(heat_template): **MUST** contain the ``{network-role}``. """ - run_test(heat_template, ContrailV2NetworkIpam, get_network_roles, "network_role") + run_test( + heat_template, ContrailV2NetworkIpamProcessor, get_network_roles, "network_role" + ) @validates("R-20065") @@ -123,7 +128,7 @@ def test_contrail_porttuple_resource_id(heat_template): **MUST** contain the ``{vm-type}``. """ - run_test(heat_template, ContrailV2PortTuple, get_vm_types, "vm_type") + run_test(heat_template, ContrailV2PortTupleProcessor, get_vm_types, "vm_type") @validates("R-76014") @@ -135,7 +140,9 @@ def test_contrail_servicehealthcheck_resource_id(heat_template): **MUST** contain the ``{vm-type}``. """ - run_test(heat_template, ContrailV2ServiceHealthCheck, get_vm_types, "vm_type") + run_test( + heat_template, ContrailV2ServiceHealthCheckProcessor, get_vm_types, "vm_type" + ) @validates("R-16437") @@ -147,4 +154,4 @@ def test_contrail_servicetemplate_resource_id(heat_template): **MUST** contain the ``{vm-type}``. """ - run_test(heat_template, ContrailV2ServiceTemplate, get_vm_types, "vm_type") + run_test(heat_template, ContrailV2ServiceTemplateProcessor, get_vm_types, "vm_type") |