Fix the benchmark job
This is a price to pay for using private API and not having unit tests :) Change-Id: Ie400a73eb2036678ed9446e0b499301cc2b690dd
This commit is contained in:
parent
a4a89d6b20
commit
1f509c5bde
@ -116,6 +116,7 @@ def _assess_db_object_and_api_performance(mock_log, mock_request):
|
|||||||
total_nodes = 0
|
total_nodes = 0
|
||||||
|
|
||||||
res = node_api_controller._get_nodes_collection(
|
res = node_api_controller._get_nodes_collection(
|
||||||
|
resource_url='nodes',
|
||||||
chassis_uuid=None,
|
chassis_uuid=None,
|
||||||
instance_uuid=None,
|
instance_uuid=None,
|
||||||
associated=None,
|
associated=None,
|
||||||
@ -132,6 +133,7 @@ def _assess_db_object_and_api_performance(mock_log, mock_request):
|
|||||||
print(" ** Getting nodes ** %s Elapsed: %s seconds." %
|
print(" ** Getting nodes ** %s Elapsed: %s seconds." %
|
||||||
(total_nodes, _calculate_delta(start, time.time())))
|
(total_nodes, _calculate_delta(start, time.time())))
|
||||||
res = node_api_controller._get_nodes_collection(
|
res = node_api_controller._get_nodes_collection(
|
||||||
|
resource_url='nodes',
|
||||||
chassis_uuid=None,
|
chassis_uuid=None,
|
||||||
instance_uuid=None,
|
instance_uuid=None,
|
||||||
associated=None,
|
associated=None,
|
||||||
|
Loading…
Reference in New Issue
Block a user