From 4b53cbbf12894610774b5e024cecb0d4e395aad3 Mon Sep 17 00:00:00 2001 From: "Lovett, Trevor" Date: Thu, 30 Apr 2020 14:50:02 -0500 Subject: Enforce filename rules Disallow characters other than alphanumerics and underscores in Heat template file names Change-Id: I097ad1830fdc10fb431daef6ec713d825ee8b42a Issue-ID: VVP-415 Signed-off-by: Lovett, Trevor --- .../invalid_chars/invalid chars - in name.yaml | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 ice_validator/tests/fixtures/test_base_template_names/fail/invalid_chars/invalid chars - in name.yaml (limited to 'ice_validator/tests/fixtures/test_base_template_names/fail/invalid_chars/invalid chars - in name.yaml') diff --git a/ice_validator/tests/fixtures/test_base_template_names/fail/invalid_chars/invalid chars - in name.yaml b/ice_validator/tests/fixtures/test_base_template_names/fail/invalid_chars/invalid chars - in name.yaml new file mode 100644 index 0000000..db25f71 --- /dev/null +++ b/ice_validator/tests/fixtures/test_base_template_names/fail/invalid_chars/invalid chars - in name.yaml @@ -0,0 +1,56 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2020 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============================================ +# +# +--- +description: + base +parameters: + vm_type_volume_name_0: + type: string + vm_type_volume_size_0: + type: number + +resources: + server_0: + type: OS::Nova::Server + properties: + name: {get_param: server_name_0} + +outputs: + vm_type_volume_id_0: + value: {get_resource: vm_type_volume_0} -- cgit 1.2.3-korg