From 35b5687d60558bac72c1e53ddd9044584964a3d8 Mon Sep 17 00:00:00 2001 From: aribeiro Date: Tue, 1 Oct 2019 16:47:26 +0100 Subject: Fix for scalar-unit type value. Issue-ID: SDC-323 Change-Id: I7f19a7356e1cd34deca0a168b3cb707ef657b9cb Signed-off-by: aribeiro --- .../mvs.nested.heatServiceTemplate.yaml | 4 ++-- .../expectedoutputfiles/MainServiceTemplate.yaml | 28 ++++++++++++---------- .../ocgmgr_nested_volumeServiceTemplate.yaml | 3 ++- .../nestedundervolume/inputs/ocgapp_01_volume.env | 2 +- .../nestedundervolume/inputs/ocgapp_02_volume.env | 2 +- .../nestedundervolume/inputs/ocgapp_03_volume.env | 2 +- .../nestedundervolume/inputs/ocgapp_04_volume.env | 2 +- .../mvs.nested.heatServiceTemplate.yaml | 4 ++-- 8 files changed, 26 insertions(+), 21 deletions(-) (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested') diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/multiple_resource_groups/expectedoutputfiles/mvs.nested.heatServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/multiple_resource_groups/expectedoutputfiles/mvs.nested.heatServiceTemplate.yaml index 793a9e4291..e5439361d3 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/multiple_resource_groups/expectedoutputfiles/mvs.nested.heatServiceTemplate.yaml +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/multiple_resource_groups/expectedoutputfiles/mvs.nested.heatServiceTemplate.yaml @@ -128,7 +128,7 @@ topology_template: - availability_zone_0 image: get_input: bootimage - size: 35*1024 + size: 35 name: str_replace: template: Z$CLOUD_ZONE_ID$VF_NAME$VF_INSTANCE_NUM$VF_COMPONENT$VM_INSTANCE_NUM-boot-volume @@ -192,7 +192,7 @@ topology_template: - get_input: indx - get_input: - availability_zone_0 - size: 265*1024 + size: 265 name: str_replace: template: Z$CLOUD_ZONE_ID$VF_NAME$VF_INSTANCE_NUM$VF_COMPONENT$VM_INSTANCE_NUM-data-volume diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/expectedoutputfiles/MainServiceTemplate.yaml index aadea7bb86..32a260bbcc 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/expectedoutputfiles/MainServiceTemplate.yaml +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/expectedoutputfiles/MainServiceTemplate.yaml @@ -328,9 +328,9 @@ topology_template: - ocgapp_04 source_type: HEAT param_name: ocgapp_volume_size_3 - type: float + type: scalar-unit.size description: the size of the Cinder volume - default: 400 + default: 400 MB constraints: - in_range: - 100 @@ -388,9 +388,9 @@ topology_template: - ocgapp_03 source_type: HEAT param_name: ocgapp_volume_size_2 - type: float + type: scalar-unit.size description: the size of the Cinder volume - default: 400 + default: 400 MB constraints: - in_range: - 100 @@ -407,9 +407,9 @@ topology_template: - ocgapp_02 source_type: HEAT param_name: ocgapp_volume_size_1 - type: float + type: scalar-unit.size description: the size of the Cinder volume - default: 400 + default: 400 MB constraints: - in_range: - 100 @@ -426,9 +426,9 @@ topology_template: - ocgapp_01 source_type: HEAT param_name: ocgapp_volume_size_0 - type: float + type: scalar-unit.size description: the size of the Cinder volume - default: 400 + default: 400 MB constraints: - in_range: - 100 @@ -1784,7 +1784,8 @@ topology_template: properties: volume_type: get_input: ocgapp_volume_type_1 - size: '(get_input : ocgapp_volume_size_1) * 1024' + size: + get_input: ocgapp_volume_size_1 name: str_replace: template: VF_NAME_STACK_NAME_volume_1 @@ -1798,7 +1799,8 @@ topology_template: properties: volume_type: get_input: ocgapp_volume_type_0 - size: '(get_input : ocgapp_volume_size_0) * 1024' + size: + get_input: ocgapp_volume_size_0 name: str_replace: template: VF_NAME_STACK_NAME_volume_1 @@ -1812,7 +1814,8 @@ topology_template: properties: volume_type: get_input: ocgapp_volume_type_3 - size: '(get_input : ocgapp_volume_size_3) * 1024' + size: + get_input: ocgapp_volume_size_3 name: str_replace: template: VF_NAME_STACK_NAME_volume_3 @@ -1857,7 +1860,8 @@ topology_template: properties: volume_type: get_input: ocgapp_volume_type_2 - size: '(get_input : ocgapp_volume_size_2) * 1024' + size: + get_input: ocgapp_volume_size_2 name: str_replace: template: VF_NAME_STACK_NAME_volume_2 diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/expectedoutputfiles/ocgmgr_nested_volumeServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/expectedoutputfiles/ocgmgr_nested_volumeServiceTemplate.yaml index 0de9369c69..eab88df900 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/expectedoutputfiles/ocgmgr_nested_volumeServiceTemplate.yaml +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/expectedoutputfiles/ocgmgr_nested_volumeServiceTemplate.yaml @@ -50,7 +50,8 @@ topology_template: properties: volume_type: get_input: volume_type - size: '(get_input : size) * 1024' + size: + get_input: size name: str_replace: template: VF_NAME_STACK_NAME_INDEX diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/inputs/ocgapp_01_volume.env b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/inputs/ocgapp_01_volume.env index 369444f6f8..9ff9ce82e3 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/inputs/ocgapp_01_volume.env +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/inputs/ocgapp_01_volume.env @@ -1,5 +1,5 @@ #file version 1.0 parameters: vnf_name: 'zrdm5avocg01' - ocgapp_volume_size_0: 400 + ocgapp_volume_size_0: 400 MB ocgapp_volume_type_0: SF-Default-SSD diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/inputs/ocgapp_02_volume.env b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/inputs/ocgapp_02_volume.env index 37b385fd76..519a6196fc 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/inputs/ocgapp_02_volume.env +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/inputs/ocgapp_02_volume.env @@ -1,5 +1,5 @@ #file version 1.0 parameters: vnf_name: 'zrdm5avocg01' - ocgapp_volume_size_1: 400 + ocgapp_volume_size_1: 400 MB ocgapp_volume_type_1: SF-Default-SSD diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/inputs/ocgapp_03_volume.env b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/inputs/ocgapp_03_volume.env index 35f142884b..d6748066b7 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/inputs/ocgapp_03_volume.env +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/inputs/ocgapp_03_volume.env @@ -1,5 +1,5 @@ #file version 1.0 parameters: vnf_name: 'zrdm5avocg01' - ocgapp_volume_size_2: 400 + ocgapp_volume_size_2: 400 MB ocgapp_volume_type_2: SF-Default-SSD diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/inputs/ocgapp_04_volume.env b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/inputs/ocgapp_04_volume.env index 983d5d2e33..f88bfa722d 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/inputs/ocgapp_04_volume.env +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/nestedundervolume/inputs/ocgapp_04_volume.env @@ -1,5 +1,5 @@ #file version 1.0 parameters: vnf_name: 'zrdm5avocg01' - ocgapp_volume_size_3: 400 + ocgapp_volume_size_3: 400 MB ocgapp_volume_type_3: SF-Default-SSD diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/resource_group_with_dynamic_count/expectedoutputfiles/mvs.nested.heatServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/resource_group_with_dynamic_count/expectedoutputfiles/mvs.nested.heatServiceTemplate.yaml index 793a9e4291..e5439361d3 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/resource_group_with_dynamic_count/expectedoutputfiles/mvs.nested.heatServiceTemplate.yaml +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/heat/nested/resource_group_with_dynamic_count/expectedoutputfiles/mvs.nested.heatServiceTemplate.yaml @@ -128,7 +128,7 @@ topology_template: - availability_zone_0 image: get_input: bootimage - size: 35*1024 + size: 35 name: str_replace: template: Z$CLOUD_ZONE_ID$VF_NAME$VF_INSTANCE_NUM$VF_COMPONENT$VM_INSTANCE_NUM-boot-volume @@ -192,7 +192,7 @@ topology_template: - get_input: indx - get_input: - availability_zone_0 - size: 265*1024 + size: 265 name: str_replace: template: Z$CLOUD_ZONE_ID$VF_NAME$VF_INSTANCE_NUM$VF_COMPONENT$VM_INSTANCE_NUM-data-volume -- cgit 1.2.3-korg