Add instance action db and obj pagination support.
This will be used by instance action pagination API. Add limit/marker/filters support to get_by_instance_uuid of InstanceActionList object, also add limit/marker/filters support to actions_get method of db. Part of blueprint pagination-add-changes-since-for-instance-action-list Change-Id: Ic7dd6480a4b250ae6529d94ee0386b5e95b0ca04
This commit is contained in:
committed by
Matt Riedemann
parent
1a4ae60e1b
commit
1950537a53
@@ -42,7 +42,8 @@ class ServerActionsSampleJsonTest(api_sample_base.ApiSampleTestBaseV21):
|
||||
def fake_instance_action_get_by_request_id(context, uuid, request_id):
|
||||
return copy.deepcopy(self.actions[uuid][request_id])
|
||||
|
||||
def fake_server_actions_get(context, uuid):
|
||||
def fake_server_actions_get(context, uuid, limit=None, marker=None,
|
||||
filters=None):
|
||||
return [copy.deepcopy(value) for value in
|
||||
six.itervalues(self.actions[uuid])]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user