]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add test assertions for iscsi options, mounts
authorJohn Mulligan <jmulligan@redhat.com>
Sat, 21 Oct 2023 20:29:38 +0000 (16:29 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Sun, 22 Oct 2023 12:29:20 +0000 (08:29 -0400)
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 <jmulligan@redhat.com>
src/cephadm/tests/test_deploy.py

index 1dd6853586437517b5652f8ad1ecaf78ef704f5c..872b2bfc7531b10c1bc8b8886f25ec215c645013 100644 (file)
@@ -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'