Srikanth Vavilapalli | 1dfc9c8 | 2016-12-20 02:58:32 +0000 | [diff] [blame] | 1 | --- |
| 2 | - name: Validate Monitoring URL is completely UP |
| 3 | uri: |
Srikanth Vavilapalli | 71aa28d | 2017-01-31 00:43:13 +0000 | [diff] [blame] | 4 | url: "{{monitoringservice.results[1].json[0].ceilometer_ssh_proxy_url}}v2/meters" |
Srikanth Vavilapalli | 1dfc9c8 | 2016-12-20 02:58:32 +0000 | [diff] [blame] | 5 | status_code: 200 |
| 6 | return_content: yes |
| 7 | body_format: json |
| 8 | HEADER_Content-Type: "application/json" |
| 9 | register: metrics |
| 10 | until: metrics.status == 200 |
| 11 | retries: 5 |
| 12 | delay: 10 |
| 13 | |
| 14 | - name: assert no metrics are present |
| 15 | assert: |
| 16 | that: metrics.content|from_json|length==0 |
| 17 | msg: "Meters list is non empty for the first time" |