]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/smb: fix and test load_text function
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 8 May 2024 15:53:08 +0000 (11:53 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Mon, 24 Jun 2024 12:41:08 +0000 (08:41 -0400)
commit55d7e0f8719a9294ba6d7b7ff45e9febdf42a27b
treed86851ff89365bc0dcc3517c4d09a2b72b0d39d6
parent4774a68b19980be7331a6419bc7a8317d7481c0e
mgr/smb: fix and test load_text function

The load_text function was a bit buggy but mainly worked until I started
to try and write a proper test for it. The error handling here is a bit
of a hack, but we can refine it later if people notice/complain.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/smb/resources.py
src/pybind/mgr/smb/tests/test_resources.py