From: John Mulligan Date: Sat, 21 Oct 2023 20:35:32 +0000 (-0400) Subject: cephadm: add test assertion for snmp env file option X-Git-Tag: v19.0.0~203^2~7 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=022dd4b4680888ddb6e3745b39fc9c4706f3aac1;p=ceph-ci.git cephadm: add test assertion for snmp env file option 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 d7712beb85f..098bdfc3f1d 100644 --- a/src/cephadm/tests/test_deploy.py +++ b/src/cephadm/tests/test_deploy.py @@ -97,6 +97,7 @@ def test_deploy_snmp_container(cephadm_fs, monkeypatch): 'quay.io/aaabbb/snmp:latest --web.listen-address=:9464 --snmp.destination=192.168.100.10:8899 --snmp.version=V2c --log.level=info --snmp.trap-description-template=/etc/snmp_notifier/description-template.tpl' ) assert '--pids-limit' not in runfile_lines[-1] + assert f'--env-file=/var/lib/ceph/{fsid}/snmp-gateway.sunmop/snmp-gateway.conf' in runfile_lines[-1] _firewalld().open_ports.assert_not_called() basedir = pathlib.Path(f'/var/lib/ceph/{fsid}/snmp-gateway.sunmop') assert basedir.is_dir()