blob: 040be0dcde7ac868a2116d53e60ea9adc2d53446 [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
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
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"