blob: 6794b1a31f68dc46ae09c27f82d729d481fd30d8 [file] [log] [blame]
Matteo Scandoloeb0d11c2017-08-08 13:05:26 -07001
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 Vavilapalli1dfc9c82016-12-20 02:58:32 +000017---
18- name: Validate Monitoring URL is completely UP and metrics contain vSG related metrics
19 uri:
Srikanth Vavilapalli71aa28d2017-01-31 00:43:13 +000020 url: "{{monitoringservice.results[1].json[0].ceilometer_ssh_proxy_url}}v2/meters"
Srikanth Vavilapalli1dfc9c82016-12-20 02:58:32 +000021 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 ('vsg' in metrics.content)"
27 retries: 5
28 delay: 10
29
30- name: assert vSG metrics vsg.dns.cache.size are present
31 assert:
32 that: "'vsg.dns.cache.size' in metrics.content"
33 msg: "Metrics does not contains vsg.dns.cache.size related statistics"
34
35- name: assert vSG metrics vsg.dns.replaced_unexpired_entries are present
36 assert:
37 that: "'vsg.dns.replaced_unexpired_entries' in metrics.content"
38 msg: "Metrics does not contains vsg.dns.replaced_unexpired_entries related statistics"
39
40- name: assert vSG metrics vsg.dns.queries_answered_locally are present
41 assert:
42 that: "'vsg.dns.queries_answered_locally' in metrics.content"
43 msg: "Metrics does not contains vsg.dns.queries_answered_locally related statistics"
44