blob: 11d8be6b3b57ad18a5e991b0dd62761511592dca [file] [log] [blame]
Srikanth Vavilapalli1dfc9c82016-12-20 02:58:32 +00001---
2- name: Validate Monitoring URL is completely UP and metrics contain vSG related metrics
3 uri:
4 url: "{{monitoringservice.results[1].json[0].ceilometer_url}}v2/meters"
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) and (metrics.content|from_json|length>0) and ('vsg' in metrics.content)"
11 retries: 5
12 delay: 10
13
14- name: assert vSG metrics vsg.dns.cache.size are present
15 assert:
16 that: "'vsg.dns.cache.size' in metrics.content"
17 msg: "Metrics does not contains vsg.dns.cache.size related statistics"
18
19- name: assert vSG metrics vsg.dns.replaced_unexpired_entries are present
20 assert:
21 that: "'vsg.dns.replaced_unexpired_entries' in metrics.content"
22 msg: "Metrics does not contains vsg.dns.replaced_unexpired_entries related statistics"
23
24- name: assert vSG metrics vsg.dns.queries_answered_locally are present
25 assert:
26 that: "'vsg.dns.queries_answered_locally' in metrics.content"
27 msg: "Metrics does not contains vsg.dns.queries_answered_locally related statistics"
28