aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator/tests/fixtures
diff options
context:
space:
mode:
authorstark, steven <steven.stark@att.com>2018-12-17 12:43:02 -0800
committerstark, steven <steven.stark@att.com>2018-12-17 13:04:00 -0800
commit1f4df7c7ad27b23773ad9cdbe4db1632ce388cf1 (patch)
tree8092104f8be23051ff81c9f71ee34116df4d33ba /ice_validator/tests/fixtures
parentca9085f0f77d442d3741a8c754e65cc45b6a318d (diff)
[VVP] updating validation scripts in dublin
- adding backlog of new validation scripts for dublin - updating existing tests - removing outdated tests Issue-ID: VVP-123 Change-Id: Ib8260889ac957c1dd28d8ede450fc8edc6fb0ec0 Signed-off-by: stark, steven <steven.stark@att.com>
Diffstat (limited to 'ice_validator/tests/fixtures')
-rw-r--r--ice_validator/tests/fixtures/test_all_parameters_used_in_template/fail/fail.yaml15
-rw-r--r--ice_validator/tests/fixtures/test_all_parameters_used_in_template/pass/pass.yaml19
-rw-r--r--ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/fail/fail.yaml55
-rw-r--r--ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/fail/nested.yaml46
-rw-r--r--ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/pass/nested.yaml46
-rw-r--r--ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/pass/pass.yaml55
-rw-r--r--ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail0.yaml51
-rw-r--r--ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail1.yaml54
-rw-r--r--ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail2.yaml56
-rw-r--r--ice_validator/tests/fixtures/test_contrail_fqdn/pass/pass0.yaml56
-rw-r--r--ice_validator/tests/fixtures/test_contrail_instance_ip_resource_id/fail/fail0.yaml75
-rw-r--r--ice_validator/tests/fixtures/test_contrail_instance_ip_resource_id/pass/pass0.yaml78
-rw-r--r--ice_validator/tests/fixtures/test_contrail_irt_routes/fail/fail0.yaml55
-rw-r--r--ice_validator/tests/fixtures/test_contrail_irt_routes/pass/pass0.yaml55
-rw-r--r--ice_validator/tests/fixtures/test_contrail_resource_id/fail/fail0.yaml70
-rw-r--r--ice_validator/tests/fixtures/test_contrail_resource_id/pass/pass0.yaml70
-rw-r--r--ice_validator/tests/fixtures/test_contrail_vmi_resource_id/fail/fail0.yaml75
-rw-r--r--ice_validator/tests/fixtures/test_contrail_vmi_resource_id/pass/pass0.yaml75
-rw-r--r--ice_validator/tests/fixtures/test_contrail_vn_resource_id/fail/fail0.yaml56
-rw-r--r--ice_validator/tests/fixtures/test_contrail_vn_resource_id/pass/pass0.yaml50
-rw-r--r--ice_validator/tests/fixtures/test_env_parameters_defined_in_template/fail/fail.env3
-rw-r--r--ice_validator/tests/fixtures/test_env_parameters_defined_in_template/fail/fail.yaml4
-rw-r--r--ice_validator/tests/fixtures/test_env_parameters_defined_in_template/pass/pass.env2
-rw-r--r--ice_validator/tests/fixtures/test_env_parameters_defined_in_template/pass/pass.yaml4
-rw-r--r--ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.env5
-rw-r--r--ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.yaml26
-rw-r--r--ice_validator/tests/fixtures/test_filename_is_vmtype_dot_yaml/fail/testvm.yaml51
-rw-r--r--ice_validator/tests/fixtures/test_filename_is_vmtype_dot_yaml/pass/test_vm.yaml51
-rw-r--r--ice_validator/tests/fixtures/test_files_in_flat_dir/fail/nested/test2.yaml36
-rw-r--r--ice_validator/tests/fixtures/test_files_in_flat_dir/fail/test.yaml36
-rw-r--r--ice_validator/tests/fixtures/test_files_in_flat_dir/pass/test.yaml36
-rw-r--r--ice_validator/tests/fixtures/test_files_in_flat_dir/pass/test2.yaml36
-rw-r--r--ice_validator/tests/fixtures/test_forbidden_resources/fail/fail1.yaml49
-rw-r--r--ice_validator/tests/fixtures/test_forbidden_resources/pass/pass0.yaml49
-rw-r--r--ice_validator/tests/fixtures/test_get_attr_usage/fail/fail_get_attr.yaml60
-rw-r--r--ice_validator/tests/fixtures/test_get_attr_usage/fail/nested.yaml54
-rw-r--r--ice_validator/tests/fixtures/test_get_attr_usage/pass/nested.yaml54
-rw-r--r--ice_validator/tests/fixtures/test_get_attr_usage/pass/pass_get_attr.yaml60
-rw-r--r--ice_validator/tests/fixtures/test_get_file_only_reference_local_files/pass/new.txt0
-rw-r--r--ice_validator/tests/fixtures/test_get_file_only_reference_local_files/pass/user_data.sh0
-rw-r--r--ice_validator/tests/fixtures/test_initial_configuration/pass/good_yaml_eg.yaml48
-rw-r--r--ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/fail.yaml61
-rw-r--r--ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/fail2.yaml55
-rw-r--r--ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/nested.yaml46
-rw-r--r--ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/nested.yaml46
-rw-r--r--ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/pass.yaml61
-rw-r--r--ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/pass2.yaml55
-rw-r--r--ice_validator/tests/fixtures/test_nested_parameter_args/fail/fail0.yaml59
-rw-r--r--ice_validator/tests/fixtures/test_nested_parameter_args/pass/pass0.yaml59
-rw-r--r--ice_validator/tests/fixtures/test_nested_parameters/fail/heat_template.yaml25
-rw-r--r--ice_validator/tests/fixtures/test_nested_template_parameters/fail/bad-heat_template.yaml59
-rw-r--r--ice_validator/tests/fixtures/test_nested_template_parameters/pass/heat_template.yaml62
-rw-r--r--ice_validator/tests/fixtures/test_nested_template_parameters/pass/nested_template_1.yaml (renamed from ice_validator/tests/fixtures/test_nested_parameters/fail/nested_template_1.yaml)8
-rw-r--r--ice_validator/tests/fixtures/test_nesting_level/fail/bad-level0.yaml (renamed from ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/fail/invalid_base_naming_for_fixed_ips.yaml)36
-rw-r--r--ice_validator/tests/fixtures/test_nesting_level/fail/bad-level1.yaml (renamed from ice_validator/tests/fixtures/test_volume_format_outputs/fail/use_get_param_volume.yml)34
-rw-r--r--ice_validator/tests/fixtures/test_nesting_level/fail/bad-level2.yaml (renamed from ice_validator/tests/fixtures/test_volume_format_outputs/pass/valid_template_volume.yml)41
-rw-r--r--ice_validator/tests/fixtures/test_nesting_level/fail/bad-level3.yaml60
-rw-r--r--ice_validator/tests/fixtures/test_nesting_level/pass/level0.yaml51
-rw-r--r--ice_validator/tests/fixtures/test_nesting_level/pass/level1.yaml63
-rw-r--r--ice_validator/tests/fixtures/test_nesting_level/pass/level2.yaml (renamed from ice_validator/tests/fixtures/test_volume_format_outputs/fail/no_value_volume.yaml)42
-rw-r--r--ice_validator/tests/fixtures/test_nesting_level/pass/level3.yaml60
-rw-r--r--ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_0.yaml50
-rw-r--r--ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_1.yaml65
-rw-r--r--ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_2.yaml60
-rw-r--r--ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_0.yaml50
-rw-r--r--ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_1.yaml64
-rw-r--r--ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_2.yaml60
-rw-r--r--ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_3.yaml63
-rw-r--r--ice_validator/tests/fixtures/test_network_format/fail/invalid_naming_used_for_network.yaml14
-rw-r--r--ice_validator/tests/fixtures/test_network_format/pass/valid_heat_template.yaml8
-rw-r--r--ice_validator/tests/fixtures/test_neutron_net_resource_id/fail/fail.yaml53
-rw-r--r--ice_validator/tests/fixtures/test_neutron_net_resource_id/pass/pass.yaml53
-rw-r--r--ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail0.yaml86
-rw-r--r--ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail1.yaml86
-rw-r--r--ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail2.yaml86
-rw-r--r--ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail3.yaml86
-rw-r--r--ice_validator/tests/fixtures/test_neutron_port_addresses/fail/other0.yaml53
-rw-r--r--ice_validator/tests/fixtures/test_neutron_port_addresses/pass/other0.yaml55
-rw-r--r--ice_validator/tests/fixtures/test_neutron_port_addresses/pass/pass0.yaml (renamed from ice_validator/tests/fixtures/test_nova_servers_index/fail/fail2.yaml)71
-rw-r--r--ice_validator/tests/fixtures/test_neutron_port_fixed_ips/fail/fail0.yaml97
-rw-r--r--ice_validator/tests/fixtures/test_neutron_port_fixed_ips/fail/fail1.yaml97
-rw-r--r--ice_validator/tests/fixtures/test_neutron_port_fixed_ips/pass/pass0.yaml95
-rw-r--r--ice_validator/tests/fixtures/test_neutron_port_fixed_ips/pass/pass0_base.yaml49
-rw-r--r--ice_validator/tests/fixtures/test_neutron_port_internal_network/fail/fail0.yaml100
-rw-r--r--ice_validator/tests/fixtures/test_neutron_port_internal_network/fail/fail0_base.yaml63
-rw-r--r--ice_validator/tests/fixtures/test_neutron_port_internal_network/pass/pass0.yaml100
-rw-r--r--ice_validator/tests/fixtures/test_neutron_port_internal_network/pass/pass0_base.yaml63
-rw-r--r--ice_validator/tests/fixtures/test_neutron_port_network_parameter/fail/fail.yaml16
-rw-r--r--ice_validator/tests/fixtures/test_neutron_port_network_parameter/pass/pass.yaml16
-rw-r--r--ice_validator/tests/fixtures/test_no_http_resources/fail/fail.yaml94
-rw-r--r--ice_validator/tests/fixtures/test_no_http_resources/pass/valid_template.yaml (renamed from ice_validator/tests/fixtures/test_reserve_port_fixed_ips_format/fail/invalid_base_naming_for_fixed_ips.yaml)73
-rw-r--r--ice_validator/tests/fixtures/test_no_image_files/fail/image.ami0
-rw-r--r--ice_validator/tests/fixtures/test_no_image_files/fail/image2.ISO0
-rw-r--r--ice_validator/tests/fixtures/test_no_image_files/fail/pass.sh1
-rw-r--r--ice_validator/tests/fixtures/test_no_image_files/fail/pass.yaml16
-rw-r--r--ice_validator/tests/fixtures/test_no_image_files/fail/settings1
-rw-r--r--ice_validator/tests/fixtures/test_no_image_files/pass/pass.sh1
-rw-r--r--ice_validator/tests/fixtures/test_no_image_files/pass/pass.yaml16
-rw-r--r--ice_validator/tests/fixtures/test_no_image_files/pass/settings1
-rw-r--r--ice_validator/tests/fixtures/test_non_server_name/fail/fail0.yaml126
-rw-r--r--ice_validator/tests/fixtures/test_non_server_name/fail/fail1.yaml129
-rw-r--r--ice_validator/tests/fixtures/test_non_server_name/fail/fail2.yaml133
-rw-r--r--ice_validator/tests/fixtures/test_non_server_name/fail/fail3.yaml135
-rw-r--r--ice_validator/tests/fixtures/test_non_server_name/pass/pass0.yaml135
-rw-r--r--ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/fail.yaml56
-rw-r--r--ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/fail2.yaml55
-rw-r--r--ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/nested.yaml46
-rw-r--r--ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/nested.yaml46
-rw-r--r--ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/pass.yaml51
-rw-r--r--ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/pass2.yaml54
-rw-r--r--ice_validator/tests/fixtures/test_nova_server_resource_id/fail/fail.yaml56
-rw-r--r--ice_validator/tests/fixtures/test_nova_server_resource_id/pass/pass.yaml56
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet/fail/fail0.yaml55
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet/pass/pass.yaml (renamed from ice_validator/tests/fixtures/test_nova_servers_index/fail/fail0.yaml)28
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail0.yaml69
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail1.yaml69
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail2.yaml69
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail3.yaml69
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail4.yaml69
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail5.yaml69
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail6.yaml64
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/pass/pass0.yaml69
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/pass/pass1.yaml66
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail0.yaml93
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail0c.yaml91
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail1.yaml93
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail1c.yaml91
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail2.yaml93
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail2c.yaml91
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail3.yaml93
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail4.yaml93
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail5.yaml93
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail6.yaml93
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail8.yaml93
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail9.yaml93
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_host/pass/pass0.yaml93
-rw-r--r--ice_validator/tests/fixtures/test_nova_servers_valet_host/pass/pass1.yaml91
-rw-r--r--ice_validator/tests/fixtures/test_port_connected_to_multiple_servers/fail/base_mod.yaml21
-rw-r--r--ice_validator/tests/fixtures/test_port_connected_to_multiple_servers/pass/base_mod.yaml21
-rw-r--r--ice_validator/tests/fixtures/test_port_resource_ids/pass/valid_template.yaml9
-rw-r--r--ice_validator/tests/fixtures/test_required_parameters_no_constraints/fail/heat_template_required_parameters_with_constraints.yaml40
-rw-r--r--ice_validator/tests/fixtures/test_reserve_port_fixed_ips_format/pass/valid_base_heat_template.yaml69
-rw-r--r--ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/fail/invalid_base_heat_template_1.yaml90
-rw-r--r--ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/fail/invalid_base_heat_template_2.yaml95
-rw-r--r--ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/pass/valid_base_heat_template_1.yaml94
-rw-r--r--ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/pass/valid_base_heat_template_2.yaml76
-rw-r--r--ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_1.yaml69
-rw-r--r--ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_2.yaml69
-rw-r--r--ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_3.yaml69
-rw-r--r--ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_module_heat_template.yaml69
-rw-r--r--ice_validator/tests/fixtures/test_resource_indices/fail/fail0.yaml84
-rw-r--r--ice_validator/tests/fixtures/test_resource_indices/fail/nested.yaml55
-rw-r--r--ice_validator/tests/fixtures/test_resource_indices/pass/nested.yaml (renamed from ice_validator/tests/fixtures/test_nova_servers_index/fail/fail1.yaml)18
-rw-r--r--ice_validator/tests/fixtures/test_resource_indices/pass/pass0.yaml (renamed from ice_validator/tests/fixtures/test_nova_servers_index/pass/pass0.yaml)13
-rw-r--r--ice_validator/tests/fixtures/test_server_parameters/fail/fail.yaml72
-rw-r--r--ice_validator/tests/fixtures/test_server_parameters/pass/pass.yaml72
-rw-r--r--ice_validator/tests/fixtures/test_servers_metadata_use_get_param/fail/not_using_get_param.yaml16
-rw-r--r--ice_validator/tests/fixtures/test_software_config_resource_id/fail/fail.yaml56
-rw-r--r--ice_validator/tests/fixtures/test_software_config_resource_id/pass/pass.yaml56
-rw-r--r--ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/fail/get_param_not_used_for_subnet.yaml86
-rw-r--r--ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/fail/get_resource_used_for_external_network.yaml86
-rw-r--r--ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/pass/valid_heat_template.yaml86
-rw-r--r--ice_validator/tests/fixtures/test_unique_name_resources/fail/heat_template_1.yaml108
-rw-r--r--ice_validator/tests/fixtures/test_unique_name_resources/fail/heat_template_2_identical_to_heat_template_2.yaml108
-rw-r--r--ice_validator/tests/fixtures/test_unique_name_resources/pass/unique_resource_template_1.yml108
-rw-r--r--ice_validator/tests/fixtures/test_unique_name_resources/pass/unique_resource_template_2.yml108
-rw-r--r--ice_validator/tests/fixtures/test_vm_type_case/fail/fail.yaml70
-rw-r--r--ice_validator/tests/fixtures/test_vm_type_case/pass/pass.yaml70
-rw-r--r--ice_validator/tests/fixtures/test_volume_module_naming/fail/module_volumes.yaml52
-rw-r--r--ice_validator/tests/fixtures/test_volume_module_naming/fail/nested_volume1.yaml40
-rw-r--r--ice_validator/tests/fixtures/test_volume_module_naming/fail/nested_volume2.yaml40
-rw-r--r--ice_validator/tests/fixtures/test_volume_module_naming/pass/module2_base.yaml55
-rw-r--r--ice_validator/tests/fixtures/test_volume_module_naming/pass/module_volume.yaml52
-rw-r--r--ice_validator/tests/fixtures/test_volume_module_naming/pass/nested_volume1.yaml40
-rw-r--r--ice_validator/tests/fixtures/test_volume_module_naming/pass/nested_volume2.yaml40
175 files changed, 8574 insertions, 1597 deletions
diff --git a/ice_validator/tests/fixtures/test_all_parameters_used_in_template/fail/fail.yaml b/ice_validator/tests/fixtures/test_all_parameters_used_in_template/fail/fail.yaml
new file mode 100644
index 0000000..6064c91
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_all_parameters_used_in_template/fail/fail.yaml
@@ -0,0 +1,15 @@
+heat_template_version: 2015-04-30
+
+description: fdsafsfsa
+
+parameters:
+
+ test_paramassd:
+ type: string
+
+resources:
+
+ test_resource:
+ type: test::resource
+ properties:
+ test_param: { get_param: test_param }
diff --git a/ice_validator/tests/fixtures/test_all_parameters_used_in_template/pass/pass.yaml b/ice_validator/tests/fixtures/test_all_parameters_used_in_template/pass/pass.yaml
new file mode 100644
index 0000000..ee9311f
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_all_parameters_used_in_template/pass/pass.yaml
@@ -0,0 +1,19 @@
+heat_template_version: 2015-04-30
+
+description: fdsafsfsa
+
+parameters:
+
+ test_param:
+ type: string
+
+ availability_zone_1:
+ type: string
+ description: najsf
+
+resources:
+
+ test_resource:
+ type: test::resource
+ properties:
+ test_param: { get_param: test_param }
diff --git a/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/fail/fail.yaml b/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/fail/fail.yaml
new file mode 100644
index 0000000..a6c00c3
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/fail/fail.yaml
@@ -0,0 +1,55 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+parameters:
+ availability_zone_0:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+ availability_zone_3:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+resources:
+ vm1_server_0:
+ type: nested.yaml \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/fail/nested.yaml b/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/fail/nested.yaml
new file mode 100644
index 0000000..910cdf3
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/fail/nested.yaml
@@ -0,0 +1,46 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+parameters:
+ availability_zone_9:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
diff --git a/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/pass/nested.yaml b/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/pass/nested.yaml
new file mode 100644
index 0000000..910cdf3
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/pass/nested.yaml
@@ -0,0 +1,46 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+parameters:
+ availability_zone_9:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
diff --git a/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/pass/pass.yaml b/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/pass/pass.yaml
new file mode 100644
index 0000000..100376b
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/pass/pass.yaml
@@ -0,0 +1,55 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+parameters:
+ availability_zone_0:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+ availability_zone_1:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+resources:
+ vm1_server_0:
+ type: nested.yaml \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail0.yaml b/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail0.yaml
new file mode 100644
index 0000000..6d410e9
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail0.yaml
@@ -0,0 +1,51 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::ContrailV2::VirtualMachineInterface
+ properties:
+ virtual_network_refs: []
+
diff --git a/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail1.yaml b/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail1.yaml
new file mode 100644
index 0000000..8e1aa10
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail1.yaml
@@ -0,0 +1,54 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::ContrailV2::VirtualMachineInterface
+ properties:
+ virtual_network_refs:
+ - get_param: huey
+ - get_param: dewey
+ - get_param: bialy_net_fqdn
+
diff --git a/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail2.yaml b/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail2.yaml
new file mode 100644
index 0000000..7254540
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail2.yaml
@@ -0,0 +1,56 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+ bialy_net_fqdn:
+ type: String
+
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::ContrailV2::VirtualMachineInterface
+ properties:
+ virtual_network_refs:
+ - get_param: huey
+ - get_param: dewey
+ - get_param: bialy_net_fqdn
+
diff --git a/ice_validator/tests/fixtures/test_contrail_fqdn/pass/pass0.yaml b/ice_validator/tests/fixtures/test_contrail_fqdn/pass/pass0.yaml
new file mode 100644
index 0000000..311fb21
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_contrail_fqdn/pass/pass0.yaml
@@ -0,0 +1,56 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+ bialy_net_fqdn:
+ type: string
+
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::ContrailV2::VirtualMachineInterface
+ properties:
+ virtual_network_refs:
+ - get_param: huey
+ - get_param: dewey
+ - get_param: bialy_net_fqdn
+
diff --git a/ice_validator/tests/fixtures/test_contrail_instance_ip_resource_id/fail/fail0.yaml b/ice_validator/tests/fixtures/test_contrail_instance_ip_resource_id/fail/fail0.yaml
new file mode 100644
index 0000000..0df9a0b
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_contrail_instance_ip_resource_id/fail/fail0.yaml
@@ -0,0 +1,75 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+
+resources:
+
+ vm_typeS_0_bialy_port_0:
+ type: OS::ContrailV2::InstanceIp
+ properties:
+ virtual_network_refs:
+ - get_param: huey_int_hooey
+
+ vm_typeX_0_bialy_port_0:
+ type: OS::ContrailV2::InstanceIp
+ properties:
+ virtual_network_refs:
+ - get_param: huey_int_hooey
+
+ vm_typeX_0_bialy_port_1:
+ type: OS::ContrailV2::InstanceIp
+ properties:
+ virtual_network_refs:
+ - get_param: x_subint_dewey
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::ContrailV2::InstanceIp
+ properties:
+ virtual_network_refs:
+ - get_resource: dewey
+
+ vm_typeX_0_bialy_port_3:
+ type: OS::ContrailV2::InstanceIp
+ properties:
+ virtual_network_refs:
+ - get_param: dewey
+
diff --git a/ice_validator/tests/fixtures/test_contrail_instance_ip_resource_id/pass/pass0.yaml b/ice_validator/tests/fixtures/test_contrail_instance_ip_resource_id/pass/pass0.yaml
new file mode 100644
index 0000000..b0f10b0
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_contrail_instance_ip_resource_id/pass/pass0.yaml
@@ -0,0 +1,78 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+#
+#(?P<vm_type>.+)_(?P<vm_type_index>\\d+)_int_(?P<network_role>.+)_vmi_(?P<vmi_index>\\d+)_v6_IP_(?P<index>\\d+)$
+#
+
+resources:
+
+ vm_typeS_0_int_bialy_vmi_0_IP_0:
+ type: OS::ContrailV2::InstanceIp
+ properties:
+ virtual_network_refs:
+ - get_param: huey_int_hooey
+
+ vm_typeS_0_int_bialy_vmi_0_v6_IP_0:
+ type: OS::ContrailV2::InstanceIp
+ properties:
+ virtual_network_refs:
+ - get_param: huey_int_hooey
+
+ vm_typeS_0_subint_bialy_vmi_0_IP_1:
+ type: OS::ContrailV2::InstanceIp
+ properties:
+ virtual_network_refs:
+ - get_param: x_subint_dewey
+
+ vm_typeS_0_int_bialy_vmi_0_IP_2:
+ type: OS::ContrailV2::InstanceIp
+ properties:
+ virtual_network_refs:
+ - get_resource: dewey
+
+ vm_typeS_0_bialy_vmi_0_IP_2:
+ type: OS::ContrailV2::InstanceIp
+ properties:
+ virtual_network_refs:
+ - get_param: dewey
+
diff --git a/ice_validator/tests/fixtures/test_contrail_irt_routes/fail/fail0.yaml b/ice_validator/tests/fixtures/test_contrail_irt_routes/fail/fail0.yaml
new file mode 100644
index 0000000..2145f3c
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_contrail_irt_routes/fail/fail0.yaml
@@ -0,0 +1,55 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+ bialy_net_fqdn:
+ type: string
+
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::ContrailV2::InterfaceRouteTable
+ properties:
+ interface_route_table_routes:
+ interface_route_table_routes_route:
+ get_param: bialy_net_fqdn
+
diff --git a/ice_validator/tests/fixtures/test_contrail_irt_routes/pass/pass0.yaml b/ice_validator/tests/fixtures/test_contrail_irt_routes/pass/pass0.yaml
new file mode 100644
index 0000000..34569f5
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_contrail_irt_routes/pass/pass0.yaml
@@ -0,0 +1,55 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+ big_bialy_route_prefixes:
+ type: json
+
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::ContrailV2::InterfaceRouteTable
+ properties:
+ interface_route_table_routes:
+ interface_route_table_routes_route:
+ get_param: big_bialy_route_prefixes
+
diff --git a/ice_validator/tests/fixtures/test_contrail_resource_id/fail/fail0.yaml b/ice_validator/tests/fixtures/test_contrail_resource_id/fail/fail0.yaml
new file mode 100644
index 0000000..2bee0c5
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_contrail_resource_id/fail/fail0.yaml
@@ -0,0 +1,70 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+resources:
+ vm_typeX_b_server_0:
+ type: OS::Nova::Server
+ properties:
+ availability_zone: { get_param: availability_zone_0 }
+ name: { get_param: vm_typex_name_0 }
+
+ vm_typeX_0_bialy_port_0:
+ type: OS::Neutron::Port
+ properties:
+ network:
+ get_param: int_Bialy_net_name
+
+ vm_typeX_0_bialy_port_1:
+ type: OS::ContrailV2::InterfaceRouteTable
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::ContrailV2::NetworkIpam
+
+ vm_typeX_0_bialy_port_3:
+ type: OS::ContrailV2::PortTuple
+
+ vm_typeX_0_bialy_port_4:
+ type: OS::ContrailV2::ServiceHealthCheck
+
+ vm_typeX_0_bialy_port_5:
+ type: OS::ContrailV2::ServiceTemplate
+
diff --git a/ice_validator/tests/fixtures/test_contrail_resource_id/pass/pass0.yaml b/ice_validator/tests/fixtures/test_contrail_resource_id/pass/pass0.yaml
new file mode 100644
index 0000000..c6d6324
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_contrail_resource_id/pass/pass0.yaml
@@ -0,0 +1,70 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+resources:
+ vm_typeX_b_server_0:
+ type: OS::Nova::Server
+ properties:
+ availability_zone: { get_param: availability_zone_0 }
+ name: { get_param: vm_typeX_name_0 }
+
+ vm_typeX_0_bialy_port_0:
+ type: OS::Neutron::Port
+ properties:
+ network:
+ get_param: int_bialy_net_name
+
+ vm_typeX_0_bialy_port_1:
+ type: OS::ContrailV2::InterfaceRouteTable
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::ContrailV2::NetworkIpam
+
+ vm_typeX_0_bialy_port_3:
+ type: OS::ContrailV2::PortTuple
+
+ vm_typeX_0_bialy_port_4:
+ type: OS::ContrailV2::ServiceHealthCheck
+
+ vm_typeX_0_bialy_port_5:
+ type: OS::ContrailV2::ServiceTemplate
+
diff --git a/ice_validator/tests/fixtures/test_contrail_vmi_resource_id/fail/fail0.yaml b/ice_validator/tests/fixtures/test_contrail_vmi_resource_id/fail/fail0.yaml
new file mode 100644
index 0000000..7ee0ec6
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_contrail_vmi_resource_id/fail/fail0.yaml
@@ -0,0 +1,75 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+
+resources:
+
+ vm_typeS_0_int_bialy_vmi_0_IP_0:
+ type: OS::ContrailV2::VirtualMachineInterface
+ properties:
+ virtual_network_refs:
+ - get_param: huey_int_hooey
+
+ vm_typeS_0_int_bialy_vmi_0_v6_IP_0:
+ type: OS::ContrailV2::VirtualMachineInterface
+ properties:
+ virtual_network_refs:
+ - get_param: huey_int_hooey
+
+ vm_typeS_0_subint_bialy_vmi_0_IP_1:
+ type: OS::ContrailV2::VirtualMachineInterface
+ properties:
+ virtual_network_refs:
+ - get_param: x_subint_dewey
+
+ vm_typeS_0_int_bialy_vmi_0_IP_2:
+ type: OS::ContrailV2::VirtualMachineInterface
+ properties:
+ virtual_network_refs:
+ - get_resource: dewey
+
+ vm_typeS_0_bialy_vmi_0_IP_2:
+ type: OS::ContrailV2::VirtualMachineInterface
+ properties:
+ virtual_network_refs:
+ - get_param: dewey
+
diff --git a/ice_validator/tests/fixtures/test_contrail_vmi_resource_id/pass/pass0.yaml b/ice_validator/tests/fixtures/test_contrail_vmi_resource_id/pass/pass0.yaml
new file mode 100644
index 0000000..b8346cb
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_contrail_vmi_resource_id/pass/pass0.yaml
@@ -0,0 +1,75 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+
+resources:
+
+ vm_typeS_0_int_bialy_vmi_0:
+ type: OS::ContrailV2::VirtualMachineInterface
+ properties:
+ virtual_network_refs:
+ - get_param: huey_int_hooey
+
+ vm_typeS_0_int_bialy_vmi_1:
+ type: OS::ContrailV2::VirtualMachineInterface
+ properties:
+ virtual_network_refs:
+ - get_param: huey_int_hooey
+
+ vm_typeS_0_subint_bialy_vmi_0:
+ type: OS::ContrailV2::VirtualMachineInterface
+ properties:
+ virtual_network_refs:
+ - get_param: x_subint_dewey
+
+ vm_typeS_0_int_bialy_vmi_2:
+ type: OS::ContrailV2::VirtualMachineInterface
+ properties:
+ virtual_network_refs:
+ - get_resource: dewey
+
+ vm_typeS_0_bialy_vmi_0:
+ type: OS::ContrailV2::VirtualMachineInterface
+ properties:
+ virtual_network_refs:
+ - get_param: dewey
+
diff --git a/ice_validator/tests/fixtures/test_contrail_vn_resource_id/fail/fail0.yaml b/ice_validator/tests/fixtures/test_contrail_vn_resource_id/fail/fail0.yaml
new file mode 100644
index 0000000..0eabf87
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_contrail_vn_resource_id/fail/fail0.yaml
@@ -0,0 +1,56 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+resources:
+ vm_type_a_server_0:
+ type: OS::ContrailV2::VirtualNetwork
+
+ int_0_romeo_network:
+ type: OS::ContrailV2::VirtualNetwork
+
+ int_0_romeo_RVN:
+ type: OS::ContrailV2::VirtualNetwork
+
+ int_0_romeo_rvn:
+ type: OS::ContrailV2::VirtualNetwork
+
diff --git a/ice_validator/tests/fixtures/test_contrail_vn_resource_id/pass/pass0.yaml b/ice_validator/tests/fixtures/test_contrail_vn_resource_id/pass/pass0.yaml
new file mode 100644
index 0000000..5d6c06e
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_contrail_vn_resource_id/pass/pass0.yaml
@@ -0,0 +1,50 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+resources:
+ int_0_romeo_network:
+ type: OS::ContrailV2::VirtualNetwork
+
+ int_0_romeo_RVN:
+ type: OS::ContrailV2::VirtualNetwork
+
diff --git a/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/fail/fail.env b/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/fail/fail.env
new file mode 100644
index 0000000..4ea6ee3
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/fail/fail.env
@@ -0,0 +1,3 @@
+parameters:
+ test123: nsdafjk
+ bad: ndfaskl \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/fail/fail.yaml b/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/fail/fail.yaml
new file mode 100644
index 0000000..90d0f3c
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/fail/fail.yaml
@@ -0,0 +1,4 @@
+parameters:
+ test123:
+ type: string
+ description: ndasfjlansl \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/pass/pass.env b/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/pass/pass.env
new file mode 100644
index 0000000..de8d3e0
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/pass/pass.env
@@ -0,0 +1,2 @@
+parameters:
+ test123: nsdafjk \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/pass/pass.yaml b/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/pass/pass.yaml
new file mode 100644
index 0000000..90d0f3c
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/pass/pass.yaml
@@ -0,0 +1,4 @@
+parameters:
+ test123:
+ type: string
+ description: ndasfjlansl \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.env b/ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.env
index 1ce6cc4..9187b10 100644
--- a/ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.env
+++ b/ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.env
@@ -22,6 +22,7 @@ parameters:
TESTDB_name: bghbhjb
+ TESTDB_valet_hosts: test
#TESTDB_image_name: sadfadf
@@ -43,7 +44,7 @@ parameters:
availability_zone_0: sadnfjk
- STARKDB_private_v6_ips: ansdfj
+ #STARKDB_int_private_v6_ips: ansdfj
int_priv_subnet_name: safbdjk
@@ -58,3 +59,5 @@ parameters:
STARKDB_crazy_ip_1: fsad
TESTDB_name2: asnjkv
+
+ vf_module_index: nalfs
diff --git a/ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.yaml b/ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.yaml
index 23f4e1a..d84cc1f 100644
--- a/ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.yaml
+++ b/ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.yaml
@@ -12,7 +12,11 @@ parameters:
type: string
description: nasfln
- STARKDB_private_v6_ips:
+ TESTDB_valet_hosts:
+ type: string
+ description: nsfadl
+
+ STARKDB_int_private_v6_ips:
type: comma_delimited_list
description: ndsajlfn
@@ -144,6 +148,7 @@ resources:
#int_network_id: { get_resource: int_priv_network }
workload_context: { get_param: workload_context }
environment_context: { get_param: environment_context }
+ #valet_groups: "safnkl, sdaflksanl"
networks:
- port: { get_resource: STARKDB_0_int_priv_port_0 }
- port: { get_resource: STARKDB_0_PRIV_port_1}
@@ -165,6 +170,7 @@ resources:
#int_network_id: { get_resource: int_priv_network }
workload_context: { get_param: workload_context }
environment_context: { get_param: environment_context }
+ #valet_groups: "safnkl, sdaflksanl"
networks:
- port: {get_resource: STARKDB_1_int_priv_port_0}
- port: {get_resource: STARKDB_1_crazy_port_0}
@@ -183,6 +189,7 @@ resources:
#int_network_id: { get_resource: int_priv_network }
workload_context: { get_param: workload_context }
environment_context: { get_param: environment_context }
+ #valet_groups: "safnkl, sdaflksanl"
networks:
- port: {get_resource: TESTDB_0_int_priv_port_0}
- network: { get_param: int_priv_net_id }
@@ -203,10 +210,19 @@ resources:
#int_network_id: { get_resource: int_priv_network }
workload_context: { get_param: workload_context }
environment_context: { get_param: environment_context }
+ #valet_groups: "safnkl, sdaflksanl"
networks:
- port: {get_resource: TESTDB_0_int_priv_port_0}
- network: { get_param: int_priv_net_id }
+ availability_zone:
+ str_replace:
+ template: $AZ$VALET_HOST_ASSIGNMENT
+ params:
+ $AZ: { get_param: availability_zone_0 }
+ $VALET_HOST_ASSIGNMENT: { get_param: [ TESTDB_valet_hosts, 0 ] }
+
+
vol_attachment:
type: OS::Cinder::VolumeAttachment
properties:
@@ -239,8 +255,8 @@ resources:
properties:
network: { get_resource: int_private_net_id }
fixed_ips:
- - subnet_id: { get_resource: int_priv_subnet }
- - ip_address: { get_param: STARKDB_private_v6_ips }
+ - subnet: { get_resource: int_priv_subnet }
+ - ip_address: { get_param: STARKDB_int_private_v6_ips }
STARKDB_0_crazy_port_0:
@@ -248,7 +264,7 @@ resources:
properties:
network: { get_param: crazy_net_id }
fixed_ips:
- - subnet_id: { get_param: crazy_subnet_id }
+ - subnet: { get_param: crazy_subnet_id }
- ip_address: { get_param: STARKDB_crazy_ip_0 }
allowed_address_pairs: [ { "ip_address": {get_param:
STARKDB_crazy_floating_ip}}]
@@ -259,7 +275,7 @@ resources:
properties:
network: { get_param: crazy_net_id }
fixed_ips:
- - subnet_id: { get_param: crazy_subnet_id }
+ - subnet: { get_param: crazy_subnet_id }
- ip_address: { get_param: STARKDB_crazy_ip_1 }
allowed_address_pairs: [ { "ip_address": {get_param:
STARKDB_crazy_floating_ip}}]
diff --git a/ice_validator/tests/fixtures/test_filename_is_vmtype_dot_yaml/fail/testvm.yaml b/ice_validator/tests/fixtures/test_filename_is_vmtype_dot_yaml/fail/testvm.yaml
new file mode 100644
index 0000000..87c54e2
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_filename_is_vmtype_dot_yaml/fail/testvm.yaml
@@ -0,0 +1,51 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+resources:
+ testvm_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: testvm_name_0 }
+ flavor: { get_param: testvm_flavor_name}
+ image: { get_param: testvm_image_name}
+
diff --git a/ice_validator/tests/fixtures/test_filename_is_vmtype_dot_yaml/pass/test_vm.yaml b/ice_validator/tests/fixtures/test_filename_is_vmtype_dot_yaml/pass/test_vm.yaml
new file mode 100644
index 0000000..87c54e2
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_filename_is_vmtype_dot_yaml/pass/test_vm.yaml
@@ -0,0 +1,51 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+resources:
+ testvm_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: testvm_name_0 }
+ flavor: { get_param: testvm_flavor_name}
+ image: { get_param: testvm_image_name}
+
diff --git a/ice_validator/tests/fixtures/test_files_in_flat_dir/fail/nested/test2.yaml b/ice_validator/tests/fixtures/test_files_in_flat_dir/fail/nested/test2.yaml
new file mode 100644
index 0000000..330069b
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_files_in_flat_dir/fail/nested/test2.yaml
@@ -0,0 +1,36 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
diff --git a/ice_validator/tests/fixtures/test_files_in_flat_dir/fail/test.yaml b/ice_validator/tests/fixtures/test_files_in_flat_dir/fail/test.yaml
new file mode 100644
index 0000000..330069b
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_files_in_flat_dir/fail/test.yaml
@@ -0,0 +1,36 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
diff --git a/ice_validator/tests/fixtures/test_files_in_flat_dir/pass/test.yaml b/ice_validator/tests/fixtures/test_files_in_flat_dir/pass/test.yaml
new file mode 100644
index 0000000..330069b
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_files_in_flat_dir/pass/test.yaml
@@ -0,0 +1,36 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
diff --git a/ice_validator/tests/fixtures/test_files_in_flat_dir/pass/test2.yaml b/ice_validator/tests/fixtures/test_files_in_flat_dir/pass/test2.yaml
new file mode 100644
index 0000000..330069b
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_files_in_flat_dir/pass/test2.yaml
@@ -0,0 +1,36 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
diff --git a/ice_validator/tests/fixtures/test_forbidden_resources/fail/fail1.yaml b/ice_validator/tests/fixtures/test_forbidden_resources/fail/fail1.yaml
new file mode 100644
index 0000000..7ae4c65
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_forbidden_resources/fail/fail1.yaml
@@ -0,0 +1,49 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+resources:
+
+ vm_typeX_0_bialy_port_1:
+ type: OS::Neutron::FloatingIPAssociation
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::Neutron::FloatingIP
diff --git a/ice_validator/tests/fixtures/test_forbidden_resources/pass/pass0.yaml b/ice_validator/tests/fixtures/test_forbidden_resources/pass/pass0.yaml
new file mode 100644
index 0000000..a73de94
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_forbidden_resources/pass/pass0.yaml
@@ -0,0 +1,49 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::Neutron::Net
+
diff --git a/ice_validator/tests/fixtures/test_get_attr_usage/fail/fail_get_attr.yaml b/ice_validator/tests/fixtures/test_get_attr_usage/fail/fail_get_attr.yaml
new file mode 100644
index 0000000..3bbf508
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_get_attr_usage/fail/fail_get_attr.yaml
@@ -0,0 +1,60 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+resources:
+ my_instance:
+ type: OS::Nova::Server
+ properties:
+ key_name: { get_param: d }
+ image: { get_param: b }
+ flavor: { get_param: c }
+
+ nested_instance:
+ type: nested.yaml
+
+outputs:
+ my_instance_ip:
+ description: The IP address of the deployed instance
+ value: { get_attr: [my_instance, first_address] }
+
+ nested_instance_ip:
+ description: The IP address of the deployed instance
+ value: { get_attr: [nested_instance, nested_instance_ip2] } \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_get_attr_usage/fail/nested.yaml b/ice_validator/tests/fixtures/test_get_attr_usage/fail/nested.yaml
new file mode 100644
index 0000000..9de7aab
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_get_attr_usage/fail/nested.yaml
@@ -0,0 +1,54 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+resources:
+ nested_instance:
+ type: OS::Nova::Server
+ properties:
+ key_name: { get_param: d }
+ image: { get_param: b }
+ flavor: { get_param: c }
+
+outputs:
+
+ nested_instance_ip:
+ description: The IP address of the deployed instance
+ value: { get_attr: [nested_instance2, first_address] } \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_get_attr_usage/pass/nested.yaml b/ice_validator/tests/fixtures/test_get_attr_usage/pass/nested.yaml
new file mode 100644
index 0000000..cbd9234
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_get_attr_usage/pass/nested.yaml
@@ -0,0 +1,54 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+resources:
+ nested_instance:
+ type: OS::Nova::Server
+ properties:
+ key_name: { get_param: d }
+ image: { get_param: b }
+ flavor: { get_param: c }
+
+outputs:
+
+ nested_instance_ip:
+ description: The IP address of the deployed instance
+ value: { get_attr: [nested_instance, first_address] } \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_get_attr_usage/pass/pass_get_attr.yaml b/ice_validator/tests/fixtures/test_get_attr_usage/pass/pass_get_attr.yaml
new file mode 100644
index 0000000..ac26e2b
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_get_attr_usage/pass/pass_get_attr.yaml
@@ -0,0 +1,60 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+resources:
+ my_instance:
+ type: OS::Nova::Server
+ properties:
+ key_name: { get_param: d }
+ image: { get_param: b }
+ flavor: { get_param: c }
+
+ nested_instance:
+ type: nested.yaml
+
+outputs:
+ my_instance_ip:
+ description: The IP address of the deployed instance
+ value: { get_attr: [my_instance, first_address] }
+
+ nested_instance_ip:
+ description: The IP address of the deployed instance
+ value: { get_attr: [nested_instance, nested_instance_ip] } \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_get_file_only_reference_local_files/pass/new.txt b/ice_validator/tests/fixtures/test_get_file_only_reference_local_files/pass/new.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_get_file_only_reference_local_files/pass/new.txt
diff --git a/ice_validator/tests/fixtures/test_get_file_only_reference_local_files/pass/user_data.sh b/ice_validator/tests/fixtures/test_get_file_only_reference_local_files/pass/user_data.sh
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_get_file_only_reference_local_files/pass/user_data.sh
diff --git a/ice_validator/tests/fixtures/test_initial_configuration/pass/good_yaml_eg.yaml b/ice_validator/tests/fixtures/test_initial_configuration/pass/good_yaml_eg.yaml
index 559c598..25ec0b3 100644
--- a/ice_validator/tests/fixtures/test_initial_configuration/pass/good_yaml_eg.yaml
+++ b/ice_validator/tests/fixtures/test_initial_configuration/pass/good_yaml_eg.yaml
@@ -37,16 +37,40 @@
#
# ECOMP is a trademark and service mark of AT&T Intellectual Property.
#
----
- a: 1
- b:
- c: 3
- d: 4
- e:
- f: 4
- g:
- h:
- test: test
- k: g
+heat_template_version: 2015-04-30
- test: out \ No newline at end of file
+description: Simple template to deploy a single compute instance
+
+parameter_groups:
+ - label: human-readable label of parameter group
+ description: description of the parameter group
+ parameters:
+ - pga
+ - pgb
+
+parameters:
+ b:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+ c:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+ d:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+resources:
+ my_instance:
+ type: OS::Nova::Server
+ properties:
+ key_name: { get_param: d }
+ image: { get_param: b }
+ flavor: { get_param: c }
+
+outputs:
+ instance_ip:
+ description: The IP address of the deployed instance
+ value: { get_attr: [my_instance, first_address] }
diff --git a/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/fail.yaml b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/fail.yaml
new file mode 100644
index 0000000..762b9b6
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/fail.yaml
@@ -0,0 +1,61 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+parameters:
+ vm1_nr1_ip_1:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+ vm1_nr1_ip_2:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+ vm1_nr1_v6_ip_0:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+ vm1_nr1_v6_ip_2:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/fail2.yaml b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/fail2.yaml
new file mode 100644
index 0000000..582aa5d
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/fail2.yaml
@@ -0,0 +1,55 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+parameters:
+ vm1_nr1_ip_1:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+ vm1_nr1_v6_ip_3:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+resources:
+ vm1_server_0:
+ type: nested.yaml
diff --git a/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/nested.yaml b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/nested.yaml
new file mode 100644
index 0000000..9283663
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/nested.yaml
@@ -0,0 +1,46 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+parameters:
+ vm1_nr1_ip_4:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
diff --git a/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/nested.yaml b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/nested.yaml
new file mode 100644
index 0000000..9283663
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/nested.yaml
@@ -0,0 +1,46 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+parameters:
+ vm1_nr1_ip_4:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
diff --git a/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/pass.yaml b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/pass.yaml
new file mode 100644
index 0000000..b03162b
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/pass.yaml
@@ -0,0 +1,61 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+parameters:
+ vm1_nr1_ip_0:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+ vm1_nr1_ip_1:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+ vm1_nr1_v6_ip_0:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+ vm1_nr1_v6_ip_1:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/pass2.yaml b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/pass2.yaml
new file mode 100644
index 0000000..fdeeb7b
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/pass2.yaml
@@ -0,0 +1,55 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+parameters:
+ vm1_nr1_ip_0:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+ vm1_nr1_v6_ip_0:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+resources:
+ vm1_server_0:
+ type: nested.yaml
diff --git a/ice_validator/tests/fixtures/test_nested_parameter_args/fail/fail0.yaml b/ice_validator/tests/fixtures/test_nested_parameter_args/fail/fail0.yaml
new file mode 100644
index 0000000..7f9c76c
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nested_parameter_args/fail/fail0.yaml
@@ -0,0 +1,59 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+ cdl:
+ type: comma_delimited_list
+ num:
+ type: number
+resources:
+ ex1_nova_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [ ex1_vm_names, 0 ] }
+ metadata:
+ vnf_id: { get_param: vnf_id }
+ vf_module_id1:
+ get_param: [ cdl, { get_param: xnum }]
+ vf_module_id2:
+ get_param: [ xcdl, { get_param: num }]
+
diff --git a/ice_validator/tests/fixtures/test_nested_parameter_args/pass/pass0.yaml b/ice_validator/tests/fixtures/test_nested_parameter_args/pass/pass0.yaml
new file mode 100644
index 0000000..3a27e99
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nested_parameter_args/pass/pass0.yaml
@@ -0,0 +1,59 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+ cdl:
+ type: comma_delimited_list
+ num:
+ type: number
+resources:
+ ex1_nova_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [ ex1_vm_names, 0 ] }
+ metadata:
+ vnf_id: { get_param: vnf_id }
+ vf_module_id1:
+ get_param: [ cdl, { get_param: num }]
+ vf_module_id2:
+ get_param: [ cdl, { get_param: num }]
+
diff --git a/ice_validator/tests/fixtures/test_nested_parameters/fail/heat_template.yaml b/ice_validator/tests/fixtures/test_nested_parameters/fail/heat_template.yaml
index a6a8a0e..3785474 100644
--- a/ice_validator/tests/fixtures/test_nested_parameters/fail/heat_template.yaml
+++ b/ice_validator/tests/fixtures/test_nested_parameters/fail/heat_template.yaml
@@ -48,12 +48,37 @@ parameters:
type: string
vm_type_volume_size_0:
type: number
+ vm_role:
+ type: string
+ vnf_id:
+ type: string
+ vf_module_id:
+ type: string
+ vnf_name:
+ type: string
+ vf_module_name:
+ type: string
+ vf_module_index:
+ type: string
+ environment_context:
+ type: string
+ workload_context:
+ type: string
resources:
server_0:
type: nested_template_1.yaml
properties:
name: { get_param: server_name_0 }
+ vm_1role: { get_param: vm_role }
+ vnf_1id: { get_param: vnf_id }
+ vf_module_1id: { get_param: vf_module_id }
+ vnf_1name: { get_param: vnf_name }
+ vf_module_1name: { get_param: vf_module_name }
+ vf_module_1index: { get_param: vf_module_index }
+ environment_cont1ext: { get_param: environment_context }
+ workload_cont1ext: { get_param: workload_context }
+
my_resource_group_1:
type: OS::Heat::ResourceGroup
properties:
diff --git a/ice_validator/tests/fixtures/test_nested_template_parameters/fail/bad-heat_template.yaml b/ice_validator/tests/fixtures/test_nested_template_parameters/fail/bad-heat_template.yaml
new file mode 100644
index 0000000..e948fb0
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nested_template_parameters/fail/bad-heat_template.yaml
@@ -0,0 +1,59 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.1'
+
+---
+
+resources:
+ server_0:
+ type: nested_template_1.yaml
+ properties:
+ para1: 'what me worry'
+ para2: 'what me worry'
+
+ server_1:
+ type: OS::Heat::ResourceGroup
+ properties:
+ resource_def:
+ type: nested_template_1.yaml
+ para2: 'what me worry'
+ para3: 'what me worry'
+
diff --git a/ice_validator/tests/fixtures/test_nested_template_parameters/pass/heat_template.yaml b/ice_validator/tests/fixtures/test_nested_template_parameters/pass/heat_template.yaml
new file mode 100644
index 0000000..315eec4
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nested_template_parameters/pass/heat_template.yaml
@@ -0,0 +1,62 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.2'
+
+---
+
+resources:
+ server_0:
+ type: nested_template_1.yaml
+ properties:
+ para1: 'what me worry'
+ para2: 'what me worry'
+ para3: 'what me worry'
+
+ server_1:
+ type: OS::Heat::ResourceGroup
+ properties:
+ resource_def:
+ type: nested_template_1.yaml
+ properties:
+ para1: 'what me worry'
+ para2: 'what me worry'
+ para3: 'what me worry'
+
diff --git a/ice_validator/tests/fixtures/test_nested_parameters/fail/nested_template_1.yaml b/ice_validator/tests/fixtures/test_nested_template_parameters/pass/nested_template_1.yaml
index 5f2732f..87b03a0 100644
--- a/ice_validator/tests/fixtures/test_nested_parameters/fail/nested_template_1.yaml
+++ b/ice_validator/tests/fixtures/test_nested_template_parameters/pass/nested_template_1.yaml
@@ -41,7 +41,13 @@
# VERSION = '1.0.0'
---
-heat_template_version: 2013-05-23
+parameters:
+ para1:
+ type: string
+ para2:
+ type: string
+ para3:
+ type: string
resources:
volume:
diff --git a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/fail/invalid_base_naming_for_fixed_ips.yaml b/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level0.yaml
index 9d9be46..42971ee 100644
--- a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/fail/invalid_base_naming_for_fixed_ips.yaml
+++ b/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level0.yaml
@@ -1,5 +1,5 @@
# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
+# ============LICENSE_START====================================================
# org.onap.vvp/validation-scripts
# ===================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
@@ -37,33 +37,15 @@
#
# ECOMP is a trademark and service mark of AT&T Intellectual Property.
#
+# VERSION: '1.0.0'
---
resources:
-
- lb_1_int_intranet_port:
- type: OS::Neutron::Port
+ server_0:
+ type: bad-level1.yaml
properties:
- network: { get_param: int_intranet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_int_intranet_ip }
-
- lb_2_int_intranet_port:
- type: OS::Neutron::Port
+ name: { get_param: server_name_0 }
+ my_resource_group_1:
+ type: OS::Heat::ResourceGroup
properties:
- network: { get_param: int_intranet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_int_intranet_floating_v6_ips }
-
- lb_1_extnet_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_floating_ip }
-
- lb_2_extnet_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_extnet_floating_v6_ip } \ No newline at end of file
+ count: 5
+ resource_def: { type: bad-level2.yaml }
diff --git a/ice_validator/tests/fixtures/test_volume_format_outputs/fail/use_get_param_volume.yml b/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level1.yaml
index 90ba1ca..9bd513d 100644
--- a/ice_validator/tests/fixtures/test_volume_format_outputs/fail/use_get_param_volume.yml
+++ b/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level1.yaml
@@ -1,5 +1,5 @@
# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
+# ============LICENSE_START====================================================
# org.onap.vvp/validation-scripts
# ===================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
@@ -37,25 +37,27 @@
#
# ECOMP is a trademark and service mark of AT&T Intellectual Property.
#
+# VERSION: '1.0.0'
---
+nested_template_description: base
+
+parameters:
+ vm_type_volume_name_0:
+ type: string
+ vm_type_volume_size_0:
+ type: number
+
resources:
- vm_type_volume_id_0:
- type: OS::Cinder::Volume
+ server_0:
+ type: bad-level2.yaml
properties:
- size: { get_param: vm_type_volume_size_0 }
-
- vm_type_volume_id_1:
- type: OS::Cinder::Volume
+ name: {get_param: server_name_0}
+ my_resource_group_1:
+ type: OS::Nova::Server
properties:
- size: { get_param: vm_type_volume_size_0 }
+ count: 5
+ resource_def: { type: bad-level3.yaml }
outputs:
-
vm_type_volume_id_0:
- value: { get_param: vm_type_volume_id_0 }
-
- vm_type_volume_id_1:
- value: { get_resource: vm_type_volume_id_1 }
-
- vm_type_volume_ids_0:
- value: { get_attr: [vm_type_volume_0_RSG, refs] } \ No newline at end of file
+ value: {get_resource: vm_type_volume_0}
diff --git a/ice_validator/tests/fixtures/test_volume_format_outputs/pass/valid_template_volume.yml b/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level2.yaml
index fa016a2..242a0d7 100644
--- a/ice_validator/tests/fixtures/test_volume_format_outputs/pass/valid_template_volume.yml
+++ b/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level2.yaml
@@ -1,5 +1,5 @@
# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
+# ============LICENSE_START====================================================
# org.onap.vvp/validation-scripts
# ===================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
@@ -37,34 +37,27 @@
#
# ECOMP is a trademark and service mark of AT&T Intellectual Property.
#
+# VERSION: '1.0.0'
---
-resources:
+nested_template_description: base
- vm_type_volume_0:
- type: OS::Cinder::Volume
- properties:
- size: { get_param: vm_type_volume_size_0 }
+parameters:
+ vm_type_volume_name_0:
+ type: string
+ vm_type_volume_size_0:
+ type: number
- vm_type_volume_1:
- type: OS::Cinder::Volume
+resources:
+ server_0:
+ type: not_a_template_file
properties:
- size: { get_param: vm_type_volume_size_0 }
-
- vm_type_volume_0_RSG:
+ name: {get_param: server_name_0}
+ my_resource_group_1:
type: OS::Heat::ResourceGroup
- count: { get_param: vm_type_volume_count_0_RSG }
- resource_def:
- type: OS::Cinder::Volume
- properties:
- size: { get_param: vm_type_volume_size_0 }
+ properties:
+ count: 5
+ resource_def: { type: bad-level3.yaml }
outputs:
-
vm_type_volume_id_0:
- value: { get_resource: vm_type_volume_0 }
-
- vm_type_volume_id_1:
- value: { get_resource: vm_type_volume_1 }
-
- vm_type_volume_ids_0:
- value: { get_attr: [vm_type_volume_0_RSG, refs] } \ No newline at end of file
+ value: {get_resource: vm_type_volume_0}
diff --git a/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level3.yaml b/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level3.yaml
new file mode 100644
index 0000000..bc762d7
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level3.yaml
@@ -0,0 +1,60 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+---
+heat_template_version: '2013-05-23'
+
+resources:
+ volume:
+ type: OS::Cinder::Volume
+ properties:
+ size: 1
+
+ volume_attachment:
+ type: OS::Cinder::VolumeAttachment
+ properties:
+ volume_id: { get_resource: volume }
+ instance_uuid: { get_resource: instance }
+
+ instance:
+ type: OS::Nova::Server
+ properties:
+ image: myimage
+ flavor: m1.small
diff --git a/ice_validator/tests/fixtures/test_nesting_level/pass/level0.yaml b/ice_validator/tests/fixtures/test_nesting_level/pass/level0.yaml
new file mode 100644
index 0000000..da8815c
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nesting_level/pass/level0.yaml
@@ -0,0 +1,51 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+---
+resources:
+ server_0:
+ type: level1.yaml
+ properties:
+ name: { get_param: server_name_0 }
+ my_resource_group_1:
+ type: OS::Heat::ResourceGroup
+ properties:
+ count: 5
+ resource_def: { type: level2.yaml }
diff --git a/ice_validator/tests/fixtures/test_nesting_level/pass/level1.yaml b/ice_validator/tests/fixtures/test_nesting_level/pass/level1.yaml
new file mode 100644
index 0000000..f51772f
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nesting_level/pass/level1.yaml
@@ -0,0 +1,63 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.1'
+---
+nested_template_description: base
+
+parameters:
+ vm_type_volume_name_0:
+ type: string
+ vm_type_volume_size_0:
+ type: number
+
+resources:
+ server_0:
+ type: level3.yaml
+ properties:
+ name: {get_param: server_name_0}
+ my_resource_group_1:
+ type: OS::Nova::Server
+ properties:
+ count: 5
+ resource_def: { type: level2.yaml }
+
+outputs:
+ vm_type_volume_id_0:
+ value: {get_resource: vm_type_volume_0}
diff --git a/ice_validator/tests/fixtures/test_volume_format_outputs/fail/no_value_volume.yaml b/ice_validator/tests/fixtures/test_nesting_level/pass/level2.yaml
index eec1fbd..5d21ad8 100644
--- a/ice_validator/tests/fixtures/test_volume_format_outputs/fail/no_value_volume.yaml
+++ b/ice_validator/tests/fixtures/test_nesting_level/pass/level2.yaml
@@ -1,5 +1,5 @@
# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
+# ============LICENSE_START====================================================
# org.onap.vvp/validation-scripts
# ===================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
@@ -37,33 +37,27 @@
#
# ECOMP is a trademark and service mark of AT&T Intellectual Property.
#
+# VERSION: '1.0.1'
---
-resources:
- vm_type_volume_id_0:
- type: OS::Cinder::Volume
- properties:
- size: { get_param: vm_type_volume_size_0 }
+nested_template_description: base
- vm_type_volume_id_1:
- type: OS::Cinder::Volume
- properties:
- size: { get_param: vm_type_volume_size_0 }
+parameters:
+ vm_type_volume_name_0:
+ type: string
+ vm_type_volume_size_0:
+ type: number
- vm_type_volume_0_RSG:
+resources:
+ server_0:
+ type: not_a_template_file
+ properties:
+ name: {get_param: server_name_0}
+ my_resource_group_1:
type: OS::Heat::ResourceGroup
- count: { get_param: vm_type_volume_count_0_RSG }
- resource_def:
- type: OS::Cinder::Volume
- properties:
- size: { get_param: vm_type_volume_size_0 }
+ properties:
+ count: 5
+ resource_def: { type: level3.yaml }
outputs:
-
vm_type_volume_id_0:
- value: { get_resource: vm_type_volume_id_0 }
-
- vm_type_volume_id_1:
- resource: { get_resource: vm_type_volume_id_1 }
-
- vm_type_volume_ids_0:
- value: { get_attr: [vm_type_volume_0_RSG, refs] } \ No newline at end of file
+ value: {get_resource: vm_type_volume_0}
diff --git a/ice_validator/tests/fixtures/test_nesting_level/pass/level3.yaml b/ice_validator/tests/fixtures/test_nesting_level/pass/level3.yaml
new file mode 100644
index 0000000..bc762d7
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nesting_level/pass/level3.yaml
@@ -0,0 +1,60 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+---
+heat_template_version: '2013-05-23'
+
+resources:
+ volume:
+ type: OS::Cinder::Volume
+ properties:
+ size: 1
+
+ volume_attachment:
+ type: OS::Cinder::VolumeAttachment
+ properties:
+ volume_id: { get_resource: volume }
+ instance_uuid: { get_resource: instance }
+
+ instance:
+ type: OS::Nova::Server
+ properties:
+ image: myimage
+ flavor: m1.small
diff --git a/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_0.yaml b/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_0.yaml
new file mode 100644
index 0000000..7485297
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_0.yaml
@@ -0,0 +1,50 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+---
+resources:
+ server_0:
+ type: bad-17528_1.yaml
+ properties:
+ name: { get_param: server_name_0 }
+ my_resource_group_1:
+ type: OS::Heat::ResourceGroup
+ properties:
+ count: 5
diff --git a/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_1.yaml b/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_1.yaml
new file mode 100644
index 0000000..4e79ff3
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_1.yaml
@@ -0,0 +1,65 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.1'
+---
+nested_template_description: base
+
+parameters:
+ vm_type_volume_name_0:
+ type: string
+ vm_type_volume_size_0:
+ type: number
+
+resources:
+ server_0:
+ type: not_a_template_file
+ properties:
+ name: {get_param: server_name_0}
+ my_resource_group_1:
+ type: OS::Nova::Server
+ properties:
+ count: 5
+ resource_def: { type: bad-17528_2.yaml }
+ my_resource_group_2:
+ type: OS::Nova::Server
+
+outputs:
+ vm_type_volume_id_0:
+ value: {get_resource: vm_type_volume_0}
diff --git a/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_2.yaml b/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_2.yaml
new file mode 100644
index 0000000..172bb2c
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_2.yaml
@@ -0,0 +1,60 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.1'
+---
+heat_template_version: '2013-05-23'
+
+resources:
+ volume:
+ type: OS::Cinder::Volume
+ properties:
+ size: 1
+
+ volume_attachment:
+ type: OS::Cinder::VolumeAttachment
+ properties:
+ volume_id: { get_resource: volume }
+ instance_uuid: { get_resource: instance }
+
+ instance:
+ type: OS::Nova::NotServer
+ properties:
+ image: myimage
+ flavor: m1.small
diff --git a/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_0.yaml b/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_0.yaml
new file mode 100644
index 0000000..4483411
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_0.yaml
@@ -0,0 +1,50 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+---
+resources:
+ server_0:
+ type: 17528_1.yaml
+ properties:
+ name: { get_param: server_name_0 }
+ my_resource_group_1:
+ type: OS::Heat::ResourceGroup
+ properties:
+ count: 5
diff --git a/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_1.yaml b/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_1.yaml
new file mode 100644
index 0000000..66e9c04
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_1.yaml
@@ -0,0 +1,64 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+---
+nested_template_description: base
+
+parameters:
+ vm_type_volume_name_0:
+ type: string
+ vm_type_volume_size_0:
+ type: number
+
+resources:
+ server_0:
+ type: not_a_template_file
+ properties:
+ name: {get_param: server_name_0}
+ my_resource_group_1:
+ type: OS::Nova::Server
+ properties:
+ count: 5
+ #resource_def: { type: 17528_3.yaml }
+ resource_def: { type: 17528_2.yaml }
+
+outputs:
+ vm_type_volume_id_0:
+ value: {get_resource: vm_type_volume_0}
diff --git a/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_2.yaml b/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_2.yaml
new file mode 100644
index 0000000..00ab275
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_2.yaml
@@ -0,0 +1,60 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+---
+heat_template_version: '2013-05-23'
+
+resources:
+ volume:
+ type: OS::Cinder::Volume
+ properties:
+ size: 1
+
+ volume_attachment:
+ type: OS::Cinder::VolumeAttachment
+ properties:
+ volume_id: { get_resource: volume }
+ instance_uuid: { get_resource: instance }
+
+ instance:
+ type: OS::Nova::NotServer
+ properties:
+ image: myimage
+ flavor: m1.small
diff --git a/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_3.yaml b/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_3.yaml
new file mode 100644
index 0000000..5e7dd2d
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_3.yaml
@@ -0,0 +1,63 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+---
+nested_template_description: base
+
+parameters:
+ vm_type_volume_name_0:
+ type: string
+ vm_type_volume_size_0:
+ type: number
+
+resources:
+ server_0:
+ type: not_a_template_file
+ properties:
+ name: {get_param: server_name_0}
+ my_resource_group_1:
+ type: OS::Nova::Server
+ properties:
+ count: 5
+ resource_def: { type: 17528_2.yaml }
+
+outputs:
+ vm_type_volume_id_0:
+ value: {get_resource: vm_type_volume_0}
diff --git a/ice_validator/tests/fixtures/test_network_format/fail/invalid_naming_used_for_network.yaml b/ice_validator/tests/fixtures/test_network_format/fail/invalid_naming_used_for_network.yaml
index 3a60812..7351826 100644
--- a/ice_validator/tests/fixtures/test_network_format/fail/invalid_naming_used_for_network.yaml
+++ b/ice_validator/tests/fixtures/test_network_format/fail/invalid_naming_used_for_network.yaml
@@ -47,14 +47,24 @@ resources:
vm_type_1_int_vpnnet_0_port:
type: OS::Neutron::Port
properties:
- network: { get_param: int_vpnnet_net }
+ network: { get_param: int_vpnnet_net_id }
vm_type_1_extnet_net_0_port:
type: OS::Neutron::Port
properties:
- network: { get_param: extnet_net }
+ network: { get_param: extnet_net_name }
vm_type_1_extnet_0_port:
type: OS::Neutron::Port
properties:
network: { get_param: extnet_net_id }
+
+ int_oam_netork:
+ type: OS::Neutron::Net
+ properties:
+ name: { get_param: int_oam_net_name }
+
+ vm_type_1_int_oam_1_port:
+ type: OS::Neutron::Port
+ properties:
+ gbgdfjk: { get_resource: int_oam_net }
diff --git a/ice_validator/tests/fixtures/test_network_format/pass/valid_heat_template.yaml b/ice_validator/tests/fixtures/test_network_format/pass/valid_heat_template.yaml
index 83358b2..136e27b 100644
--- a/ice_validator/tests/fixtures/test_network_format/pass/valid_heat_template.yaml
+++ b/ice_validator/tests/fixtures/test_network_format/pass/valid_heat_template.yaml
@@ -59,10 +59,16 @@ resources:
properties:
network: { get_param: extnet_net_id }
- int_oam_net:
+ int_oam_network:
type: OS::Neutron::Net
properties:
name: { get_param: int_oam_net_name }
+
+ int_oam_subnet:
+ type: OS::Neutron::Subnet
+ properties:
+ network: { get_resource: int_oam_network }
+
vm_type_1_int_oam_1_port:
type: OS::Neutron::Port
properties:
diff --git a/ice_validator/tests/fixtures/test_neutron_net_resource_id/fail/fail.yaml b/ice_validator/tests/fixtures/test_neutron_net_resource_id/fail/fail.yaml
new file mode 100644
index 0000000..b95e5d6
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_net_resource_id/fail/fail.yaml
@@ -0,0 +1,53 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+
+ int_0_romeo_networK:
+ type: OS::Neutron::Net
+
+ ant_0_romeo_network:
+ type: OS::Neutron::Net
+
diff --git a/ice_validator/tests/fixtures/test_neutron_net_resource_id/pass/pass.yaml b/ice_validator/tests/fixtures/test_neutron_net_resource_id/pass/pass.yaml
new file mode 100644
index 0000000..2b0049a
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_net_resource_id/pass/pass.yaml
@@ -0,0 +1,53 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+
+ int_0_romeo_network:
+ type: OS::Neutron::Net
+
+ int_0_romeo_network:
+ type: OS::Neutron::Net
+
diff --git a/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail0.yaml b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail0.yaml
new file mode 100644
index 0000000..3237293
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail0.yaml
@@ -0,0 +1,86 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ - ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+ mac_and_cheese: 0
+ - ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+ mac_and_cheese: 1
+
+ vm_typeX_1_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ - ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+ mac_and_cheese: 0
+ - ip_address: { get_param: my_ip_1 }
+ v6_ip_address: { get_param: my_v6_ip_1 }
+ mac_and_cheese: 1
+
+ vm_typeX_2_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ - ip_address: { get_parm: my_ip }
+ v6_ip_address: { get_parm: my_v6_ip }
+
+ vm_typeX_3_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ - ip_address
+
+ vm_typeX_4_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+
diff --git a/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail1.yaml b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail1.yaml
new file mode 100644
index 0000000..de3c46f
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail1.yaml
@@ -0,0 +1,86 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ - ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+ mac_and_cheese: 0
+ - ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+ mac_and_cheese: 1
+
+ vm_typeX_1_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ xallowed_address_pairs:
+ - ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+ mac_and_cheese: 0
+ - ip_address: { get_param: my_ip_1 }
+ v6_ip_address: { get_param: my_v6_ip_1 }
+ mac_and_cheese: 1
+
+ vm_typeX_2_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ - ip_address: { get_parm: my_ip }
+ v6_ip_address: { get_parm: my_v6_ip }
+
+ vm_typeX_3_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ - ip_address
+
+ vm_typeX_4_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+
diff --git a/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail2.yaml b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail2.yaml
new file mode 100644
index 0000000..6d3cc82
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail2.yaml
@@ -0,0 +1,86 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ - ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+ mac_and_cheese: 0
+ - ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+ mac_and_cheese: 1
+
+ vm_typeX_1_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ xallowed_address_pairs:
+ - ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+ mac_and_cheese: 0
+ - ip_address: { get_param: my_ip_1 }
+ v6_ip_address: { get_param: my_v6_ip_1 }
+ mac_and_cheese: 1
+
+ vm_typeX_2_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ - ip_address: { get_parm: my_ip }
+ v6_ip_address: { get_parm: my_v6_ip }
+
+ vm_typeX_3_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ xallowed_address_pairs:
+ - ip_address
+
+ vm_typeX_4_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+
diff --git a/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail3.yaml b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail3.yaml
new file mode 100644
index 0000000..521136a
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail3.yaml
@@ -0,0 +1,86 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ - ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+ mac_and_cheese: 0
+ - ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+ mac_and_cheese: 1
+
+ vm_typeX_1_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ xallowed_address_pairs:
+ - ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+ mac_and_cheese: 0
+ - ip_address: { get_param: my_ip_1 }
+ v6_ip_address: { get_param: my_v6_ip_1 }
+ mac_and_cheese: 1
+
+ vm_typeX_2_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ xallowed_address_pairs:
+ - ip_address: { get_parm: my_ip }
+ v6_ip_address: { get_parm: my_v6_ip }
+
+ vm_typeX_3_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ xallowed_address_pairs:
+ - ip_address
+
+ vm_typeX_4_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+
diff --git a/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/other0.yaml b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/other0.yaml
new file mode 100644
index 0000000..e690ea3
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/other0.yaml
@@ -0,0 +1,53 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+resources:
+
+ other_typeX_0_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ - ip_address: { get_param: my_ip }
+ - ip_address: { get_param: my_v6_ip }
+ - ip_address: { get_param: my2_ip }
+ - ip_address: { get_param: my2_v6_ip }
+
diff --git a/ice_validator/tests/fixtures/test_neutron_port_addresses/pass/other0.yaml b/ice_validator/tests/fixtures/test_neutron_port_addresses/pass/other0.yaml
new file mode 100644
index 0000000..cc9d315
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_port_addresses/pass/other0.yaml
@@ -0,0 +1,55 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+resources:
+
+ other_typeX_0_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ - ip_address: { get_param: my_ip_1 }
+ v6_ip_address: { get_param: my_v6_ip_1 }
+ mac_and_cheese: 0
+ - ip_address: { get_param: my_ip_1 }
+ v6_ip_address: { get_param: my_v6_ip_1 }
+ mac_and_cheese: 1
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_index/fail/fail2.yaml b/ice_validator/tests/fixtures/test_neutron_port_addresses/pass/pass0.yaml
index 3d02a12..07711cd 100644
--- a/ice_validator/tests/fixtures/test_nova_servers_index/fail/fail2.yaml
+++ b/ice_validator/tests/fixtures/test_neutron_port_addresses/pass/pass0.yaml
@@ -37,43 +37,50 @@
#
# ECOMP is a trademark and service mark of AT&T Intellectual Property.
#
-
-# VERSION = '1.0.0'
+# VERSION: '1.0.0'
---
resources:
- vm_type_a_server_0:
- type: OS::Nova::Server
- properties:
- name: { get_param: [vm_type_a_names, 0] }
- flavor: { get_param: vm_type_a_flavor_name}
- image: { get_param: vm_type_a_image_name}
- vm_type_a_sErver_0:
- type: OS::Nova::Server
- properties:
- name: { get_param: [vm_type_a_names, 0] }
- flavor: { get_param: vm_type_a_flavor_name}
- image: { get_param: vm_type_a_image_name}
+ vm_typeX_0_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ - ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+ mac_and_cheese: 0
+ - ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+ mac_and_cheese: 1
+
+ vm_typeX_1_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ allowed_address_pairs:
+ - ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+ mac_and_cheese: 0
+ - ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
+ mac_and_cheese: 1
- vm_type_a_server_1:
- type: OS::Nova::Server
- properties:
- name: { get_param: [vm_type_a_names, 1] }
- flavor: { get_param: vm_type_a_flavor_name}
- image: { get_param: vm_type_a_image_name}
+ vm_typeX_2_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ xallowed_address_pairs:
+ - ip_address: { get_parm: my_ip }
+ v6_ip_address: { get_parm: my_v6_ip }
- vm_type_b_server_0:
- type: OS::Nova::Server
- properties:
- name: { get_param: vm_type_b_name_0 }
- flavor: { get_param: vm_type_b_flavor_name}
- image: { get_param: vm_type_b_image_name}
+ vm_typeX_3_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ xallowed_address_pairs:
+ - ip_address
- vm_type_b_server_1:
- type: OS::Nova::Server
- properties:
- name: { get_param: vm_type_b_name_1 }
- flavor: { get_param: vm_type_b_flavor_name}
- image: { get_param: vm_type_b_image_name}
+ vm_typeX_4_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ xallowed_address_pairs:
+ ip_address: { get_param: my_ip }
+ v6_ip_address: { get_param: my_v6_ip }
diff --git a/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/fail/fail0.yaml b/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/fail/fail0.yaml
new file mode 100644
index 0000000..d5756f3
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/fail/fail0.yaml
@@ -0,0 +1,97 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+
+ vm_typeX_bialy_vlan_filter:
+ type: comma_delimited_list
+ vm_typeX_bialy_public_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_private_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_guest_vlans:
+ type: comma_delimited_list
+ subnet_param:
+ type: string
+ subnet_id_param:
+ type: comma_delimited_list
+
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: int_intranet_net_name }
+ fixed_ips:
+ - ip_address: { get_param: lb_1_int_intranet_floating_ip }
+ subnet: { get_param: subnet_param }
+ subnet_id: { get_param: subnet_id_param }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Trunk
+
+ vm_typeX_3_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: extnet_net_id }
+ fixed_ips:
+ - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
+ subnet: { get_param: subnet_param }
+ subnet_id: { get_param: subnet_id_param }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Mirrored_Trunk
+
diff --git a/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/fail/fail1.yaml b/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/fail/fail1.yaml
new file mode 100644
index 0000000..29b20fe
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/fail/fail1.yaml
@@ -0,0 +1,97 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+
+ vm_typeX_bialy_vlan_filter:
+ type: comma_delimited_list
+ vm_typeX_bialy_public_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_private_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_guest_vlans:
+ type: comma_delimited_list
+ bialy_subnet:
+ type: string
+ bialy_subnet_id:
+ type: string
+
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: int_intranet_net_name }
+ fixed_ips:
+ - ip_address: { get_param: lb_1_int_intranet_floating_ip }
+ subnet: { get_param: bialy_subnet }
+ subnet_id: { get_param: bialy_subnet_id }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Trunk
+
+ vm_typeX_3_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: extnet_net_id }
+ fixed_ips:
+ - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
+ subnet: { get_param: bialy_subnet }
+ subnet_id: { get_param: bialy_subnet_id }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Mirrored_Trunk
+
diff --git a/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/pass/pass0.yaml b/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/pass/pass0.yaml
new file mode 100644
index 0000000..c26c0a8
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/pass/pass0.yaml
@@ -0,0 +1,95 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+
+ vm_typeX_bialy_vlan_filter:
+ type: comma_delimited_list
+ vm_typeX_bialy_public_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_private_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_guest_vlans:
+ type: comma_delimited_list
+ bialy_subnet:
+ type: string
+ bialy_subnet_id:
+ type: string
+
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: int_intranet_net_name }
+ fixed_ips:
+ - ip_address: { get_param: lb_1_int_intranet_floating_ip }
+ subnet: { get_param: bialy_subnet_id }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Trunk
+
+ vm_typeX_3_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: extnet_net_id }
+ fixed_ips:
+ - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
+ subnet_id: { get_param: bialy_subnet_id }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Mirrored_Trunk
+
diff --git a/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/pass/pass0_base.yaml b/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/pass/pass0_base.yaml
new file mode 100644
index 0000000..a73de94
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/pass/pass0_base.yaml
@@ -0,0 +1,49 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::Neutron::Net
+
diff --git a/ice_validator/tests/fixtures/test_neutron_port_internal_network/fail/fail0.yaml b/ice_validator/tests/fixtures/test_neutron_port_internal_network/fail/fail0.yaml
new file mode 100644
index 0000000..85d0524
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_port_internal_network/fail/fail0.yaml
@@ -0,0 +1,100 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+
+ vm_typeX_bialy_vlan_filter:
+ type: comma_delimited_list
+ vm_typeX_bialy_public_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_private_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_guest_vlans:
+ type: comma_delimited_list
+ subnet_param:
+ type: string
+ subnet_id_param:
+ type: string
+ int_extnet_net_id:
+ type: string
+ int_intranet_net_name:
+ type: string
+resources:
+
+ vm_typeX_0_intranet_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: int_intranet_net_name }
+ fixed_ips:
+ - ip_address: { get_param: lb_1_int_intranet_floating_ip }
+ subnet: { get_param: subnet_param }
+ subnet_id: { get_param: subnet_id_param }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Trunk
+
+ vm_typeX_3_extnet_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: int_extnet_net_id }
+ fixed_ips:
+ - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
+ subnet: { get_param: subnet_param }
+ subnet_id: { get_param: subnet_id_param }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Mirrored_Trunk
+
diff --git a/ice_validator/tests/fixtures/test_neutron_port_internal_network/fail/fail0_base.yaml b/ice_validator/tests/fixtures/test_neutron_port_internal_network/fail/fail0_base.yaml
new file mode 100644
index 0000000..4fa9c0b
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_port_internal_network/fail/fail0_base.yaml
@@ -0,0 +1,63 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+outputs:
+
+ #int_extnet_net_id:
+ # value: { get_resource: int_extnet_net_id }
+ #int_intranet_net_name:
+ # value: { get_param: int_intranet_net_name }
+
+
+resources:
+
+ int_intranet_net_name:
+ type: OS::Neutron::Net
+ properties:
+ name: { get_param: int_intranet_net_name }
+
+ int_extnet_net_id:
+ type: OS::Neutron::Net
+
+parameters:
+ int_intranet_net_name:
+ type: string
diff --git a/ice_validator/tests/fixtures/test_neutron_port_internal_network/pass/pass0.yaml b/ice_validator/tests/fixtures/test_neutron_port_internal_network/pass/pass0.yaml
new file mode 100644
index 0000000..85d0524
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_port_internal_network/pass/pass0.yaml
@@ -0,0 +1,100 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+
+ vm_typeX_bialy_vlan_filter:
+ type: comma_delimited_list
+ vm_typeX_bialy_public_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_private_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_guest_vlans:
+ type: comma_delimited_list
+ subnet_param:
+ type: string
+ subnet_id_param:
+ type: string
+ int_extnet_net_id:
+ type: string
+ int_intranet_net_name:
+ type: string
+resources:
+
+ vm_typeX_0_intranet_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: int_intranet_net_name }
+ fixed_ips:
+ - ip_address: { get_param: lb_1_int_intranet_floating_ip }
+ subnet: { get_param: subnet_param }
+ subnet_id: { get_param: subnet_id_param }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Trunk
+
+ vm_typeX_3_extnet_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: int_extnet_net_id }
+ fixed_ips:
+ - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
+ subnet: { get_param: subnet_param }
+ subnet_id: { get_param: subnet_id_param }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Mirrored_Trunk
+
diff --git a/ice_validator/tests/fixtures/test_neutron_port_internal_network/pass/pass0_base.yaml b/ice_validator/tests/fixtures/test_neutron_port_internal_network/pass/pass0_base.yaml
new file mode 100644
index 0000000..464ea71
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_port_internal_network/pass/pass0_base.yaml
@@ -0,0 +1,63 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+outputs:
+
+ int_extnet_net_id:
+ value: { get_resource: int_extnet_net_id }
+ int_intranet_net_name:
+ value: { get_param: int_intranet_net_name }
+
+
+resources:
+
+ int_intranet_network:
+ type: OS::Neutron::Net
+ properties:
+ name: { get_param: int_intranet_net_name }
+
+ int_extnet_network:
+ type: OS::Neutron::Net
+
+parameters:
+ int_intranet_net_name:
+ type: string
diff --git a/ice_validator/tests/fixtures/test_neutron_port_network_parameter/fail/fail.yaml b/ice_validator/tests/fixtures/test_neutron_port_network_parameter/fail/fail.yaml
new file mode 100644
index 0000000..8beb00a
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_port_network_parameter/fail/fail.yaml
@@ -0,0 +1,16 @@
+heat_template_version: 2015-04-30
+
+description: fdsafsfsa
+
+parameters:
+
+ # network cloud
+ testnetwork:
+ type: snafjsa
+
+resources:
+
+ testport:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: testnetwork }
diff --git a/ice_validator/tests/fixtures/test_neutron_port_network_parameter/pass/pass.yaml b/ice_validator/tests/fixtures/test_neutron_port_network_parameter/pass/pass.yaml
new file mode 100644
index 0000000..86da04e
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_neutron_port_network_parameter/pass/pass.yaml
@@ -0,0 +1,16 @@
+heat_template_version: 2015-04-30
+
+description: fdsafsfsa
+
+parameters:
+
+ # network cloud
+ testnetwork:
+ type: string
+
+resources:
+
+ testport:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: testnetwork }
diff --git a/ice_validator/tests/fixtures/test_no_http_resources/fail/fail.yaml b/ice_validator/tests/fixtures/test_no_http_resources/fail/fail.yaml
new file mode 100644
index 0000000..7bf50af
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_no_http_resources/fail/fail.yaml
@@ -0,0 +1,94 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+---
+resources:
+
+ admin_server_0:
+ type: OS::Nova::Server
+ properties:
+ availability_zone: { get_param: availability_zone_0 }
+ name: { get_param: [admin_names, 0] }
+ flavor: { get_param: admin_flavor_name}
+ networks:
+ - port: { get_resource: admin_0_exnet_0_port }
+ - port: { get_resource: admin_0_int_vpnnet_0_port }
+ metadata:
+ vnf_name: { get_param: vnf_name }
+ vnf_id: { get_param: vnf_id }
+ vf_module_id: { get_param: vf_module_id }
+ user_data:
+ get_file: http://server.example.com/files/user_data.sh
+
+ admin_server_1:
+ type: OS::Nova::Server
+ properties:
+ availability_zone: { get_param: availability_zone_0 }
+ name: { get_param: [admin_names, 1] }
+ flavor: { get_param: admin_flavor_name}
+ networks:
+ - port: { get_resource: admin_1_extnet_0_port }
+ - port: { get_resource: admin_1_extnet_1_port }
+ metadata:
+ vnf_name: { get_param: vnf_name }
+ vnf_id: { get_param: vnf_id }
+ vf_module_id: { get_param: vf_module_id }
+ personality: {"/opt/new.txt": { get_file: "new.txt" } }
+
+ admin_server_2:
+ type: OS::Nova::Server
+ properties:
+ availability_zone: { get_param: availability_zone_0 }
+ name: { get_param: [admin_names, 2] }
+ flavor: { get_param: admin_flavor_name}
+ metadata:
+ vnf_name: { get_param: vnf_name }
+ vnf_id: { get_param: vnf_id }
+ vf_module_id: { get_param: vf_module_id }
+
+ lb_server_0:
+ type: http://www.google.com.yaml
+ properties:
+ availability_zone: { get_param: availability_zone_0 }
+ name: { get_param: [lb_names, 0] }
+ flavor: { get_param: lb_flavor_name}
+ metadata:
+ vnf_name: { get_param: vnf_name }
+ vnf_id: { get_param: vnf_id }
+ vf_module_id: { get_param: vf_module_id } \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_format/fail/invalid_base_naming_for_fixed_ips.yaml b/ice_validator/tests/fixtures/test_no_http_resources/pass/valid_template.yaml
index d686e65..0f5dcb6 100644
--- a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_format/fail/invalid_base_naming_for_fixed_ips.yaml
+++ b/ice_validator/tests/fixtures/test_no_http_resources/pass/valid_template.yaml
@@ -40,30 +40,55 @@
---
resources:
- reserve_port_lb_1_int_intranet_floating_ip_0:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_intranet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_int_intranet_floating_ips }
+ admin_server_0:
+ type: OS::Nova::Server
+ properties:
+ availability_zone: { get_param: availability_zone_0 }
+ name: { get_param: [admin_names, 0] }
+ flavor: { get_param: admin_flavor_name}
+ networks:
+ - port: { get_resource: admin_0_exnet_0_port }
+ - port: { get_resource: admin_0_int_vpnnet_0_port }
+ metadata:
+ vnf_name: { get_param: vnf_name }
+ vnf_id: { get_param: vnf_id }
+ vf_module_id: { get_param: vf_module_id }
+ user_data:
+ get_file: user_data.sh
- reserve_port_lb_2_int_intranet_floating_v6_ip_0:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_intranet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_int_intranet_v6_ip }
+ admin_server_1:
+ type: OS::Nova::Server
+ properties:
+ availability_zone: { get_param: availability_zone_0 }
+ name: { get_param: [admin_names, 1] }
+ flavor: { get_param: admin_flavor_name}
+ networks:
+ - port: { get_resource: admin_1_extnet_0_port }
+ - port: { get_resource: admin_1_extnet_1_port }
+ metadata:
+ vnf_name: { get_param: vnf_name }
+ vnf_id: { get_param: vnf_id }
+ vf_module_id: { get_param: vf_module_id }
+ personality: {"/opt/new.txt": { get_file: "new.txt"} }
- reserve_port_lb_1_extnet_floating_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_floating_ip }
+ admin_server_2:
+ type: OS::Nova::Server
+ properties:
+ availability_zone: { get_param: availability_zone_0 }
+ name: { get_param: [admin_names, 2] }
+ flavor: { get_param: admin_flavor_name}
+ metadata:
+ vnf_name: { get_param: vnf_name }
+ vnf_id: { get_param: vnf_id }
+ vf_module_id: { get_param: vf_module_id }
- reserve_port_lb_2_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_extnet_floating_v6_ip } \ No newline at end of file
+ lb_server_0:
+ type: OS::Nova::Server
+ properties:
+ availability_zone: { get_param: availability_zone_0 }
+ name: { get_param: [lb_names, 0] }
+ flavor: { get_param: lb_flavor_name}
+ metadata:
+ vnf_name: { get_param: vnf_name }
+ vnf_id: { get_param: vnf_id }
+ vf_module_id: { get_param: vf_module_id } \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_no_image_files/fail/image.ami b/ice_validator/tests/fixtures/test_no_image_files/fail/image.ami
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_no_image_files/fail/image.ami
diff --git a/ice_validator/tests/fixtures/test_no_image_files/fail/image2.ISO b/ice_validator/tests/fixtures/test_no_image_files/fail/image2.ISO
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_no_image_files/fail/image2.ISO
diff --git a/ice_validator/tests/fixtures/test_no_image_files/fail/pass.sh b/ice_validator/tests/fixtures/test_no_image_files/fail/pass.sh
new file mode 100644
index 0000000..739dc11
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_no_image_files/fail/pass.sh
@@ -0,0 +1 @@
+echo "test" \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_no_image_files/fail/pass.yaml b/ice_validator/tests/fixtures/test_no_image_files/fail/pass.yaml
new file mode 100644
index 0000000..86da04e
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_no_image_files/fail/pass.yaml
@@ -0,0 +1,16 @@
+heat_template_version: 2015-04-30
+
+description: fdsafsfsa
+
+parameters:
+
+ # network cloud
+ testnetwork:
+ type: string
+
+resources:
+
+ testport:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: testnetwork }
diff --git a/ice_validator/tests/fixtures/test_no_image_files/fail/settings b/ice_validator/tests/fixtures/test_no_image_files/fail/settings
new file mode 100644
index 0000000..ad78c6f
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_no_image_files/fail/settings
@@ -0,0 +1 @@
+test=one \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_no_image_files/pass/pass.sh b/ice_validator/tests/fixtures/test_no_image_files/pass/pass.sh
new file mode 100644
index 0000000..739dc11
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_no_image_files/pass/pass.sh
@@ -0,0 +1 @@
+echo "test" \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_no_image_files/pass/pass.yaml b/ice_validator/tests/fixtures/test_no_image_files/pass/pass.yaml
new file mode 100644
index 0000000..86da04e
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_no_image_files/pass/pass.yaml
@@ -0,0 +1,16 @@
+heat_template_version: 2015-04-30
+
+description: fdsafsfsa
+
+parameters:
+
+ # network cloud
+ testnetwork:
+ type: string
+
+resources:
+
+ testport:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: testnetwork }
diff --git a/ice_validator/tests/fixtures/test_no_image_files/pass/settings b/ice_validator/tests/fixtures/test_no_image_files/pass/settings
new file mode 100644
index 0000000..ad78c6f
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_no_image_files/pass/settings
@@ -0,0 +1 @@
+test=one \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_non_server_name/fail/fail0.yaml b/ice_validator/tests/fixtures/test_non_server_name/fail/fail0.yaml
new file mode 100644
index 0000000..50acd30
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_non_server_name/fail/fail0.yaml
@@ -0,0 +1,126 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+
+ vm_typeX_bialy_vlan_filter:
+ type: comma_delimited_list
+ vm_typeX_bialy_public_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_private_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_guest_vlans:
+ type: comma_delimited_list
+
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ name: mynameistrouble
+ network: { get_param: int_intranet_net_name }
+ fixed_ips:
+ - ip_address: { get_param: lb_1_int_intranet_floating_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Trunk
+
+ vm_typeX_1_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ name:
+ str_replace: mynameisstilltrouble
+ network: { get_param: int_intranet_net_id }
+ fixed_ips:
+ - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Non_Trunk
+
+ vm_typeX_2_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: extnet_net_name }
+ fixed_ips:
+ - ip_address: { get_param: lb_1_extnet_floating_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: OVS
+
+ vm_typeX_3_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: extnet_net_id }
+ fixed_ips:
+ - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Mirrored_Trunk
+
diff --git a/ice_validator/tests/fixtures/test_non_server_name/fail/fail1.yaml b/ice_validator/tests/fixtures/test_non_server_name/fail/fail1.yaml
new file mode 100644
index 0000000..daa2045
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_non_server_name/fail/fail1.yaml
@@ -0,0 +1,129 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+
+ vm_typeX_bialy_vlan_filter:
+ type: comma_delimited_list
+ vm_typeX_bialy_public_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_private_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_guest_vlans:
+ type: comma_delimited_list
+
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ name:
+ str_replace:
+ template:
+ params: mynameisstilltrouble
+ network: { get_param: int_intranet_net_name }
+ fixed_ips:
+ - ip_address: { get_param: lb_1_int_intranet_floating_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Trunk
+
+ vm_typeX_1_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ name:
+ str_replace: {}
+ network: { get_param: int_intranet_net_id }
+ fixed_ips:
+ - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Non_Trunk
+
+ vm_typeX_2_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: extnet_net_name }
+ fixed_ips:
+ - ip_address: { get_param: lb_1_extnet_floating_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: OVS
+
+ vm_typeX_3_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: extnet_net_id }
+ fixed_ips:
+ - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Mirrored_Trunk
+
diff --git a/ice_validator/tests/fixtures/test_non_server_name/fail/fail2.yaml b/ice_validator/tests/fixtures/test_non_server_name/fail/fail2.yaml
new file mode 100644
index 0000000..64a519b
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_non_server_name/fail/fail2.yaml
@@ -0,0 +1,133 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+
+ vm_typeX_bialy_vlan_filter:
+ type: comma_delimited_list
+ vm_typeX_bialy_public_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_private_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_guest_vlans:
+ type: comma_delimited_list
+
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ name:
+ str_replace:
+ template:
+ params:
+ mynameisstillbad: foozle
+ network: { get_param: int_intranet_net_name }
+ fixed_ips:
+ - ip_address: { get_param: lb_1_int_intranet_floating_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Trunk
+
+ vm_typeX_1_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ name:
+ str_replace:
+ template:
+ params:
+ mynameisstilltrouble:
+ network: { get_param: int_intranet_net_id }
+ fixed_ips:
+ - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Non_Trunk
+
+ vm_typeX_2_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: extnet_net_name }
+ fixed_ips:
+ - ip_address: { get_param: lb_1_extnet_floating_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: OVS
+
+ vm_typeX_3_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: extnet_net_id }
+ fixed_ips:
+ - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Mirrored_Trunk
+
diff --git a/ice_validator/tests/fixtures/test_non_server_name/fail/fail3.yaml b/ice_validator/tests/fixtures/test_non_server_name/fail/fail3.yaml
new file mode 100644
index 0000000..2def749
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_non_server_name/fail/fail3.yaml
@@ -0,0 +1,135 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+
+ vm_typeX_bialy_vlan_filter:
+ type: comma_delimited_list
+ vm_typeX_bialy_public_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_private_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_guest_vlans:
+ type: comma_delimited_list
+
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ name:
+ str_replace:
+ template:
+ params:
+ mynameisstillbad:
+ get_param: foozle
+ network: { get_param: int_intranet_net_name }
+ fixed_ips:
+ - ip_address: { get_param: lb_1_int_intranet_floating_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Trunk
+
+ vm_typeX_1_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ name:
+ str_replace:
+ template:
+ params:
+ mynameisstilltrouble:
+ get_param:
+ network: { get_param: int_intranet_net_id }
+ fixed_ips:
+ - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Non_Trunk
+
+ vm_typeX_2_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: extnet_net_name }
+ fixed_ips:
+ - ip_address: { get_param: lb_1_extnet_floating_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: OVS
+
+ vm_typeX_3_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: extnet_net_id }
+ fixed_ips:
+ - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Mirrored_Trunk
+
diff --git a/ice_validator/tests/fixtures/test_non_server_name/pass/pass0.yaml b/ice_validator/tests/fixtures/test_non_server_name/pass/pass0.yaml
new file mode 100644
index 0000000..ff96331
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_non_server_name/pass/pass0.yaml
@@ -0,0 +1,135 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+# VERSION: '1.0.0'
+
+---
+parameters:
+
+ vm_typeX_bialy_vlan_filter:
+ type: comma_delimited_list
+ vm_typeX_bialy_public_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_private_vlans:
+ type: comma_delimited_list
+ vm_typeX_bialy_guest_vlans:
+ type: comma_delimited_list
+
+resources:
+
+ vm_typeX_0_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ name:
+ str_replace:
+ template: mynameisok_port2
+ params:
+ mynameisok:
+ get_param: vnf_name
+ network: { get_param: int_intranet_net_name }
+ fixed_ips:
+ - ip_address: { get_param: lb_1_int_intranet_floating_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Trunk
+
+ vm_typeX_1_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ name:
+ str_replace:
+ template: mynameisok_port2
+ params:
+ mynameisok:
+ get_param: vnf_name
+ network: { get_param: int_intranet_net_id }
+ fixed_ips:
+ - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Non_Trunk
+
+ vm_typeX_2_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: extnet_net_name }
+ fixed_ips:
+ - ip_address: { get_param: lb_1_extnet_floating_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: OVS
+
+ vm_typeX_3_bialy_port_2:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: extnet_net_id }
+ fixed_ips:
+ - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
+ binding:vnic_type: direct
+ value_specs:
+ vlan_filter: {get_param: vm_typeX_bialy_vlan_filter}
+ public_vlans: {get_param: vm_typeX_bialy_public_vlans}
+ private_vlans: {get_param: vm_typeX_bialy_private_vlans}
+ guest_vlans: {get_param: vm_typeX_bialy_guest_vlans}
+ vlan_mirror:
+ ATT_FABRIC_CONFIGURATION_REQUIRED: true
+ metadata:
+ port_type: SR-IOV_Mirrored_Trunk
+
diff --git a/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/fail.yaml b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/fail.yaml
new file mode 100644
index 0000000..e0a7b60
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/fail.yaml
@@ -0,0 +1,56 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+parameters:
+ vm1_name_1:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+ vm2_name_0:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+ vm2_name_2:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/fail2.yaml b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/fail2.yaml
new file mode 100644
index 0000000..77b388e
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/fail2.yaml
@@ -0,0 +1,55 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+parameters:
+ vm3_name_0:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+ vm3_name_2:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+resources:
+ vm1_server_0:
+ type: nested.yaml
diff --git a/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/nested.yaml b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/nested.yaml
new file mode 100644
index 0000000..207d8f6
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/nested.yaml
@@ -0,0 +1,46 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+parameters:
+ vm2_name_16:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
diff --git a/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/nested.yaml b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/nested.yaml
new file mode 100644
index 0000000..71d5419
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/nested.yaml
@@ -0,0 +1,46 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+parameters:
+ vm1_name_16:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
diff --git a/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/pass.yaml b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/pass.yaml
new file mode 100644
index 0000000..4a3a81f
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/pass.yaml
@@ -0,0 +1,51 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+parameters:
+ vm1_name_0:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+ vm1_name_1:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
diff --git a/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/pass2.yaml b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/pass2.yaml
new file mode 100644
index 0000000..6f16fb2
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/pass2.yaml
@@ -0,0 +1,54 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+heat_template_version: 2015-04-30
+
+description: Simple template to deploy a single compute instance
+
+parameters:
+ vm2_name_0:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+ vm2_name_1:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
+
+resources:
+ vm1_server_0:
+ type: nested.yaml
diff --git a/ice_validator/tests/fixtures/test_nova_server_resource_id/fail/fail.yaml b/ice_validator/tests/fixtures/test_nova_server_resource_id/fail/fail.yaml
new file mode 100644
index 0000000..a587025
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_server_resource_id/fail/fail.yaml
@@ -0,0 +1,56 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+
+resources:
+ dont_mind_me:
+ type: not-a-nova-server
+ server_0:
+ type: OS::Nova::Server
+ _server_1:
+ type: OS::Nova::Server
+ _server_:
+ type: OS::Nova::Server
+ foo_server_:
+ type: OS::Nova::Server
+
diff --git a/ice_validator/tests/fixtures/test_nova_server_resource_id/pass/pass.yaml b/ice_validator/tests/fixtures/test_nova_server_resource_id/pass/pass.yaml
new file mode 100644
index 0000000..7f19679
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_server_resource_id/pass/pass.yaml
@@ -0,0 +1,56 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+
+resources:
+ dont_mind_me:
+ type: not-a-nova-server
+ ok_server_0:
+ type: OS::Nova::Server
+ ok_server_1:
+ type: OS::Nova::Server
+ ok_server_2:
+ type: OS::Nova::Server
+ foo_server_0:
+ type: OS::Nova::Server
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet/fail/fail0.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet/fail/fail0.yaml
new file mode 100644
index 0000000..2a31b23
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet/fail/fail0.yaml
@@ -0,0 +1,55 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.1'
+
+# resource of type "OS::Nova::Server" has metadata "valet_groups"
+# FAIL: invalid format
+---
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [vm_type_a_names, 0] }
+ flavor: { get_param: vm_type_a_flavor_name}
+ image: { get_param: vm_type_a_image_name}
+ metadata:
+ valet_groups: 'Valet_Rule, has embedded-space'
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_index/fail/fail0.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet/pass/pass.yaml
index b75f58c..bba5ffd 100644
--- a/ice_validator/tests/fixtures/test_nova_servers_index/fail/fail0.yaml
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet/pass/pass.yaml
@@ -38,7 +38,10 @@
# ECOMP is a trademark and service mark of AT&T Intellectual Property.
#
-# VERSION = '1.0.0'
+# VERSION = '1.0.1'
+
+# resource of type "OS::Nova::Server" has metadata
+# which references parameter "workload_context" of type "string".
---
resources:
@@ -48,25 +51,24 @@ resources:
name: { get_param: [vm_type_a_names, 0] }
flavor: { get_param: vm_type_a_flavor_name}
image: { get_param: vm_type_a_image_name}
+ metadata:
+ valet_groups: 'rule1'
- vm_type_a_server_2:
+ vm_type_a_server_1:
type: OS::Nova::Server
properties:
name: { get_param: [vm_type_a_names, 1] }
flavor: { get_param: vm_type_a_flavor_name}
image: { get_param: vm_type_a_image_name}
+ metadata:
+ valet_groups: 'rule1, rule2, rule3'
- vm_type_b_server_0:
- type: OS::Nova::Server
- properties:
- name: { get_param: vm_type_b_name_0 }
- flavor: { get_param: vm_type_b_flavor_name}
- image: { get_param: vm_type_b_image_name}
-
- vm_type_b_server_1:
+ vm_type_a_server_2:
type: OS::Nova::Server
properties:
- name: { get_param: vm_type_b_name_1 }
- flavor: { get_param: vm_type_b_flavor_name}
- image: { get_param: vm_type_b_image_name}
+ name: { get_param: [vm_type_a_names, 2] }
+ flavor: { get_param: vm_type_a_flavor_name}
+ image: { get_param: vm_type_a_image_name}
+ metadata:
+ valet_groups: 'rule1 , rule2, rule3 '
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail0.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail0.yaml
new file mode 100644
index 0000000..755a397
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail0.yaml
@@ -0,0 +1,69 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+# If resource of type "OS::Nova::Server" has metadata.valet_groups
+# then every "OS::Nova::Server" must have a valid
+# properties.availability_zone.
+---
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ xavailability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: {'get_param': xxxx}
+ $VALET_HOST_ASSIGNMENT: {'get_param': xxxx}
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: {'get_param': xxxx}
+ $VALET_HOST_ASSIGNMENT: {'get_param': xxxx}
+ metadata:
+ valet_groups: 'rule1'
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail1.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail1.yaml
new file mode 100644
index 0000000..29b5706
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail1.yaml
@@ -0,0 +1,69 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+# If resource of type "OS::Nova::Server" has metadata.valet_groups
+# then every "OS::Nova::Server" must have a valid
+# properties.availability_zone.
+---
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ availability_zone:
+ xstr_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: {'get_param': xxxx}
+ $VALET_HOST_ASSIGNMENT: {'get_param': xxxx}
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: {'get_param': xxxx}
+ $VALET_HOST_ASSIGNMENT: {'get_param': xxxx}
+ metadata:
+ valet_groups: 'rule1'
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail2.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail2.yaml
new file mode 100644
index 0000000..1ae0e30
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail2.yaml
@@ -0,0 +1,69 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+# If resource of type "OS::Nova::Server" has metadata.valet_groups
+# then every "OS::Nova::Server" must have a valid
+# properties.availability_zone.
+---
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ availability_zone:
+ str_replace:
+ xtemplate: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: {'get_param': xxxx}
+ $VALET_HOST_ASSIGNMENT: {'get_param': xxxx}
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: {'get_param': xxxx}
+ $VALET_HOST_ASSIGNMENT: {'get_param': xxxx}
+ metadata:
+ valet_groups: 'rule1'
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail3.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail3.yaml
new file mode 100644
index 0000000..4d3ab2b
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail3.yaml
@@ -0,0 +1,69 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+# If resource of type "OS::Nova::Server" has metadata.valet_groups
+# then every "OS::Nova::Server" must have a valid
+# properties.availability_zone.
+---
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ xparams:
+ $AZ: {'get_param': xxxx}
+ $VALET_HOST_ASSIGNMENT: {'get_param': xxxx}
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: {'get_param': xxxx}
+ $VALET_HOST_ASSIGNMENT: {'get_param': xxxx}
+ metadata:
+ valet_groups: 'rule1'
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail4.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail4.yaml
new file mode 100644
index 0000000..5be8642
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail4.yaml
@@ -0,0 +1,69 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+# If resource of type "OS::Nova::Server" has metadata.valet_groups
+# then every "OS::Nova::Server" must have a valid
+# properties.availability_zone.
+---
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ x$AZ: {'get_param': xxxx}
+ $VALET_HOST_ASSIGNMENT: {'get_param': xxxx}
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: {'get_param': xxxx}
+ $VALET_HOST_ASSIGNMENT: {'get_param': xxxx}
+ metadata:
+ valet_groups: 'rule1'
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail5.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail5.yaml
new file mode 100644
index 0000000..a95304d
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail5.yaml
@@ -0,0 +1,69 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+# If resource of type "OS::Nova::Server" has metadata.valet_groups
+# then every "OS::Nova::Server" must have a valid
+# properties.availability_zone.
+---
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: {'xget_param': xxxx}
+ $VALET_HOST_ASSIGNMENT: {'get_param': xxxx}
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: {'get_param': xxxx}
+ $VALET_HOST_ASSIGNMENT: {'get_param': xxxx}
+ metadata:
+ valet_groups: 'rule1'
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail6.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail6.yaml
new file mode 100644
index 0000000..410fc36
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail6.yaml
@@ -0,0 +1,64 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+# If resource of type "OS::Nova::Server" has metadata.valet_groups
+# then every "OS::Nova::Server" must have a valid
+# properties.availability_zone.
+---
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: {'get_param': xxxx}
+ $VALET_HOST_ASSIGNMENT: {'get_param': xxxx}
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ availability_zone: "bogus value here"
+ metadata:
+ valet_groups: 'rule1'
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/pass/pass0.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/pass/pass0.yaml
new file mode 100644
index 0000000..96e733d
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/pass/pass0.yaml
@@ -0,0 +1,69 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+# If resource of type "OS::Nova::Server" has metadata.valet_groups
+# then every "OS::Nova::Server" must have a valid
+# properties.availability_zone.
+---
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: {'get_param': xxxx}
+ $VALET_HOST_ASSIGNMENT: {'get_param': xxxx}
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: {'get_param': xxxx}
+ $VALET_HOST_ASSIGNMENT: {'get_param': xxxx}
+ metadata:
+ valet_groups: 'rule1'
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/pass/pass1.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/pass/pass1.yaml
new file mode 100644
index 0000000..00e4a92
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/pass/pass1.yaml
@@ -0,0 +1,66 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+# If resource of type "OS::Nova::Server" has metadata.valet_groups
+# then every "OS::Nova::Server" must have a valid
+# properties.availability_zone.
+---
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ availability_zone:
+ str_replace:
+ params:
+ $AZ: {'get_param': xxxx}
+ $VALET_HOST_ASSIGNMENT: {'get_param': xxxx}
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: {'get_param': xxxx}
+ $VALET_HOST_ASSIGNMENT: {'get_param': xxxx}
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail0.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail0.yaml
new file mode 100644
index 0000000..6759d45
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail0.yaml
@@ -0,0 +1,93 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+
+parameters:
+ vm_type_a_name_0:
+ type: string
+ description: VM Name for vm_type_a VM 0
+ availability_zone_0:
+ type: string
+ description: availability zone 0 name
+ vm_type_a_valet_host_0:
+ type: string
+ description: Compute Name that vm_type_a VM 0 will be deployed on
+ vm_type_a_name_1:
+ type: string
+ description: VM Name for vm_type_a VM 1
+ availability_zone_1:
+ type: string
+ description: availability zone 1 name
+ vm_type_a_valet_host_1:
+ type: string
+ description: Compute Name that vm_type_a VM 1 will be deployed on
+
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_0}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_0 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 }
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_1}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_1 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_X_valet_host_1 }
+ metadata:
+ valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02"
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail0c.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail0c.yaml
new file mode 100644
index 0000000..07d438d
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail0c.yaml
@@ -0,0 +1,91 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.1.0'
+
+---
+
+parameters:
+ vm_type_a_names:
+ type: string
+ description: VM Names for vm_type_a
+ vm_type_a_valet_hosts:
+ type: comma_delimited_list
+ description: Compute Names that vm_type_a will be deployed on
+ availability_zone_0:
+ type: string
+ description: availability zone 0 name
+ availability_zone_1:
+ type: string
+ description: availability zone 1 name
+
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: [vm_type_a_names, 0]}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_0 }
+ $VALET_HOST_ASSIGNMENT: { get_param: [
+ vm_type_a_valet_hosts,
+ get_param: index]}
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: [vm_type_a_names, 1]}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_1 }
+ $VALET_HOST_ASSIGNMENT: { get_param: [
+ vm_type_a_valet_hosts,
+ get_param: index]}
+ metadata:
+ valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02"
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail1.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail1.yaml
new file mode 100644
index 0000000..4dab3eb
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail1.yaml
@@ -0,0 +1,93 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+
+parameters:
+ vm_type_a_name_0:
+ type: string
+ description: VM Name for vm_type_a VM 0
+ availability_zone_0:
+ type: string
+ description: availability zone 0 name
+ vm_type_a_valet_host_0:
+ type: string
+ description: Compute Name that vm_type_a VM 0 will be deployed on
+ vm_type_a_name_1:
+ type: string
+ description: VM Name for vm_type_a VM 1
+ availability_zone_1:
+ type: string
+ description: availability zone 1 name
+ vm_type_a_valet_host_1:
+ type: string
+ description: Compute Name that vm_type_a VM 1 will be deployed on
+
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_0}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_0 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 }
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_1}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VaLET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_1 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 }
+ metadata:
+ valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02"
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail1c.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail1c.yaml
new file mode 100644
index 0000000..997a06d
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail1c.yaml
@@ -0,0 +1,91 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.1.0'
+
+---
+
+parameters:
+ vm_type_a_names:
+ type: comma_delimited_list
+ description: VM Names for vm_type_a
+ vm_type_a_valet_hosts:
+ type: comma_delimited_list
+ description: Compute Names that vm_type_a will be deployed on
+ availability_zone_0:
+ type: string
+ description: availability zone 0 name
+ availability_zone_2:
+ type: string
+ description: availability zone 2 name
+
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: [vm_type_a_names, 0]}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_0 }
+ $VALET_HOST_ASSIGNMENT: { get_param: [
+ vm_type_a_valet_hosts,
+ get_param: index]}
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: [vm_type_a_names, 1]}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_1 }
+ $VALET_HOST_ASSIGNMENT: { get_param: [
+ vm_type_a_valet_hosts,
+ get_param: index]}
+ metadata:
+ valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02"
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail2.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail2.yaml
new file mode 100644
index 0000000..0643d99
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail2.yaml
@@ -0,0 +1,93 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+
+parameters:
+ vm_type_a_name_0:
+ type: string
+ description: VM Name for vm_type_a VM 0
+ availability_zone_0:
+ type: string
+ description: availability zone 0 name
+ vm_type_a_valet_host_0:
+ type: string
+ description: Compute Name that vm_type_a VM 0 will be deployed on
+ vm_type_a_name_1:
+ type: string
+ description: VM Name for vm_type_a VM 1
+ availability_zone_1:
+ type: string
+ description: availability zone 1 name
+ vm_type_a_valet_host_1:
+ type: string
+ description: Compute Name that vm_type_a VM 1 will be deployed on
+
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_0}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_0 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 }
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_1}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ Xtemplate: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_1 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 }
+ metadata:
+ valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02"
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail2c.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail2c.yaml
new file mode 100644
index 0000000..7eefac6
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail2c.yaml
@@ -0,0 +1,91 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.1.0'
+
+---
+
+parameters:
+ vm_type_a_names:
+ type: comma_delimited_list
+ description: VM Names for vm_type_a
+ vm_type_a_valet_hosts:
+ type: comma_delimited_list
+ description: Compute Names that vm_type_a will be deployed on
+ availability_zone_0:
+ type: string
+ description: availability zone 0 name
+ availability_zone_1:
+ type: string
+ description: availability zone 1 name
+
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: [vm_type_a_names, 0]}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_0 }
+ $VALET_HOST_ASSIGNMENT: { get_param: [
+ vm_type_a_valet_hosts,
+ get_param: index]}
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: [vm_type_a_names, 1]}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_1 }
+ $VALET_HOST_ASSIGNMENT: { get_param: [
+ vm_type_a_valet_hosts,
+ get_param: index]}
+ metadata:
+ valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02"
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail3.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail3.yaml
new file mode 100644
index 0000000..9d6827b
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail3.yaml
@@ -0,0 +1,93 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+
+parameters:
+ vm_type_a_name_0:
+ type: string
+ description: VM Name for vm_type_a VM 0
+ availability_zone_0:
+ type: string
+ description: availability zone 0 name
+ vm_type_a_valet_host_0:
+ type: string
+ description: Compute Name that vm_type_a VM 0 will be deployed on
+ vm_type_a_name_1:
+ type: string
+ description: VM Name for vm_type_a VM 1
+ availability_zone_1:
+ type: string
+ description: availability zone 1 name
+ vm_type_a_valet_host_1:
+ type: string
+ description: Compute Name that vm_type_a VM 1 will be deployed on
+
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_0}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_0 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 }
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_1}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ Xparams:
+ $AZ: { get_param: availability_zone_1 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 }
+ metadata:
+ valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02"
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail4.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail4.yaml
new file mode 100644
index 0000000..b9174eb
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail4.yaml
@@ -0,0 +1,93 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+
+parameters:
+ vm_type_a_name_0:
+ type: string
+ description: VM Name for vm_type_a VM 0
+ availability_zone_0:
+ type: string
+ description: availability zone 0 name
+ vm_type_a_valet_host_0:
+ type: string
+ description: Compute Name that vm_type_a VM 0 will be deployed on
+ vm_type_a_name_1:
+ type: string
+ description: VM Name for vm_type_a VM 1
+ availability_zone_1:
+ type: string
+ description: availability zone 1 name
+ vm_type_a_valet_host_1:
+ type: string
+ description: Compute Name that vm_type_a VM 1 will be deployed on
+
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_0}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_0 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 }
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_1}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ X$AZ: { get_param: availability_zone_1 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 }
+ metadata:
+ valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02"
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail5.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail5.yaml
new file mode 100644
index 0000000..dff47d6
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail5.yaml
@@ -0,0 +1,93 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+
+parameters:
+ vm_type_a_name_0:
+ type: string
+ description: VM Name for vm_type_a VM 0
+ availability_zone_0:
+ type: string
+ description: availability zone 0 name
+ vm_type_a_valet_host_0:
+ type: string
+ description: Compute Name that vm_type_a VM 0 will be deployed on
+ vm_type_a_name_1:
+ type: string
+ description: VM Name for vm_type_a VM 1
+ availability_zone_1:
+ type: string
+ description: availability zone 1 name
+ vm_type_a_valet_host_1:
+ type: string
+ description: Compute Name that vm_type_a VM 1 will be deployed on
+
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_0}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_0 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 }
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_1}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { Xget_param: availability_zone_1 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 }
+ metadata:
+ valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02"
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail6.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail6.yaml
new file mode 100644
index 0000000..46bc241
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail6.yaml
@@ -0,0 +1,93 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+
+parameters:
+ vm_type_a_name_0:
+ type: string
+ description: VM Name for vm_type_a VM 0
+ availability_zone_0:
+ type: string
+ description: availability zone 0 name
+ vm_type_a_valet_host_0:
+ type: string
+ description: Compute Name that vm_type_a VM 0 will be deployed on
+ vm_type_a_name_1:
+ type: string
+ description: VM Name for vm_type_a VM 1
+ availability_zone_1:
+ type: string
+ description: availability zone 1 name
+ vm_type_a_valet_host_1:
+ type: string
+ description: Compute Name that vm_type_a VM 1 will be deployed on
+
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_0}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_0 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 }
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_1}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: Xavailability_zone_1 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 }
+ metadata:
+ valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02"
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail8.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail8.yaml
new file mode 100644
index 0000000..98df513
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail8.yaml
@@ -0,0 +1,93 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+
+parameters:
+ vm_type_a_name_0:
+ type: string
+ description: VM Name for vm_type_a VM 0
+ availability_zone_0:
+ type: string
+ description: availability zone 0 name
+ vm_type_a_valet_host_0:
+ type: string
+ description: Compute Name that vm_type_a VM 0 will be deployed on
+ vm_type_a_name_1:
+ type: string
+ description: VM Name for vm_type_a VM 1
+ Xavailability_zone_1:
+ type: string
+ description: availability zone 1 name
+ vm_type_a_valet_host_1:
+ type: string
+ description: Compute Name that vm_type_a VM 1 will be deployed on
+
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_0}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_0 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 }
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_1}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_1 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 }
+ metadata:
+ valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02"
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail9.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail9.yaml
new file mode 100644
index 0000000..c30b387
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail9.yaml
@@ -0,0 +1,93 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+
+parameters:
+ vm_type_a_name_0:
+ type: string
+ description: VM Name for vm_type_a VM 0
+ availability_zone_0:
+ type: string
+ description: availability zone 0 name
+ vm_type_a_valet_host_0:
+ type: string
+ description: Compute Name that vm_type_a VM 0 will be deployed on
+ vm_type_a_name_1:
+ type: string
+ description: VM Name for vm_type_a VM 1
+ availability_zone_1:
+ type: string
+ description: availability zone 1 name
+ vm_type_a_valet_host_1:
+ type: string
+ description: Compute Name that vm_type_a VM 1 will be deployed on
+
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_0}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_0 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 }
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: Xvm_type_a_name_1}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_1 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 }
+ metadata:
+ valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02"
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/pass/pass0.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/pass/pass0.yaml
new file mode 100644
index 0000000..beca864
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/pass/pass0.yaml
@@ -0,0 +1,93 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+
+parameters:
+ vm_type_a_name_0:
+ type: string
+ description: VM Name for vm_type_a VM 0
+ availability_zone_0:
+ type: string
+ description: availability zone 0 name
+ vm_type_a_valet_host_0:
+ type: string
+ description: Compute Name that vm_type_a VM 0 will be deployed on
+ vm_type_a_name_1:
+ type: string
+ description: VM Name for vm_type_a VM 1
+ availability_zone_1:
+ type: string
+ description: availability zone 1 name
+ vm_type_a_valet_host_1:
+ type: string
+ description: Compute Name that vm_type_a VM 1 will be deployed on
+
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_0}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_0 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 }
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: vm_type_a_name_1}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_1 }
+ $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 }
+ metadata:
+ valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02"
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/pass/pass1.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/pass/pass1.yaml
new file mode 100644
index 0000000..a00446b
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/pass/pass1.yaml
@@ -0,0 +1,91 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+
+parameters:
+ vm_type_a_names:
+ type: comma_delimited_list
+ description: VM Names for vm_type_a
+ vm_type_a_valet_hosts:
+ type: comma_delimited_list
+ description: Compute Names that vm_type_a will be deployed on
+ availability_zone_0:
+ type: string
+ description: availability zone 0 name
+ availability_zone_1:
+ type: string
+ description: availability zone 1 name
+
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: [vm_type_a_names, 0]}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_0 }
+ $VALET_HOST_ASSIGNMENT: { get_param: [
+ vm_type_a_valet_hosts,
+ 0]}
+
+ vm_type_a_server_1:
+ type: OS::Nova::Server
+ properties:
+ name: {get_param: [vm_type_a_names, 1]}
+ flavor: ...
+ image: ...
+ availability_zone:
+ str_replace:
+ template: '$AZ$VALET_HOST_ASSIGNMENT'
+ params:
+ $AZ: { get_param: availability_zone_1 }
+ $VALET_HOST_ASSIGNMENT: { get_param: [
+ vm_type_a_valet_hosts,
+ 1]}
+ metadata:
+ valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02"
+
diff --git a/ice_validator/tests/fixtures/test_port_connected_to_multiple_servers/fail/base_mod.yaml b/ice_validator/tests/fixtures/test_port_connected_to_multiple_servers/fail/base_mod.yaml
new file mode 100644
index 0000000..0dc304e
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_port_connected_to_multiple_servers/fail/base_mod.yaml
@@ -0,0 +1,21 @@
+heat_template_version: 2014-10-16
+
+resources:
+
+ vmtype_0_nr_port_0:
+ type: OS::Neutron::Port
+
+ vmtype_0_nr_port_1:
+ type: OS::Neutron::Port
+
+ vmtype_server_0:
+ type: OS::Nova::Server
+ properties:
+ networks:
+ - port: { get_resource: vmtype_0_nr_port_0}
+
+ vmtype_server_1:
+ type: OS::Nova::Server
+ properties:
+ networks:
+ - port: { get_resource: vmtype_0_nr_port_0}
diff --git a/ice_validator/tests/fixtures/test_port_connected_to_multiple_servers/pass/base_mod.yaml b/ice_validator/tests/fixtures/test_port_connected_to_multiple_servers/pass/base_mod.yaml
new file mode 100644
index 0000000..36d3f6e
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_port_connected_to_multiple_servers/pass/base_mod.yaml
@@ -0,0 +1,21 @@
+heat_template_version: 2014-10-16
+
+resources:
+
+ vmtype_0_nr_port_0:
+ type: OS::Neutron::Port
+
+ vmtype_0_nr_port_1:
+ type: OS::Neutron::Port
+
+ vmtype_server_0:
+ type: OS::Nova::Server
+ properties:
+ networks:
+ - port: { get_resource: vmtype_0_nr_port_0}
+
+ vmtype_server_1:
+ type: OS::Nova::Server
+ properties:
+ networks:
+ - port: { get_resource: vmtype_0_nr_port_1}
diff --git a/ice_validator/tests/fixtures/test_port_resource_ids/pass/valid_template.yaml b/ice_validator/tests/fixtures/test_port_resource_ids/pass/valid_template.yaml
index 504fbdc..6471a84 100644
--- a/ice_validator/tests/fixtures/test_port_resource_ids/pass/valid_template.yaml
+++ b/ice_validator/tests/fixtures/test_port_resource_ids/pass/valid_template.yaml
@@ -136,7 +136,7 @@ resources:
name: { get_param: [admin_names, 2] }
flavor: { get_param: admin_flavor_name}
networks:
- - port: { get_resource: admin_2_int_vpnnet_port_0 }
+ - port: { get_resource: admin_2_int_oam_port_0 }
metadata:
vnf_name: { get_param: vnf_name }
vnf_id: { get_param: vnf_id }
@@ -172,15 +172,14 @@ resources:
properties:
network: { get_param: extnet_net_id }
- int_oam_net:
+ int_oam_network:
type: OS::Neutron::Net
properties:
name: { get_param: int_oam_net_name }
- admin_2_int_vpnnet_port_0:
+ admin_2_int_oam_port_0:
type: OS::Neutron::Port
properties:
- network: { get_resource: int_oam_net }
+ network: { get_resource: int_oam_network }
fixed_ips:
- ip_address: { get_param: [db_1_int_vpnnet_ips, 0] }
- - ip_address: { get_param: [db_1_int_vpnnet_ips, 1] }
diff --git a/ice_validator/tests/fixtures/test_required_parameters_no_constraints/fail/heat_template_required_parameters_with_constraints.yaml b/ice_validator/tests/fixtures/test_required_parameters_no_constraints/fail/heat_template_required_parameters_with_constraints.yaml
index 1a49f68..f3507cd 100644
--- a/ice_validator/tests/fixtures/test_required_parameters_no_constraints/fail/heat_template_required_parameters_with_constraints.yaml
+++ b/ice_validator/tests/fixtures/test_required_parameters_no_constraints/fail/heat_template_required_parameters_with_constraints.yaml
@@ -78,4 +78,44 @@ parameters:
- allowed_values:
- 0
- 5
+ - 10
+ environment_context:
+ type: string
+ description: Unique ID for this VNF Module instance
+ constraints:
+ - range: { min: 0, max: 10 }
+ description: allowed range of values
+ - allowed_values:
+ - 0
+ - 5
+ - 10
+ workload_context:
+ type: string
+ description: Unique ID for this VNF Module instance
+ constraints:
+ - range: { min: 0, max: 10 }
+ description: allowed range of values
+ - allowed_values:
+ - 0
+ - 5
+ - 10
+ vf_module_index:
+ type: string
+ description: Unique ID for this VNF Module instance
+ constraints:
+ - range: { min: 0, max: 10 }
+ description: allowed range of values
+ - allowed_values:
+ - 0
+ - 5
+ - 10
+ vm_role:
+ type: string
+ description: Unique ID for this VNF Module instance
+ constraints:
+ - range: { min: 0, max: 10 }
+ description: allowed range of values
+ - allowed_values:
+ - 0
+ - 5
- 10 \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_format/pass/valid_base_heat_template.yaml b/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_format/pass/valid_base_heat_template.yaml
deleted file mode 100644
index 2efaa5d..0000000
--- a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_format/pass/valid_base_heat_template.yaml
+++ /dev/null
@@ -1,69 +0,0 @@
-# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
-# org.onap.vvp/validation-scripts
-# ===================================================================
-# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the "License");
-# you may not use this software 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.
-#
-#
-#
-# Unless otherwise specified, all documentation contained herein is licensed
-# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
-# you may not use this documentation except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://creativecommons.org/licenses/by/4.0/
-#
-# Unless required by applicable law or agreed to in writing, documentation
-# 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.
-#
-# ============LICENSE_END============================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
----
-resources:
-
- reserve_port_lb_1_int_intranet_floating_ip_0:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_intranet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_int_intranet_floating_ip }
-
- reserve_port_lb_2_int_intranet_floating_v6_ip_0:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_intranet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip }
-
- reserve_port_lb_1_extnet_floating_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_floating_ip }
-
- reserve_port_lb_2_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_extnet_floating_v6_ip } \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/fail/invalid_base_heat_template_1.yaml b/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/fail/invalid_base_heat_template_1.yaml
deleted file mode 100644
index 1fd21a2..0000000
--- a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/fail/invalid_base_heat_template_1.yaml
+++ /dev/null
@@ -1,90 +0,0 @@
-# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
-# org.onap.vvp/validation-scripts
-# ===================================================================
-# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the "License");
-# you may not use this software 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.
-#
-#
-#
-# Unless otherwise specified, all documentation contained herein is licensed
-# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
-# you may not use this documentation except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://creativecommons.org/licenses/by/4.0/
-#
-# Unless required by applicable law or agreed to in writing, documentation
-# 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.
-#
-# ============LICENSE_END============================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
----
-resources:
-
- reserve_port_lb_1_extnet_floating_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_floating_ip }
-
- reserve_port_lb_2_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
-
- reserve_port_lb_1_extnet_floating_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_floating_ip }
-
- reserve_port_lb_2_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
-
- lb_3_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_3_extnet_floating_v6_ip }
-
-outputs:
-
- lb_1_int_intranet_vip:
- description: "vip for lb_1_int_intranet_floating_ip"
- value: { get_param: lb_1_int_intranet_floating_ip }
-
- lb_2_int_intranet_v6_vip:
- description: "vip for lb_2_int_intranet_v6_vip"
- value: { get_param: lb_2_int_intranet_floating_v6_ip }
-
- lb_1_extnet_vip:
- description: "vip for lb_1_extnet_floating_ip"
- value: { get_param: lb_1_extnet_floating_ip } \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/fail/invalid_base_heat_template_2.yaml b/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/fail/invalid_base_heat_template_2.yaml
deleted file mode 100644
index d4e38e6..0000000
--- a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/fail/invalid_base_heat_template_2.yaml
+++ /dev/null
@@ -1,95 +0,0 @@
-# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
-# org.onap.vvp/validation-scripts
-# ===================================================================
-# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the "License");
-# you may not use this software 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.
-#
-#
-#
-# Unless otherwise specified, all documentation contained herein is licensed
-# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
-# you may not use this documentation except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://creativecommons.org/licenses/by/4.0/
-#
-# Unless required by applicable law or agreed to in writing, documentation
-# 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.
-#
-# ============LICENSE_END============================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
----
-resources:
-
- reserve_port_lb_1_extnet_floating_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_floating_ip }
-
- reserve_port_lb_2_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
-
- reserve_port_lb_1_extnet_floating_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_floating_ip }
-
- reserve_port_lb_2_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
-
- lb_3_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_3_extnet_floating_v6_ip }
-
-outputs:
-
-
- lb_1_int_intranet_vip:
- description: "vip for lb_1_int_intranet_floating_ip"
- value: { get_param: lb_1_int_intranet_floating_ip }
-
- lb_2_int_intranet_v6_vip:
- description: "vip for lb_2_int_intranet_v6_vip"
- value: { get_param: lb_2_int_intranet_floating_v6_ip }
-
- lb_1_extnet_vip:
- description: "vip for lb_1_extnet_floating_ip"
- value: { get_param: lb_1_extnet_floating_ip }
-
- lb_2_extnet_v6_vip:
- description: "vip for lb_2_extnet_floating_v6_ip"
- value: { get_param: lb_2_extnet_floating_v6_ips } \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/pass/valid_base_heat_template_1.yaml b/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/pass/valid_base_heat_template_1.yaml
deleted file mode 100644
index 9d52e98..0000000
--- a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/pass/valid_base_heat_template_1.yaml
+++ /dev/null
@@ -1,94 +0,0 @@
-# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
-# org.onap.vvp/validation-scripts
-# ===================================================================
-# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the "License");
-# you may not use this software 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.
-#
-#
-#
-# Unless otherwise specified, all documentation contained herein is licensed
-# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
-# you may not use this documentation except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://creativecommons.org/licenses/by/4.0/
-#
-# Unless required by applicable law or agreed to in writing, documentation
-# 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.
-#
-# ============LICENSE_END============================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
----
-resources:
-
- reserve_port_lb_1_extnet_floating_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_floating_ip }
-
- reserve_port_lb_2_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
-
- reserve_port_lb_1_extnet_floating_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_floating_ip }
-
- reserve_port_lb_2_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
-
- lb_3_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_3_extnet_floating_v6_ip }
-
-outputs:
-
- lb_1_int_intranet_vip:
- description: "vip for lb_1_int_intranet_floating_ip"
- value: { get_param: lb_1_int_intranet_floating_ip }
-
- lb_2_int_intranet_v6_vip:
- description: "vip for lb_2_int_intranet_v6_vip"
- value: { get_param: lb_2_int_intranet_floating_v6_ip }
-
- lb_1_extnet_vip:
- description: "vip for lb_1_extnet_floating_ip"
- value: { get_param: lb_1_extnet_floating_ip }
-
- lb_2_extnet_v6_vip:
- description: "vip for lb_2_extnet_floating_v6_ip"
- value: { get_param: lb_2_extnet_floating_v6_ip } \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/pass/valid_base_heat_template_2.yaml b/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/pass/valid_base_heat_template_2.yaml
deleted file mode 100644
index ebec57b..0000000
--- a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/pass/valid_base_heat_template_2.yaml
+++ /dev/null
@@ -1,76 +0,0 @@
-# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
-# org.onap.vvp/validation-scripts
-# ===================================================================
-# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the "License");
-# you may not use this software 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.
-#
-#
-#
-# Unless otherwise specified, all documentation contained herein is licensed
-# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
-# you may not use this documentation except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://creativecommons.org/licenses/by/4.0/
-#
-# Unless required by applicable law or agreed to in writing, documentation
-# 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.
-#
-# ============LICENSE_END============================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
----
-resources:
-
- lb_1_extnet_floating_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_floating_ip }
-
- lb_2_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
-
- lb_1_extnet_floating_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_floating_ip }
-
- lb_2_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_extnet_floating_v6_ip }
-
- lb_3_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_3_extnet_floating_v6_ip }
diff --git a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_1.yaml b/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_1.yaml
deleted file mode 100644
index 2efaa5d..0000000
--- a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_1.yaml
+++ /dev/null
@@ -1,69 +0,0 @@
-# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
-# org.onap.vvp/validation-scripts
-# ===================================================================
-# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the "License");
-# you may not use this software 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.
-#
-#
-#
-# Unless otherwise specified, all documentation contained herein is licensed
-# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
-# you may not use this documentation except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://creativecommons.org/licenses/by/4.0/
-#
-# Unless required by applicable law or agreed to in writing, documentation
-# 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.
-#
-# ============LICENSE_END============================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
----
-resources:
-
- reserve_port_lb_1_int_intranet_floating_ip_0:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_intranet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_int_intranet_floating_ip }
-
- reserve_port_lb_2_int_intranet_floating_v6_ip_0:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_intranet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip }
-
- reserve_port_lb_1_extnet_floating_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_floating_ip }
-
- reserve_port_lb_2_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_extnet_floating_v6_ip } \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_2.yaml b/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_2.yaml
deleted file mode 100644
index 90d46c3..0000000
--- a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_2.yaml
+++ /dev/null
@@ -1,69 +0,0 @@
-# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
-# org.onap.vvp/validation-scripts
-# ===================================================================
-# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the "License");
-# you may not use this software 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.
-#
-#
-#
-# Unless otherwise specified, all documentation contained herein is licensed
-# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
-# you may not use this documentation except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://creativecommons.org/licenses/by/4.0/
-#
-# Unless required by applicable law or agreed to in writing, documentation
-# 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.
-#
-# ============LICENSE_END============================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
----
-resources:
-
- lb_1_int_intranet_floating_ip_0:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_intranet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_int_intranet_floating_ip }
-
- lb_2_int_intranet_floating_v6_ip_0:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_intranet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip }
-
- lb_1_extnet_floating_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_floating_ip }
-
- lb_2_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_extnet_floating_v6_ip } \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_3.yaml b/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_3.yaml
deleted file mode 100644
index 6cb3fb4..0000000
--- a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_3.yaml
+++ /dev/null
@@ -1,69 +0,0 @@
-# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
-# org.onap.vvp/validation-scripts
-# ===================================================================
-# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the "License");
-# you may not use this software 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.
-#
-#
-#
-# Unless otherwise specified, all documentation contained herein is licensed
-# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
-# you may not use this documentation except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://creativecommons.org/licenses/by/4.0/
-#
-# Unless required by applicable law or agreed to in writing, documentation
-# 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.
-#
-# ============LICENSE_END============================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
----
-resources:
-
- reserve_port_lb_1_int_intranet_floating_ip_0:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_intranet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_int_intranet_floating_ip }
-
- lb_2_int_intranet_floating_v6_ip_0:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_intranet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip }
-
- lb_1_extnet_floating_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_floating_ip }
-
- lb_2_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_extnet_floating_v6_ip } \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_module_heat_template.yaml b/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_module_heat_template.yaml
deleted file mode 100644
index 90d46c3..0000000
--- a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_module_heat_template.yaml
+++ /dev/null
@@ -1,69 +0,0 @@
-# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
-# org.onap.vvp/validation-scripts
-# ===================================================================
-# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the "License");
-# you may not use this software 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.
-#
-#
-#
-# Unless otherwise specified, all documentation contained herein is licensed
-# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
-# you may not use this documentation except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://creativecommons.org/licenses/by/4.0/
-#
-# Unless required by applicable law or agreed to in writing, documentation
-# 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.
-#
-# ============LICENSE_END============================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
----
-resources:
-
- lb_1_int_intranet_floating_ip_0:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_intranet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_int_intranet_floating_ip }
-
- lb_2_int_intranet_floating_v6_ip_0:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_intranet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip }
-
- lb_1_extnet_floating_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_floating_ip }
-
- lb_2_extnet_floating_v6_ip_1:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - ip_address: { get_param: lb_2_extnet_floating_v6_ip } \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_resource_indices/fail/fail0.yaml b/ice_validator/tests/fixtures/test_resource_indices/fail/fail0.yaml
new file mode 100644
index 0000000..18c78b5
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_resource_indices/fail/fail0.yaml
@@ -0,0 +1,84 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+resources:
+
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [vm_type_a_names, 0] }
+ flavor: { get_param: vm_type_a_flavor_name}
+ image: { get_param: vm_type_a_image_name}
+
+ vm_type_a_server_2:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [vm_type_a_names, 1] }
+ flavor: { get_param: vm_type_a_flavor_name}
+ image: { get_param: vm_type_a_image_name}
+
+ vm_type_b_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: vm_type_b_name_0 }
+ flavor: { get_param: vm_type_b_flavor_name}
+ image: { get_param: vm_type_b_image_name}
+
+ vm_type_b_server_1:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: vm_type_b_name_1 }
+ flavor: { get_param: vm_type_b_flavor_name}
+ image: { get_param: vm_type_b_image_name}
+
+ vm_type_b_0_port_0:
+ type: OS::Neutron::Port
+
+ vm_type_b_0_port_1:
+ type: OS::Neutron::Port
+
+ vm_type_b_1_port_2:
+ type: OS::Neutron::Port
+
+ vm_type_b_1_port_3:
+ type: nested.yaml
diff --git a/ice_validator/tests/fixtures/test_resource_indices/fail/nested.yaml b/ice_validator/tests/fixtures/test_resource_indices/fail/nested.yaml
new file mode 100644
index 0000000..a30cef9
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_resource_indices/fail/nested.yaml
@@ -0,0 +1,55 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+
+resources:
+ vm_type_c_server_1:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [vm_type_a_names, 0] }
+ flavor: { get_param: vm_type_a_flavor_name}
+ image: { get_param: vm_type_a_image_name}
+
+ vm_type_b_server_3:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: vm_type_b_name_0 }
+ flavor: { get_param: vm_type_b_flavor_name}
+ image: { get_param: vm_type_b_image_name}
+
+
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_index/fail/fail1.yaml b/ice_validator/tests/fixtures/test_resource_indices/pass/nested.yaml
index 4ee1d8b..034d1ad 100644
--- a/ice_validator/tests/fixtures/test_nova_servers_index/fail/fail1.yaml
+++ b/ice_validator/tests/fixtures/test_resource_indices/pass/nested.yaml
@@ -35,38 +35,28 @@
#
# ============LICENSE_END============================================
#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
-
-# VERSION = '1.0.0'
----
resources:
- vm_type_a_server_2:
+ vm_type_c_server_0:
type: OS::Nova::Server
properties:
name: { get_param: [vm_type_a_names, 0] }
flavor: { get_param: vm_type_a_flavor_name}
image: { get_param: vm_type_a_image_name}
- vm_type_a_server_1:
+ vm_type_c_server_1:
type: OS::Nova::Server
properties:
name: { get_param: [vm_type_a_names, 1] }
flavor: { get_param: vm_type_a_flavor_name}
image: { get_param: vm_type_a_image_name}
- vm_type_b_server_0:
+ vm_type_b_server_2:
type: OS::Nova::Server
properties:
name: { get_param: vm_type_b_name_0 }
flavor: { get_param: vm_type_b_flavor_name}
image: { get_param: vm_type_b_image_name}
- vm_type_b_server_1:
- type: OS::Nova::Server
- properties:
- name: { get_param: vm_type_b_name_1 }
- flavor: { get_param: vm_type_b_flavor_name}
- image: { get_param: vm_type_b_image_name}
+
diff --git a/ice_validator/tests/fixtures/test_nova_servers_index/pass/pass0.yaml b/ice_validator/tests/fixtures/test_resource_indices/pass/pass0.yaml
index 5f4a931..76ab92f 100644
--- a/ice_validator/tests/fixtures/test_nova_servers_index/pass/pass0.yaml
+++ b/ice_validator/tests/fixtures/test_resource_indices/pass/pass0.yaml
@@ -70,3 +70,16 @@ resources:
flavor: { get_param: vm_type_b_flavor_name}
image: { get_param: vm_type_b_image_name}
+ vm_type_b_0_port_0:
+ type: OS::Neutron::Port
+
+ vm_type_b_0_port_1:
+ type: OS::Neutron::Port
+
+ vm_type_b_1_port_0:
+ type: OS::Neutron::Port
+
+ nested_yaml:
+ type: nested.yaml
+
+
diff --git a/ice_validator/tests/fixtures/test_server_parameters/fail/fail.yaml b/ice_validator/tests/fixtures/test_server_parameters/fail/fail.yaml
new file mode 100644
index 0000000..d103a86
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_server_parameters/fail/fail.yaml
@@ -0,0 +1,72 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+description: base
+
+parameters:
+ vm_role:
+ type: number
+ vnf_id:
+ type: number
+ vf_module_id:
+ type: number
+ vnf_name:
+ type: number
+ vf_module_name:
+ type: number
+ vf_module_index:
+ type: string
+ availability_zone_0:
+ type: number
+
+resources:
+ server_0:
+ type: OS::Nova::Server
+ properties:
+ metadata:
+ vm_role: { get_param: vm_role }
+ vnf_id: { get_param: vnf_id }
+ vf_module_id: { get_param: vf_module_id }
+ vnf_name: { get_param: vnf_name }
+ vf_module_name: { get_param: vf_module_name }
+ vf_module_index: { get_param: vf_module_index }
diff --git a/ice_validator/tests/fixtures/test_server_parameters/pass/pass.yaml b/ice_validator/tests/fixtures/test_server_parameters/pass/pass.yaml
new file mode 100644
index 0000000..0998152
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_server_parameters/pass/pass.yaml
@@ -0,0 +1,72 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+description: base
+
+parameters:
+ vm_role:
+ type: string
+ vnf_id:
+ type: string
+ vf_module_id:
+ type: string
+ vnf_name:
+ type: string
+ vf_module_name:
+ type: string
+ vf_module_index:
+ type: number
+ availability_zone_0:
+ type: string
+
+resources:
+ server_0:
+ type: OS::Nova::Server
+ properties:
+ metadata:
+ vm_role: { get_param: vm_role }
+ vnf_id: { get_param: vnf_id }
+ vf_module_id: { get_param: vf_module_id }
+ vnf_name: { get_param: vnf_name }
+ vf_module_name: { get_param: vf_module_name }
+ vf_module_index: { get_param: vf_module_index }
diff --git a/ice_validator/tests/fixtures/test_servers_metadata_use_get_param/fail/not_using_get_param.yaml b/ice_validator/tests/fixtures/test_servers_metadata_use_get_param/fail/not_using_get_param.yaml
index cad3301..4e38fb5 100644
--- a/ice_validator/tests/fixtures/test_servers_metadata_use_get_param/fail/not_using_get_param.yaml
+++ b/ice_validator/tests/fixtures/test_servers_metadata_use_get_param/fail/not_using_get_param.yaml
@@ -44,9 +44,13 @@ resources:
properties:
name: {get_param: server_name_0}
metadata:
- vf_module_id:
- - vf_module_id
- vnf_id:
- - vnf_id
- vnf_name:
- - vnf_name
+ #vf_module_id: { get_param: vf_module_id }
+ #vnf_id: { get_param: vnf_id }
+ #vnf_name: { get_param: vnf_name }
+ #vf_module_name: { get_param: vf_module_name }
+ #vf_module_index: { get_param: vf_module_index }
+ vf_module_id: fadsfdsa
+ vnf_id: dasfasd
+ vnf_name: dsafasdf
+ vf_module_name: dfadsf
+ vf_module_index: dsafsadf
diff --git a/ice_validator/tests/fixtures/test_software_config_resource_id/fail/fail.yaml b/ice_validator/tests/fixtures/test_software_config_resource_id/fail/fail.yaml
new file mode 100644
index 0000000..9fa9f18
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_software_config_resource_id/fail/fail.yaml
@@ -0,0 +1,56 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+
+ vm_type_b_0_romeo_port_0:
+ type: OS::Neutron::Port
+
+ vm_type_c_0_int_romeo_port_0:
+ type: OS::Heat::SoftwareConfig
+
+ say_what_vm_type_c_0_port_0:
+ type: OS::Heat::SoftwareConfig
+
diff --git a/ice_validator/tests/fixtures/test_software_config_resource_id/pass/pass.yaml b/ice_validator/tests/fixtures/test_software_config_resource_id/pass/pass.yaml
new file mode 100644
index 0000000..fd14e55
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_software_config_resource_id/pass/pass.yaml
@@ -0,0 +1,56 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+---
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+
+ vm_type_b_0_romeo_port_0:
+ type: OS::Neutron::Port
+
+ vm_type_a_0_int_romeo_port_0:
+ type: OS::Heat::SoftwareConfig
+
+ say_what_vm_type_a_0_port_0:
+ type: OS::Heat::SoftwareConfig
+
diff --git a/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/fail/get_param_not_used_for_subnet.yaml b/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/fail/get_param_not_used_for_subnet.yaml
deleted file mode 100644
index 81908c2..0000000
--- a/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/fail/get_param_not_used_for_subnet.yaml
+++ /dev/null
@@ -1,86 +0,0 @@
-# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
-# org.onap.vvp/validation-scripts
-# ===================================================================
-# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the "License");
-# you may not use this software 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.
-#
-#
-#
-# Unless otherwise specified, all documentation contained herein is licensed
-# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
-# you may not use this documentation except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://creativecommons.org/licenses/by/4.0/
-#
-# Unless required by applicable law or agreed to in writing, documentation
-# 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.
-#
-# ============LICENSE_END============================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
----
-resources:
- vm_type_1_int_intranet_0_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_intranet_net_name }
- fixed_ips:
- - subnet_id: { get_param: int_intranet_subnet_id }
- - subnet_id: { get_param: int_intranet_v6_subnet_id }
-
- vm_type_1_int_vpnnet_1_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_vpnnet_net_id }
- fixed_ips:
- - ip_address: { get_param: [db_1_int_vpnnet_ips, 0] }
- - subnet_id: { get_param1: int_vpnnet_subnet_id }
-
- vm_type_1_int_vpnnet_2_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_vpnnet_net_id }
- fixed_ips:
- - ip_address: { get_param: [db_1_int_vpnnet_ips, 0] }
- - subnet_id: { int_vpnnet_subnet_id }
-
- vm_type_1_extnet_net_3_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_ip_0 }
- - subnet_id: { get_param: extnet_subnet_id }
-
- vm_type_1_extnet_4_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - subnet_id: { get_param: extnet_subnet_id }
- - subnet_id: { get_param: extnet_v6_subnet_id }
-
- vm_type_1_extnet_5_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
-
diff --git a/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/fail/get_resource_used_for_external_network.yaml b/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/fail/get_resource_used_for_external_network.yaml
deleted file mode 100644
index e2ad5f4..0000000
--- a/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/fail/get_resource_used_for_external_network.yaml
+++ /dev/null
@@ -1,86 +0,0 @@
-# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
-# org.onap.vvp/validation-scripts
-# ===================================================================
-# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the "License");
-# you may not use this software 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.
-#
-#
-#
-# Unless otherwise specified, all documentation contained herein is licensed
-# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
-# you may not use this documentation except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://creativecommons.org/licenses/by/4.0/
-#
-# Unless required by applicable law or agreed to in writing, documentation
-# 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.
-#
-# ============LICENSE_END============================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
----
-resources:
- vm_type_1_int_intranet_0_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_intranet_net_name }
- fixed_ips:
- - subnet_id: { get_param: int_intranet_subnet_id }
- - subnet_id: { get_param: int_intranet_v6_subnet_id }
-
- vm_type_1_int_vpnnet_1_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_vpnnet_net_id }
- fixed_ips:
- - ip_address: { get_param: [db_1_int_vpnnet_ips, 0] }
- - subnet_id: { get_param: int_vpnnet_subnet_id }
-
- vm_type_1_int_vpnnet_2_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_vpnnet_net_id }
- fixed_ips:
- - ip_address: { get_param: [db_1_int_vpnnet_ips, 0] }
- - subnet_id: { get_resource: int_vpnnet_subnet_id }
-
- vm_type_1_extnet_net_3_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_ip_0 }
- - subnet_id: { get_param: extnet_subnet_id }
-
- vm_type_1_extnet_4_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - subnet_id: { get_param: extnet_subnet_id }
- - subnet_id: { get_resource: extnet_v6_subnet_id }
-
- vm_type_1_extnet_5_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
-
diff --git a/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/pass/valid_heat_template.yaml b/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/pass/valid_heat_template.yaml
deleted file mode 100644
index d6bf4bf..0000000
--- a/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/pass/valid_heat_template.yaml
+++ /dev/null
@@ -1,86 +0,0 @@
-# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
-# org.onap.vvp/validation-scripts
-# ===================================================================
-# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the "License");
-# you may not use this software 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.
-#
-#
-#
-# Unless otherwise specified, all documentation contained herein is licensed
-# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
-# you may not use this documentation except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://creativecommons.org/licenses/by/4.0/
-#
-# Unless required by applicable law or agreed to in writing, documentation
-# 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.
-#
-# ============LICENSE_END============================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
----
-resources:
- vm_type_1_int_intranet_0_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_intranet_net_name }
- fixed_ips:
- - subnet_id: { get_param: int_intranet_subnet_id }
- - subnet_id: { get_param: int_intranet_v6_subnet_id }
-
- vm_type_1_int_vpnnet_1_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_vpnnet_net_id }
- fixed_ips:
- - ip_address: { get_param: [db_1_int_vpnnet_ips, 0] }
- - subnet_id: { get_param: int_vpnnet_subnet_id }
-
- vm_type_1_int_vpnnet_2_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: int_vpnnet_net_id }
- fixed_ips:
- - ip_address: { get_param: [db_1_int_vpnnet_ips, 0] }
- - subnet_id: { get_resource: int_vpnnet_subnet_id }
-
- vm_type_1_extnet_net_3_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_name }
- fixed_ips:
- - ip_address: { get_param: lb_1_extnet_ip_0 }
- - subnet_id: { get_param: extnet_subnet_id }
-
- vm_type_1_extnet_4_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
- fixed_ips:
- - subnet_id: { get_param: extnet_subnet_id }
- - subnet_id: { get_param: extnet_v6_subnet_id }
-
- vm_type_1_extnet_5_port:
- type: OS::Neutron::Port
- properties:
- network: { get_param: extnet_net_id }
-
diff --git a/ice_validator/tests/fixtures/test_unique_name_resources/fail/heat_template_1.yaml b/ice_validator/tests/fixtures/test_unique_name_resources/fail/heat_template_1.yaml
deleted file mode 100644
index 22c73de..0000000
--- a/ice_validator/tests/fixtures/test_unique_name_resources/fail/heat_template_1.yaml
+++ /dev/null
@@ -1,108 +0,0 @@
-# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
-# org.onap.vvp/validation-scripts
-# ===================================================================
-# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the "License");
-# you may not use this software 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.
-#
-#
-#
-# Unless otherwise specified, all documentation contained herein is licensed
-# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
-# you may not use this documentation except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://creativecommons.org/licenses/by/4.0/
-#
-# Unless required by applicable law or agreed to in writing, documentation
-# 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.
-#
-# ============LICENSE_END============================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
----
-resources:
- lb_server_0:
- type: OS::Nova::Server
- properties:
- availability_zone: { get_param: availability_zone_0 }
- name: { get_param: [vm_type_a_names, 0] }
- flavor: { get_param: vm_type_a_flavor_name}
- image: { get_param: vm_type_a_image_name}
- block_device_mapping: [{ device_name: "vda", volume_id : { get_param : vm_type_a_cinder_volume_id_0 }, delete_on_termination : "false" }]
- metadata:
- vnf_name: { get_param: vnf_name }
- vnf_id: { get_param: vnf_id }
- vf_module_id: { get_param: vf_module_id }
-
- lb_server_3:
- type: OS::Nova::Server
- properties:
- availability_zone: { get_param: availability_zone_0 }
- name: { get_param: [vm_type_a_names, { get_param: lb_server_index }] }
- flavor: { get_param: vm_type_a_flavor_name}
- image: { get_param: vm_type_a_image_name}
- block_device_mapping: [{ device_name: "vda", volume_id : { get_param : vm_type_a_cinder_volume_id_0 }, delete_on_termination : "false" }]
- metadata:
- vnf_name: { get_param: vnf_name }
- vnf_id: { get_param: vnf_id }
- vf_module_id: { get_param: vf_module_id }
-
- lb_volume_0:
- type: OS::Cinder::Volume
- properties:
- name:
- str_replace:
- template: VNF_NAME_STACK_NAME_oam_volume
- params:
- VNF_NAME: { get_param: vnf_name }
- STACK_NAME: { get_param: 'OS::stack_name' }
-
- lb_volume_0:
- type: OS::Cinder::Volume
- properties:
- name:
- str_replace:
- template: MODULE_ID_STACK_NAME_oam_volume
- params:
- STACK_NAME: { get_param: 'OS::stack_name' }
- MODULE_ID: { get_param: vnf_module_id }
-
- lb_volume_1:
- type: OS::Cinder::Volume
- properties:
- name:
- str_replace:
- template: VNF_NAME_STACK_NAME_MODULE_ID_oam_volume
- params:
- VNF_NAME: { get_param: vnf_name }
- STACK_NAME: { get_param: 'OS::stack_name' }
- MODULE_ID: { get_param: vnf_module_id }
-
- my_keypair:
- type: OS::Nova::Keypair
- properties:
- name:
- str_replace:
- template: VNF_NAME_key_pair
- params:
- VNF_NAME: { get_param: vnf_name }
- public_key: {get_param: ssh_public_key}
- save_private_key: false
diff --git a/ice_validator/tests/fixtures/test_unique_name_resources/fail/heat_template_2_identical_to_heat_template_2.yaml b/ice_validator/tests/fixtures/test_unique_name_resources/fail/heat_template_2_identical_to_heat_template_2.yaml
deleted file mode 100644
index 22c73de..0000000
--- a/ice_validator/tests/fixtures/test_unique_name_resources/fail/heat_template_2_identical_to_heat_template_2.yaml
+++ /dev/null
@@ -1,108 +0,0 @@
-# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
-# org.onap.vvp/validation-scripts
-# ===================================================================
-# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the "License");
-# you may not use this software 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.
-#
-#
-#
-# Unless otherwise specified, all documentation contained herein is licensed
-# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
-# you may not use this documentation except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://creativecommons.org/licenses/by/4.0/
-#
-# Unless required by applicable law or agreed to in writing, documentation
-# 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.
-#
-# ============LICENSE_END============================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
----
-resources:
- lb_server_0:
- type: OS::Nova::Server
- properties:
- availability_zone: { get_param: availability_zone_0 }
- name: { get_param: [vm_type_a_names, 0] }
- flavor: { get_param: vm_type_a_flavor_name}
- image: { get_param: vm_type_a_image_name}
- block_device_mapping: [{ device_name: "vda", volume_id : { get_param : vm_type_a_cinder_volume_id_0 }, delete_on_termination : "false" }]
- metadata:
- vnf_name: { get_param: vnf_name }
- vnf_id: { get_param: vnf_id }
- vf_module_id: { get_param: vf_module_id }
-
- lb_server_3:
- type: OS::Nova::Server
- properties:
- availability_zone: { get_param: availability_zone_0 }
- name: { get_param: [vm_type_a_names, { get_param: lb_server_index }] }
- flavor: { get_param: vm_type_a_flavor_name}
- image: { get_param: vm_type_a_image_name}
- block_device_mapping: [{ device_name: "vda", volume_id : { get_param : vm_type_a_cinder_volume_id_0 }, delete_on_termination : "false" }]
- metadata:
- vnf_name: { get_param: vnf_name }
- vnf_id: { get_param: vnf_id }
- vf_module_id: { get_param: vf_module_id }
-
- lb_volume_0:
- type: OS::Cinder::Volume
- properties:
- name:
- str_replace:
- template: VNF_NAME_STACK_NAME_oam_volume
- params:
- VNF_NAME: { get_param: vnf_name }
- STACK_NAME: { get_param: 'OS::stack_name' }
-
- lb_volume_0:
- type: OS::Cinder::Volume
- properties:
- name:
- str_replace:
- template: MODULE_ID_STACK_NAME_oam_volume
- params:
- STACK_NAME: { get_param: 'OS::stack_name' }
- MODULE_ID: { get_param: vnf_module_id }
-
- lb_volume_1:
- type: OS::Cinder::Volume
- properties:
- name:
- str_replace:
- template: VNF_NAME_STACK_NAME_MODULE_ID_oam_volume
- params:
- VNF_NAME: { get_param: vnf_name }
- STACK_NAME: { get_param: 'OS::stack_name' }
- MODULE_ID: { get_param: vnf_module_id }
-
- my_keypair:
- type: OS::Nova::Keypair
- properties:
- name:
- str_replace:
- template: VNF_NAME_key_pair
- params:
- VNF_NAME: { get_param: vnf_name }
- public_key: {get_param: ssh_public_key}
- save_private_key: false
diff --git a/ice_validator/tests/fixtures/test_unique_name_resources/pass/unique_resource_template_1.yml b/ice_validator/tests/fixtures/test_unique_name_resources/pass/unique_resource_template_1.yml
deleted file mode 100644
index 22c73de..0000000
--- a/ice_validator/tests/fixtures/test_unique_name_resources/pass/unique_resource_template_1.yml
+++ /dev/null
@@ -1,108 +0,0 @@
-# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
-# org.onap.vvp/validation-scripts
-# ===================================================================
-# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the "License");
-# you may not use this software 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.
-#
-#
-#
-# Unless otherwise specified, all documentation contained herein is licensed
-# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
-# you may not use this documentation except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://creativecommons.org/licenses/by/4.0/
-#
-# Unless required by applicable law or agreed to in writing, documentation
-# 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.
-#
-# ============LICENSE_END============================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
----
-resources:
- lb_server_0:
- type: OS::Nova::Server
- properties:
- availability_zone: { get_param: availability_zone_0 }
- name: { get_param: [vm_type_a_names, 0] }
- flavor: { get_param: vm_type_a_flavor_name}
- image: { get_param: vm_type_a_image_name}
- block_device_mapping: [{ device_name: "vda", volume_id : { get_param : vm_type_a_cinder_volume_id_0 }, delete_on_termination : "false" }]
- metadata:
- vnf_name: { get_param: vnf_name }
- vnf_id: { get_param: vnf_id }
- vf_module_id: { get_param: vf_module_id }
-
- lb_server_3:
- type: OS::Nova::Server
- properties:
- availability_zone: { get_param: availability_zone_0 }
- name: { get_param: [vm_type_a_names, { get_param: lb_server_index }] }
- flavor: { get_param: vm_type_a_flavor_name}
- image: { get_param: vm_type_a_image_name}
- block_device_mapping: [{ device_name: "vda", volume_id : { get_param : vm_type_a_cinder_volume_id_0 }, delete_on_termination : "false" }]
- metadata:
- vnf_name: { get_param: vnf_name }
- vnf_id: { get_param: vnf_id }
- vf_module_id: { get_param: vf_module_id }
-
- lb_volume_0:
- type: OS::Cinder::Volume
- properties:
- name:
- str_replace:
- template: VNF_NAME_STACK_NAME_oam_volume
- params:
- VNF_NAME: { get_param: vnf_name }
- STACK_NAME: { get_param: 'OS::stack_name' }
-
- lb_volume_0:
- type: OS::Cinder::Volume
- properties:
- name:
- str_replace:
- template: MODULE_ID_STACK_NAME_oam_volume
- params:
- STACK_NAME: { get_param: 'OS::stack_name' }
- MODULE_ID: { get_param: vnf_module_id }
-
- lb_volume_1:
- type: OS::Cinder::Volume
- properties:
- name:
- str_replace:
- template: VNF_NAME_STACK_NAME_MODULE_ID_oam_volume
- params:
- VNF_NAME: { get_param: vnf_name }
- STACK_NAME: { get_param: 'OS::stack_name' }
- MODULE_ID: { get_param: vnf_module_id }
-
- my_keypair:
- type: OS::Nova::Keypair
- properties:
- name:
- str_replace:
- template: VNF_NAME_key_pair
- params:
- VNF_NAME: { get_param: vnf_name }
- public_key: {get_param: ssh_public_key}
- save_private_key: false
diff --git a/ice_validator/tests/fixtures/test_unique_name_resources/pass/unique_resource_template_2.yml b/ice_validator/tests/fixtures/test_unique_name_resources/pass/unique_resource_template_2.yml
deleted file mode 100644
index ec01c0b..0000000
--- a/ice_validator/tests/fixtures/test_unique_name_resources/pass/unique_resource_template_2.yml
+++ /dev/null
@@ -1,108 +0,0 @@
-# -*- coding: utf8 -*-
-# ============LICENSE_START=======================================================
-# org.onap.vvp/validation-scripts
-# ===================================================================
-# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the "License");
-# you may not use this software 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.
-#
-#
-#
-# Unless otherwise specified, all documentation contained herein is licensed
-# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
-# you may not use this documentation except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://creativecommons.org/licenses/by/4.0/
-#
-# Unless required by applicable law or agreed to in writing, documentation
-# 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.
-#
-# ============LICENSE_END============================================
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
----
-resources:
- lb_server_1:
- type: OS::Nova::Server
- properties:
- availability_zone: { get_param: availability_zone_0 }
- name: { get_param: [vm_type_a_names, 1] }
- flavor: { get_param: vm_type_a_flavor_name}
- image: { get_param: vm_type_a_image_name}
- block_device_mapping: [{ device_name: "vda", volume_id : { get_param : vm_type_a_cinder_volume_id_0 }, delete_on_termination : "false" }]
- metadata:
- vnf_name: { get_param: vnf_name }
- vnf_id: { get_param: vnf_id }
- vf_module_id: { get_param: vf_module_id }
-
- lb_server_4:
- type: OS::Nova::Server
- properties:
- availability_zone: { get_param: availability_zone_0 }
- name: { get_param: [vm_type_a_names, { get_param: lb_server_index }] }
- flavor: { get_param: vm_type_a_flavor_name}
- image: { get_param: vm_type_a_image_name}
- block_device_mapping: [{ device_name: "vda", volume_id : { get_param : vm_type_a_cinder_volume_id_0 }, delete_on_termination : "false" }]
- metadata:
- vnf_name: { get_param: vnf_name }
- vnf_id: { get_param: vnf_id }
- vf_module_id: { get_param: vf_module_id }
-
- lb_volume_2:
- type: OS::Cinder::Volume
- properties:
- name:
- str_replace:
- template: VNF_NAME_STACK_NAME_oam_volume
- params:
- VNF_NAME: { get_param: vnf_name }
- STACK_NAME: { get_param: 'OS::stack_name' }
-
- lb_volume_3:
- type: OS::Cinder::Volume
- properties:
- name:
- str_replace:
- template: MODULE_ID_STACK_NAME_oam_volume
- params:
- STACK_NAME: { get_param: 'OS::stack_name' }
- MODULE_ID: { get_param: vnf_module_id }
-
- lb_volume_2:
- type: OS::Cinder::Volume
- properties:
- name:
- str_replace:
- template: VNF_NAME_STACK_NAME_MODULE_ID_oam_volume
- params:
- VNF_NAME: { get_param: vnf_name }
- STACK_NAME: { get_param: 'OS::stack_name' }
- MODULE_ID: { get_param: vnf_module_id }
-
- my_keypair:
- type: OS::Nova::Keypair
- properties:
- name:
- str_replace:
- template: VNF_NAME_key_pair
- params:
- VNF_NAME: { get_param: vnf_name }
- public_key: {get_param: ssh_public_key}
- save_private_key: false
diff --git a/ice_validator/tests/fixtures/test_vm_type_case/fail/fail.yaml b/ice_validator/tests/fixtures/test_vm_type_case/fail/fail.yaml
new file mode 100644
index 0000000..16b740a
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_vm_type_case/fail/fail.yaml
@@ -0,0 +1,70 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+# resource of type "OS::Nova::Server" has metadata
+# which references parameter "environment_context" of type "string".
+
+---
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [vm_type_a_names, 0] }
+ flavor: { get_param: vm_type_a_flavor_name}
+ image: { get_param: vm_Type_a_image_name}
+ metadata:
+ my_attribute: {get_param: environment_context}
+
+ vm_type_a_0_romeo_port_0:
+ type: OS::Neutron::Port
+ properties:
+ name: { get_param: [vm_type_a_names, 0] }
+ flavor: { get_param: vm_Type_a_flavor_name}
+ image: { get_param: vm_Type_a_image_name}
+
+ vm_type_a_0_int_romeo_port_0:
+ type: OS::Neutron::Port
+ properties:
+ name: { get_param: [vm_Type_a_names, 0] }
+ flavor: { get_param: vm_Type_a_flavor_name}
+ image: { get_param: vm_Type_a_image_name}
+
diff --git a/ice_validator/tests/fixtures/test_vm_type_case/pass/pass.yaml b/ice_validator/tests/fixtures/test_vm_type_case/pass/pass.yaml
new file mode 100644
index 0000000..e3caa72
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_vm_type_case/pass/pass.yaml
@@ -0,0 +1,70 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START====================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+#
+# ECOMP is a trademark and service mark of AT&T Intellectual Property.
+#
+
+# VERSION = '1.0.0'
+
+# resource of type "OS::Nova::Server" has metadata
+# which references parameter "environment_context" of type "string".
+
+---
+resources:
+ vm_type_a_server_0:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: [vm_type_a_names, 0] }
+ flavor: { get_param: vm_type_a_flavor_name}
+ image: { get_param: vm_type_a_image_name}
+ metadata:
+ my_attribute: {get_param: environment_context}
+
+ vm_type_a_0_romeo_port_0:
+ type: OS::Neutron::Port
+ properties:
+ name: { get_param: [vm_type_a_names, 0] }
+ flavor: { get_param: vm_type_a_flavor_name}
+ image: { get_param: vm_type_a_image_name}
+
+ vm_type_a_0_int_romeo_port_0:
+ type: OS::Neutron::Port
+ properties:
+ name: { get_param: [vm_type_a_names, 0] }
+ flavor: { get_param: vm_type_a_flavor_name}
+ image: { get_param: vm_type_a_image_name}
+
diff --git a/ice_validator/tests/fixtures/test_volume_module_naming/fail/module_volumes.yaml b/ice_validator/tests/fixtures/test_volume_module_naming/fail/module_volumes.yaml
new file mode 100644
index 0000000..ea21f22
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_volume_module_naming/fail/module_volumes.yaml
@@ -0,0 +1,52 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+resources:
+
+ vm_type_volume_0:
+ type: OS::Cinder::Volume
+
+ vm_type_volume_1:
+ type: OS::Cinder::Volume
+
+ vm_type_volume_0_RSG:
+ type: OS::Heat::ResourceGroup
+ properties:
+ resource_def:
+ type: nested_volume1.yaml
+
+ vm_type_volume_0_nested:
+ type: nested_volume2.yaml \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_volume_module_naming/fail/nested_volume1.yaml b/ice_validator/tests/fixtures/test_volume_module_naming/fail/nested_volume1.yaml
new file mode 100644
index 0000000..888aa75
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_volume_module_naming/fail/nested_volume1.yaml
@@ -0,0 +1,40 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+resources:
+
+ vm_type_volume_2:
+ type: OS::Cinder::Volume \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_volume_module_naming/fail/nested_volume2.yaml b/ice_validator/tests/fixtures/test_volume_module_naming/fail/nested_volume2.yaml
new file mode 100644
index 0000000..6bce356
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_volume_module_naming/fail/nested_volume2.yaml
@@ -0,0 +1,40 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+resources:
+
+ vm_type_volume_3:
+ type: OS::Cinder::Volume \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_volume_module_naming/pass/module2_base.yaml b/ice_validator/tests/fixtures/test_volume_module_naming/pass/module2_base.yaml
new file mode 100644
index 0000000..1c80888
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_volume_module_naming/pass/module2_base.yaml
@@ -0,0 +1,55 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+resources:
+
+ vm_type_volume_0:
+ type: OS::Cinder::Volume
+
+ vm_type_volume_1:
+ type: OS::Cinder::Volume
+
+ vm_type_volume_0_RSG:
+ type: OS::Heat::ResourceGroup
+ properties:
+ resource_def:
+ type: nested_volume1.yaml
+
+ vm_type_volume_0_nested:
+ type: nested_volume2.yaml
+
+ vmtype_server_0:
+ type: OS::Nova::Server \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_volume_module_naming/pass/module_volume.yaml b/ice_validator/tests/fixtures/test_volume_module_naming/pass/module_volume.yaml
new file mode 100644
index 0000000..ea21f22
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_volume_module_naming/pass/module_volume.yaml
@@ -0,0 +1,52 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+resources:
+
+ vm_type_volume_0:
+ type: OS::Cinder::Volume
+
+ vm_type_volume_1:
+ type: OS::Cinder::Volume
+
+ vm_type_volume_0_RSG:
+ type: OS::Heat::ResourceGroup
+ properties:
+ resource_def:
+ type: nested_volume1.yaml
+
+ vm_type_volume_0_nested:
+ type: nested_volume2.yaml \ No newline at end of file
diff --git a/ice_validator/tests/fixtures/test_volume_module_naming/pass/nested_volume1.yaml b/ice_validator/tests/fixtures/test_volume_module_naming/pass/nested_volume1.yaml
new file mode 100644
index 0000000..e96fd82
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_volume_module_naming/pass/nested_volume1.yaml
@@ -0,0 +1,40 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+resources:
+
+ vm_type_volume_2:
+ type: OS::Cinder::Volume
diff --git a/ice_validator/tests/fixtures/test_volume_module_naming/pass/nested_volume2.yaml b/ice_validator/tests/fixtures/test_volume_module_naming/pass/nested_volume2.yaml
new file mode 100644
index 0000000..6bce356
--- /dev/null
+++ b/ice_validator/tests/fixtures/test_volume_module_naming/pass/nested_volume2.yaml
@@ -0,0 +1,40 @@
+# -*- coding: utf8 -*-
+# ============LICENSE_START=======================================================
+# org.onap.vvp/validation-scripts
+# ===================================================================
+# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# ===================================================================
+#
+# Unless otherwise specified, all software contained herein is licensed
+# under the Apache License, Version 2.0 (the "License");
+# you may not use this software 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.
+#
+#
+#
+# Unless otherwise specified, all documentation contained herein is licensed
+# under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+# you may not use this documentation except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://creativecommons.org/licenses/by/4.0/
+#
+# Unless required by applicable law or agreed to in writing, documentation
+# 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.
+#
+# ============LICENSE_END============================================
+resources:
+
+ vm_type_volume_3:
+ type: OS::Cinder::Volume \ No newline at end of file