Change-Id: I4767a45e87ade9e2d3523c5a1f56ce1e091027d7
Signed-off-by: sritharan <priyadarshini@tataelxsi.co.in>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
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"},
]
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"
)