]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add test assertions for keepalived options, mounts
authorJohn Mulligan <jmulligan@redhat.com>
Sat, 21 Oct 2023 20:20:10 +0000 (16:20 -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 94f133e8db97b46e596815d206f9ab4ec0435bc8..1dd6853586437517b5652f8ad1ecaf78ef704f5c 100644 (file)
@@ -134,6 +134,11 @@ def test_deploy_keepalived_container(cephadm_fs, monkeypatch):
         runfile_lines = f.read().splitlines()
     assert 'podman' in runfile_lines[-1]
     assert runfile_lines[-1].endswith('quay.io/eeranimated/keepalived:latest')
+    assert '-e KEEPALIVED_AUTOCONF=false' in runfile_lines[-1]
+    assert '-e KEEPALIVED_DEBUG=false' in runfile_lines[-1]
+    assert '--cap-add=NET_ADMIN' in runfile_lines[-1]
+    assert '--cap-add=NET_RAW' in runfile_lines[-1]
+    assert f'-v {basedir}/keepalived.conf:/etc/keepalived/keepalived.conf' in runfile_lines[-1]
     _firewalld().open_ports.assert_not_called()
     assert not (basedir / 'config').exists()
     assert not (basedir / 'keyring').exists()