From 03c29598d1065f156c5126d655fc34a5ed6d681b Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Sat, 21 Oct 2023 16:12:40 -0400 Subject: [PATCH] cephadm: add test assertions for nfs env vars, 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cephadm/tests/test_deploy.py b/src/cephadm/tests/test_deploy.py index 98a2b2a6d1f..c45e05166f6 100644 --- a/src/cephadm/tests/test_deploy.py +++ b/src/cephadm/tests/test_deploy.py @@ -64,6 +64,8 @@ def test_deploy_nfs_container(cephadm_fs, monkeypatch): assert runfile_lines[-1].endswith('quay.io/ceph/ceph:latest -F -L STDERR') assert '-e TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES' not in runfile_lines[-1] assert '--pids-limit' in runfile_lines[-1] + assert '-e CEPH_CONF=' in runfile_lines[-1] + assert f'-v /var/lib/ceph/{fsid}/nfs.fun/etc/ganesha:/etc/ganesha:z' in runfile_lines[-1] _firewalld().open_ports.assert_called_with([2049]) with open(f'/var/lib/ceph/{fsid}/nfs.fun/config') as f: assert f.read() == 'BALONEY' -- 2.39.5