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 | b66304b | 2017-01-19 20:25:19 +0000 | [diff] [blame] | 17 | --- |
| 18 | - name: Validate Monitoring URL is completely UP and metrics contain vSG related metrics |
| 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 | b66304b | 2017-01-19 20:25:19 +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) and (metrics.content|from_json|length>0) and ('exampleservice' in metrics.content)" |
| 27 | retries: 5 |
| 28 | delay: 10 |
| 29 | |
| 30 | - name: assert exampleservice metrics exampleservice.apache.total.accesses are present |
| 31 | assert: |
| 32 | that: "'exampleservice.apache.total.accesses' in metrics.content" |
| 33 | msg: "Metrics does not contains exampleservice.apache.total.accesses related statistics" |
| 34 | |
| 35 | - name: assert exampleservice metrics exampleservice.apache.uptime are present |
| 36 | assert: |
| 37 | that: "'exampleservice.apache.uptime' in metrics.content" |
| 38 | msg: "Metrics does not contains exampleservice.apache.uptime related statistics" |
| 39 | |
| 40 | - name: assert exampleservice metrics exampleservice.apache.reqpersec are present |
| 41 | assert: |
| 42 | that: "'exampleservice.apache.reqpersec' in metrics.content" |
| 43 | msg: "Metrics does not contains exampleservice.apache.reqpersec related statistics" |
| 44 | |