]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
python-common: add tests for service spec extra args handling
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 17 May 2023 18:30:18 +0000 (14:30 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Mon, 26 Jun 2023 14:56:47 +0000 (10:56 -0400)
commit4561fc37084faa766bd199f052bd2b2a1589269e
tree254c898060bf81091108ea8ecfbb51f80e5a23be
parentfd62a8dfcb345fabed3eea6b3a461f1ca848a239
python-common: add tests for service spec extra args handling

There were no existing tests for how the service spec(s) handled the
extra_container_args and extra_entrypoint_args values.  Add a short
parametrized test function to assert some basic properties of how the
arguments are currently handled. In particular, it asserts that the
values can appear at the top-level of the YAML and under spec.

This is in preparation for adding a more sophisticated argument
type in the future.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/python-common/ceph/tests/test_service_spec.py