]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/cephadm: adapt tests to have OSDSPEC_AFFINITY
authorJoshua Schmid <jschmid@suse.de>
Thu, 4 Jun 2020 07:53:32 +0000 (09:53 +0200)
committerJoshua Schmid <jschmid@suse.de>
Thu, 4 Jun 2020 07:53:32 +0000 (09:53 +0200)
Signed-off-by: Joshua Schmid <jschmid@suse.de>
src/pybind/mgr/cephadm/tests/test_cephadm.py

index 30cc55984d74121e817382128f9e072235b64cde..3b27afcedd931453b33154a9bf597b30323c2405 100644 (file)
@@ -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'])