Matteo Scandolo | eb0d11c | 2017-08-08 13:05:26 -0700 | [diff] [blame] | 1 | |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | |
Srikanth Vavilapalli | 1dfc9c8 | 2016-12-20 02:58:32 +0000 | [diff] [blame] | 17 | --- |
| 18 | - name: Validate Monitoring URL is completely UP |
| 19 | uri: |
Srikanth Vavilapalli | 71aa28d | 2017-01-31 00:43:13 +0000 | [diff] [blame] | 20 | url: "{{monitoringservice.results[1].json[0].ceilometer_ssh_proxy_url}}v2/meters" |
Srikanth Vavilapalli | 1dfc9c8 | 2016-12-20 02:58:32 +0000 | [diff] [blame] | 21 | status_code: 200 |
| 22 | return_content: yes |
| 23 | body_format: json |
| 24 | HEADER_Content-Type: "application/json" |
| 25 | register: metrics |
| 26 | until: metrics.status == 200 |
| 27 | retries: 5 |
| 28 | delay: 10 |
| 29 | |
| 30 | - name: assert no metrics are present |
| 31 | assert: |
| 32 | that: metrics.content|from_json|length==0 |
| 33 | msg: "Meters list is non empty for the first time" |