]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr: generic self test command
authorJohn Spray <john.spray@redhat.com>
Tue, 10 Jul 2018 16:40:49 +0000 (12:40 -0400)
committerJohn Spray <john.spray@redhat.com>
Fri, 20 Jul 2018 17:09:19 +0000 (13:09 -0400)
commitd24e6cb32acebf6f3fe6cb96d60ae323437d99fd
treeedfd694066af14217db8e4e16009c75cfdc5ab62
parent6ca387f2759fe974214c4ffecf4f0e3d7325ec20
mgr: generic self test command

Avoid need for each module to expose a self-test
command: they can just implement the method,
and then get it called via the selftest module.

As well as fewer LOC, this means that the self
test commands are not cluttering the interface
for end users, as they've invisible until
the selftest module is loaded.

Signed-off-by: John Spray <john.spray@redhat.com>
qa/tasks/mgr/test_module_selftest.py
src/pybind/mgr/crash/module.py
src/pybind/mgr/devicehealth/module.py
src/pybind/mgr/influx/module.py
src/pybind/mgr/iostat/module.py
src/pybind/mgr/mgr_module.py
src/pybind/mgr/prometheus/module.py
src/pybind/mgr/selftest/module.py
src/pybind/mgr/telegraf/module.py
src/pybind/mgr/telemetry/module.py
src/pybind/mgr/zabbix/module.py