]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: mock os.path.listdir in daemon forms test
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 3 Oct 2023 20:51:49 +0000 (16:51 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 10 Oct 2023 14:33:48 +0000 (10:33 -0400)
commitd9314780a59e991afce036236d425a5ed8368d09
tree05ca03b992d5f9a5b0ba8c255a44d43172603acd
parent28fe98bd5949c3a6bcae4e78cdae5bbcde4e8d3b
cephadm: mock os.path.listdir in daemon forms test

Prevent classes that want to check the filesystem from breaking the
simple daemon forms instantiation test case. A better future fix would
be avoiding checking the file system during __init__ of the class but
that is left for future improvements.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/tests/test_daemon_form.py