diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-04-14 22:00:46 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-04-14 22:00:46 +0000 |
commit | 9ac51b13863b935dabc70f15bf78f111c61cb5dc (patch) | |
tree | 29ec64c78677da9c89e4c6d87760a7346db61dc3 /heatclient | |
parent | 4c12fb4bd66a2a718861d184267ddfd7168f63e2 (diff) | |
parent | 919d066f624186f59f5557282ea62edb9775bfa2 (diff) | |
download | python-heatclient-9ac51b13863b935dabc70f15bf78f111c61cb5dc.tar.gz |
Merge "Add basic read-only function test for template validate"
Diffstat (limited to 'heatclient')
-rw-r--r-- | heatclient/tests/functional/osc/v1/test_readonly.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/heatclient/tests/functional/osc/v1/test_readonly.py b/heatclient/tests/functional/osc/v1/test_readonly.py index cd8e023..7f7b51e 100644 --- a/heatclient/tests/functional/osc/v1/test_readonly.py +++ b/heatclient/tests/functional/osc/v1/test_readonly.py @@ -110,3 +110,23 @@ class SimpleReadOnlyOpenStackClientTest(base.OpenStackClientTestBase): 'heat_minimal_hot.yaml', ['test_client_name=test_client_name', 'test_wait_secs=123'] ) + + def _orchestration_template_validate(self, templ_name, parms): + template_path = self.get_template_path(templ_name) + cmd = 'orchestration template validate --template %s' % template_path + for parm in parms: + cmd += ' --parameter ' + parm + ret = self.openstack(cmd) + self.assertRegex(ret, r'Value:.*123') + + def test_orchestration_template_validate_yaml(self): + self._orchestration_template_validate( + 'heat_minimal.yaml', + ['ClientName=ClientName', 'WaitSecs=123'] + ) + + def test_orchestration_template_validate_hot(self): + self._orchestration_template_validate( + 'heat_minimal_hot.yaml', + ['test_client_name=test_client_name', 'test_wait_secs=123'] + ) |