]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add a test assertion for tracing env var
authorJohn Mulligan <jmulligan@redhat.com>
Sat, 21 Oct 2023 20:10:32 +0000 (16:10 -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 1c877df6bf527fe300d10f382fd936f076a61683..d7712beb85f763b21fca0162b5c8edde6f5bee6b 100644 (file)
@@ -334,6 +334,7 @@ def test_deploy_a_tracing_container(cephadm_fs, monkeypatch):
     with open(basedir / 'unit.run') as f:
         runfile_lines = f.read().splitlines()
     assert 'podman' in runfile_lines[-1]
+    assert '-e discovery.type=single-node' in runfile_lines[-1]
     assert runfile_lines[-1].endswith('quay.io/rubber/elasticsearch:latest')
     _firewalld().open_ports.assert_not_called()
     assert not (basedir / 'config').exists()