stacklight-integration-tests/stacklight_tests/influxdb_grafana/test_functional.py
Rodion Promyshlennikov 187f874fac Add toolchain test to check Nova metrics
Test Nova metrics change in Grafana on creating of instance.
Minor fixes in InfluxDb-Grafana functional tests.

Change-Id: I5474e20bc87223e7527dcd9f2e9a326ee1407182
2016-06-07 11:36:41 +03:00

65 lines
2.2 KiB
Python

# Copyright 2016 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from fuelweb_test.helpers.decorators import log_snapshot_after_test
from proboscis import test
from stacklight_tests.influxdb_grafana import api
@test(groups=["plugins"])
class TestFunctionalInfluxdbPlugin(api.InfluxdbPluginApi):
"""Class for functional testing of plugin."""
@test(depends_on_groups=["deploy_influxdb_grafana"],
groups=["check_display_dashboards_influxdb_grafana",
"influxdb_grafana", "functional"])
@log_snapshot_after_test
def check_display_dashboards_influxdb_grafana(self):
"""Verify that the dashboards show up in the Grafana UI.
Scenario:
1. Revert snapshot with 3 deployed nodes
2. Open the Grafana URL (
open the "Dashboard" tab and click the "Grafana" link)
3. Sign-in using the credentials provided
during the configuration of the environment
4. Go to the Main dashboard and verify that everything is ok
5. Repeat the previous step for the following dashboards:
* Apache
* Cinder
* Elasticsearch
* Glance
* HAProxy
* Heat
* Hypervisor
* InfluxDB
* Keystone
* LMA self-monitoring
* Memcached
* MySQL
* Neutron
* Nova
* RabbitMQ
* System
Duration 20m
"""
self.env.revert_snapshot("deploy_influxdb_grafana")
self.check_plugin_online()
self.check_grafana_dashboards()