]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: add unit tests for cephadm-exporter mode
authorPaul Cuzner <pcuzner@redhat.com>
Sun, 29 Nov 2020 23:06:00 +0000 (12:06 +1300)
committerPaul Cuzner <pcuzner@redhat.com>
Sun, 29 Nov 2020 23:06:00 +0000 (12:06 +1300)
commitd7a8d7b5fb65c4443d1350d04b3544d7d8a8f383
tree607abcfe852c5d59a274729737fd70b8bcad9fec
parent9742f75720a3d285049c6b818afbedca09eb1323
cephadm: add unit tests for cephadm-exporter mode

Added unit tests to the test_cephadm module to cover
key functionality in the exporter. In addition, since the
tests are using fixtures, a new fixture module has been
added to with code structure going forward.

The unit tests cover object properties, http responses and
thread exception handling.

Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
src/cephadm/tests/fixtures.py [new file with mode: 0644]
src/cephadm/tests/test_cephadm.py