From: John Mulligan Date: Sat, 21 Oct 2023 20:27:13 +0000 (-0400) Subject: cephadm: add test assertions for nvmeof options, mount X-Git-Tag: v19.0.0~203^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ef775debb5a44797337d304a536e74a859a5cdb8;p=ceph.git cephadm: add test assertions for nvmeof options, mount 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 872b2bfc7531..ced9a0bb7f5d 100644 --- a/src/cephadm/tests/test_deploy.py +++ b/src/cephadm/tests/test_deploy.py @@ -271,6 +271,11 @@ def test_deploy_nvmeof_container(cephadm_fs, monkeypatch): assert runfile_lines[-1].endswith('quay.io/ownf/nmve:latest') assert '-e TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES' not in runfile_lines[-1] assert '--pids-limit' in runfile_lines[-1] + assert '--ulimit memlock=-1:-1' in runfile_lines[-1] + assert '--cap-add=SYS_ADMIN' in runfile_lines[-1] + assert '--cap-add=CAP_SYS_NICE' in runfile_lines[-1] + assert f'-v {basedir}/ceph-nvmeof.conf:/src/ceph-nvmeof.conf:z' in runfile_lines[-1] + assert '--mount type=bind,source=/lib/modules,destination=/lib/modules' in runfile_lines[-1] _firewalld().open_ports.assert_not_called() with open(basedir / 'config') as f: assert f.read() == 'XXXXXXX'