]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: enhance test case with env vars
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 20 Oct 2023 14:43:04 +0000 (10:43 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Sat, 4 Nov 2023 18:53:06 +0000 (14:53 -0400)
Add some env vars to the custom container test to help assure
future changes don't overlook the ability to set them.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/tests/test_custom_container.py

index cff217a840449ff4368b42d930a822a327ceb76a..c0f2a7966c44c2bcf30fc32ab2825ef1fdefd666 100644 (file)
@@ -115,6 +115,9 @@ def test_deploy_custom_container(cephadm_fs):
             '--servers',
             '192.168.8.42,192.168.8.43,192.168.12.11',
         ]
+        ctx.config_blobs = {
+            'envs': ['FOO=1', 'BAR=77'],
+        }
 
         _cephadm._common_deploy(ctx)
 
@@ -132,6 +135,8 @@ def test_deploy_custom_container(cephadm_fs):
             ' --cgroups=split --no-hosts'
             ' -e CONTAINER_IMAGE=quay.io/foobar/quux:latest'
             ' -e NODE_NAME=host1'
+            ' -e FOO=1'
+            ' -e BAR=77'
             ' quay.io/foobar/quux:latest'
             ' --label frobnicationist --servers 192.168.8.42,192.168.8.43,192.168.12.11'
         )