mirror of
https://github.com/ceph/ceph
synced 2025-01-19 09:32:00 +00:00
mgr/cephadm: fix error_ok not being passed in unit tests
Signed-off-by: Adam King <adking@redhat.com>
This commit is contained in:
parent
ac882006e8
commit
d9292afedd
@ -117,13 +117,13 @@ def with_osd_daemon(cephadm_module: CephadmOrchestrator, _run_cephadm, host: str
|
||||
[host]).stdout == f"Created osd(s) 1 on host '{host}'"
|
||||
assert _run_cephadm.mock_calls == [
|
||||
mock.call(host, 'osd', 'ceph-volume',
|
||||
['--', 'lvm', 'list', '--format', 'json'], no_fsid=False, image='', log_output=True),
|
||||
['--', 'lvm', 'list', '--format', 'json'], no_fsid=False, error_ok=False, image='', log_output=True),
|
||||
mock.call(host, f'osd.{osd_id}', 'deploy',
|
||||
['--name', f'osd.{osd_id}', '--meta-json', mock.ANY,
|
||||
'--config-json', '-', '--osd-fsid', 'uuid'],
|
||||
stdin=mock.ANY, image=''),
|
||||
mock.call(host, 'osd', 'ceph-volume',
|
||||
['--', 'raw', 'list', '--format', 'json'], no_fsid=False, image='', log_output=True),
|
||||
['--', 'raw', 'list', '--format', 'json'], no_fsid=False, error_ok=False, image='', log_output=True),
|
||||
]
|
||||
dd = cephadm_module.cache.get_daemon(f'osd.{osd_id}', host=host)
|
||||
assert dd.name() == f'osd.{osd_id}'
|
||||
@ -1913,10 +1913,10 @@ Traceback (most recent call last):
|
||||
assert _run_cephadm.mock_calls == [
|
||||
mock.call('test', 'osd', 'ceph-volume',
|
||||
['--', 'inventory', '--format=json-pretty', '--filter-for-batch'], image='',
|
||||
no_fsid=False, log_output=False),
|
||||
no_fsid=False, error_ok=False, log_output=False),
|
||||
mock.call('test', 'osd', 'ceph-volume',
|
||||
['--', 'inventory', '--format=json-pretty'], image='',
|
||||
no_fsid=False, log_output=False),
|
||||
no_fsid=False, error_ok=False, log_output=False),
|
||||
]
|
||||
|
||||
@mock.patch("cephadm.serve.CephadmServe._run_cephadm")
|
||||
|
Loading…
Reference in New Issue
Block a user