#
# ============LICENSE_END============================================
#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-#
-
-from tests import cached_yaml as yaml
-import pytest
-
+heat_template_version: 2015-04-30
-def test_volume_format_outputs(volume_template):
- '''
- Check that the values are properly provided to the outputs section
- in a volume template
- '''
- with open(volume_template) as fh:
- yml = yaml.load(fh)
+description: Simple template to deploy a single compute instance
- # skip if resources are not defined
- if "outputs" not in yml:
- pytest.skip("No outputs specified in the volume template")
+parameters:
+ vm1_nr1_ip_0:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
- # Retrieve the volume category parameters usage
- invalid_outputs = []
- for k, v in yml['outputs'].items():
- if not isinstance(v, dict):
- continue
+ vm1_nr1_ip_1:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
- if ('value' in v and
- ('get_resource' in v['value'] or
- 'get_attr' in v['value'])):
- continue
- invalid_outputs.append(k)
+ vm1_nr1_v6_ip_0:
+ type: string
+ label: Key Name
+ description: Name of key-pair to be used for compute instance
- assert not set(invalid_outputs)
+ 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