From bd2c1b751329044901503c232f5a75982a5f7f42 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Sat, 21 Oct 2023 16:29:38 -0400 Subject: [PATCH] cephadm: add test assertions for iscsi options, 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 --- src/cephadm/tests/test_deploy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cephadm/tests/test_deploy.py b/src/cephadm/tests/test_deploy.py index 1dd6853586437..872b2bfc7531b 100644 --- a/src/cephadm/tests/test_deploy.py +++ b/src/cephadm/tests/test_deploy.py @@ -227,6 +227,9 @@ def test_deploy_iscsi_container(cephadm_fs, monkeypatch): assert runfile_lines[-1].endswith('quay.io/ayeaye/iscsi:latest') assert '-e TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES' not in runfile_lines[-1] assert '--pids-limit' in runfile_lines[-1] + assert '--privileged' in runfile_lines[-1] + assert f'-v {basedir}/iscsi-gateway.cfg:/etc/ceph/iscsi-gateway.cfg: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' -- 2.39.5