From 061dc1d05722e700247e980123c50bd80566a749 Mon Sep 17 00:00:00 2001 From: sritharan Date: Tue, 26 Apr 2022 05:23:03 +0000 Subject: [PATCH] Bug 2011 fixed Change-Id: I4767a45e87ade9e2d3523c5a1f56ce1e091027d7 Signed-off-by: sritharan Signed-off-by: garciadeblas --- osm_mon/tests/unit/collector/vnf_collectors/test_openstack.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osm_mon/tests/unit/collector/vnf_collectors/test_openstack.py b/osm_mon/tests/unit/collector/vnf_collectors/test_openstack.py index 0fc5e99..0b4f4a7 100644 --- a/osm_mon/tests/unit/collector/vnf_collectors/test_openstack.py +++ b/osm_mon/tests/unit/collector/vnf_collectors/test_openstack.py @@ -205,6 +205,7 @@ class CollectorTest(TestCase): self, build_gnocchi_client, build_neutron_client ): mock_gnocchi_client = mock.Mock() + mock_vim_session = mock.Mock() mock_gnocchi_client.resource.search.return_value = [ {"id": "test_id"}, ] @@ -237,7 +238,7 @@ class CollectorTest(TestCase): build_gnocchi_client.return_value = mock_gnocchi_client - backend = GnocchiBackend({"_id": "test_uuid"}) + backend = GnocchiBackend({"_id": "test_uuid"}, mock_vim_session) value = backend._collect_instance_disk_metric( "disk_read_bytes", "test_resource_id" ) -- 2.25.1