From: Kiefer Chang Date: Thu, 23 May 2019 07:58:29 +0000 (+0800) Subject: mgr/dashboard: check embedded Grafana dashboard references X-Git-Tag: v15.1.0~2275^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=64f31188ebc68bf6c82b2a69454cc3c7a3a53fa6;p=ceph.git mgr/dashboard: check embedded Grafana dashboard references Add a script to check a cd-grafana component always refers to an existing Grafana dashboard. The check is added as a new tox command. Fixes: http://tracker.ceph.com/issues/40008 Signed-off-by: Kiefer Chang --- diff --git a/src/pybind/mgr/dashboard/ci/check_grafana_uids.py b/src/pybind/mgr/dashboard/ci/check_grafana_uids.py new file mode 100644 index 000000000000..0b74d089e964 --- /dev/null +++ b/src/pybind/mgr/dashboard/ci/check_grafana_uids.py @@ -0,0 +1,154 @@ +# -*- coding: utf-8 -*- +# pylint: disable=F0401 +""" +This script does: +* Scan through Angular html templates and extract tags +* Check if every tag has a corresponding Grafana dashboard by `uid` + +Usage: + python