]> 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)
committerAdam King <adking@redhat.com>
Thu, 31 Aug 2023 17:35:15 +0000 (13:35 -0400)
commit53f8d1d966c7ca0b9d7d9fd2a1e30e1c3b68c672
tree579b0885d232e64256747117902a383b87b9aff5
parent2c6e2ca78d7e514fc8b99920cee3cd3d5ba31868
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>
(cherry picked from commit 4561fc37084faa766bd199f052bd2b2a1589269e)
src/python-common/ceph/tests/test_service_spec.py