From: John Mulligan Date: Sat, 21 Oct 2023 20:08:25 +0000 (-0400) Subject: cephadm: add test assertions for ceph mgr entrypoint, mounts X-Git-Tag: v19.0.0~203^2~9 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=43c4c16a4267887a9c5b3672b7d4d64db0ac8180;p=ceph-ci.git cephadm: add test assertions for ceph mgr entrypoint, mounts Part of a series of commits to increase coverage of deployment path features with regards to container engine options, env vars and mounts. This will serve future refactoring efforts. Signed-off-by: John Mulligan --- diff --git a/src/cephadm/tests/test_deploy.py b/src/cephadm/tests/test_deploy.py index bdadcf9906b..1c877df6bf5 100644 --- a/src/cephadm/tests/test_deploy.py +++ b/src/cephadm/tests/test_deploy.py @@ -370,6 +370,9 @@ def test_deploy_ceph_mgr_container(cephadm_fs, monkeypatch): ) assert '-e TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES' in runfile_lines[-1] assert '--pids-limit' in runfile_lines[-1] + assert '--entrypoint /usr/bin/ceph-mgr' in runfile_lines[-1] + assert f'-v /var/lib/ceph/{fsid}/mgr.foo:/var/lib/ceph/mgr/ceph-foo:z' in runfile_lines[-1] + assert f'-v /var/log/ceph/{fsid}:/var/log/ceph:z' in runfile_lines[-1] _firewalld().open_ports.assert_not_called() with open(basedir / 'config') as f: assert f.read() == 'XXXXXXX'