Skip to content

Commit

Permalink
tests: add patch for collect_ceph_osd_info, prevent messing tests up
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Deza <[email protected]>
  • Loading branch information
Alfredo Deza committed Aug 14, 2019
1 parent bbaae07 commit e46d593
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ceph_medic/tests/test_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,6 @@ def mock_metadata(*args, **kwargs):
monkeypatch.setattr(collector, "collect_network", mock_metadata)
monkeypatch.setattr(collector, "collect_ceph_info", mock_metadata)
monkeypatch.setattr(collector, "collect_socket_info", mock_metadata)
monkeypatch.setattr(collector, "collect_ceph_osd_info", mock_metadata)
result = collector.get_node_metadata(Mock(), "mon0", [])
assert key in result

0 comments on commit e46d593

Please sign in to comment.