From 4516be40fe5947f62fe0712501451a7583ae8d3b Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Fri, 20 Oct 2023 10:43:04 -0400 Subject: [PATCH] cephadm: enhance test case with env vars 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 --- src/cephadm/tests/test_custom_container.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cephadm/tests/test_custom_container.py b/src/cephadm/tests/test_custom_container.py index cff217a840449..c0f2a7966c44c 100644 --- a/src/cephadm/tests/test_custom_container.py +++ b/src/cephadm/tests/test_custom_container.py @@ -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' ) -- 2.39.5