rabi | 71d2dcc | 2016-11-25 17:23:45 +0530 | [diff] [blame] | 1 | defaults: |
| 2 | request_headers: |
| 3 | X-Auth-Token: $ENVIRON['OS_TOKEN'] |
| 4 | |
| 5 | tests: |
| 6 | - name: list template versions |
| 7 | GET: /template_versions |
| 8 | status: 200 |
| 9 | response_json_paths: |
| 10 | $.template_versions[?(@.version='heat_template_version.2017-02-24')].type: hot |
| 11 | |
| 12 | - name: list template functions |
| 13 | GET: /template_versions/heat_template_version.2016-10-14/functions |
| 14 | status: 200 |
| 15 | response_json_paths: |
| 16 | $.template_functions[?(@.functions='get_file')].description: |
| 17 | A function for including a file inline. |
| 18 | |
| 19 | - name: template validate |
| 20 | POST: /validate |
| 21 | request_headers: |
| 22 | content-type: application/json |
| 23 | data: |
| 24 | template: |
| 25 | heat_template_version: '2016-04-08' |
| 26 | parameters: |
| 27 | test_val: |
| 28 | type: string |
| 29 | resources: |
| 30 | test: |
| 31 | type: OS::Heat::TestResource |
| 32 | properties: |
| 33 | value: {get_param: test_val} |
| 34 | outputs: |
| 35 | output_value: |
| 36 | value: {get_attr: [test, output]} |
| 37 | status: 200 |