diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-06-19 15:26:53 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-06-19 15:26:53 +0000 |
commit | 77eec6867a064e8764745375940cf085be958c2f (patch) | |
tree | 4d11c37aa6b11120eaf914ebaec5cc8e98ff5a07 /tripleo_heat_templates/tests | |
parent | f3e084dc85c0d95fadd078c6297a40136779ee5c (diff) | |
parent | 8d086b171099f0a968f1fdd1b39706ec64a52f56 (diff) |
Merge "Add storage sample environments"
Diffstat (limited to 'tripleo_heat_templates/tests')
-rw-r--r-- | tripleo_heat_templates/tests/test_environment_generator.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tripleo_heat_templates/tests/test_environment_generator.py b/tripleo_heat_templates/tests/test_environment_generator.py index d0a622da..f4c4cdbf 100644 --- a/tripleo_heat_templates/tests/test_environment_generator.py +++ b/tripleo_heat_templates/tests/test_environment_generator.py @@ -34,6 +34,10 @@ parameters: default: 42 description: Bar description type: number + EndpointMap: + default: {} + description: Parameter that should not be included by default + type: json resources: # None ''' @@ -307,6 +311,41 @@ resource_registry: OS::TripleO::FakeResource: fake-filename.yaml ''', }), + ('basic-hidden', + {'template': basic_template, + 'exception': None, + 'input_file': '''environments: + - + name: basic + title: Basic Environment + description: Basic description + files: + foo.yaml: + parameters: all + sample_values: + EndpointMap: |-2 + + foo: bar +''', + 'expected_output': '''# title: Basic Environment +# description: | +# Basic description +parameter_defaults: + # Bar description + # Type: number + BarParam: 42 + + # Parameter that should not be included by default + # Type: json + EndpointMap: + foo: bar + + # Foo description + # Type: string + FooParam: foo + +''', + }), ('missing-param', {'template': basic_template, 'exception': RuntimeError, |