From: Joshua Schmid Date: Thu, 4 Jun 2020 07:53:32 +0000 (+0200) Subject: mgr/cephadm: adapt tests to have OSDSPEC_AFFINITY X-Git-Tag: wip-pdonnell-testing-20200918.022351~786^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=917e043c7c7b94a40e6867bb6fd25ff005be76b3;p=ceph-ci.git mgr/cephadm: adapt tests to have OSDSPEC_AFFINITY Signed-off-by: Joshua Schmid --- diff --git a/src/pybind/mgr/cephadm/tests/test_cephadm.py b/src/pybind/mgr/cephadm/tests/test_cephadm.py index 30cc55984d7..3b27afcedd9 100644 --- a/src/pybind/mgr/cephadm/tests/test_cephadm.py +++ b/src/pybind/mgr/cephadm/tests/test_cephadm.py @@ -285,7 +285,7 @@ class TestCephadm(object): _run_cephadm.assert_any_call( 'test', 'osd', 'ceph-volume', ['--config-json', '-', '--', 'lvm', 'prepare', '--bluestore', '--data', '/dev/sdb', '--no-systemd'], - env_vars=[], error_ok=True, stdin='{"config": "", "keyring": ""}') + env_vars=['CEPH_VOLUME_OSDSPEC_AFFINITY=foo'], error_ok=True, stdin='{"config": "", "keyring": ""}') _run_cephadm.assert_called_with('test', 'osd', 'ceph-volume', ['--', 'lvm', 'list', '--format', 'json'])