]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
python-common: add unit test func for invalid yaml inputs
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 8 Dec 2021 20:37:11 +0000 (15:37 -0500)
committerSebastian Wagner <sewagner@redhat.com>
Tue, 11 Jan 2022 12:23:03 +0000 (13:23 +0100)
commitcf160fbc18e0d729f62ba41a58c0b34b912ece02
tree03f6c430b2d69a84d7da557f04e7249a1d0bfa6c
parent2c38ea578b76f302d3eb839a83cce2598e97cf48
python-common: add unit test func for invalid yaml inputs

I didn't find a preexisting test function for this so I added a
new test that is fed yaml snippets and expected error messages.
This verifies some of the recently added validation for
count and cound_per_host under the placement spec.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 068d37d95762bce4d11668a838c6e85f6098723a)
src/python-common/ceph/tests/test_service_spec.py