-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating list_sinks() to Iterator pattern. #2652
Conversation
@tseaver @daspecster PTAL this is ready to go |
d4cd270
to
035ec7f
Compare
@@ -24,7 +24,7 @@ def entry_from_resource(resource, client, loggers): | |||
"""Detect correct entry type from resource and instantiate. | |||
|
|||
:type resource: dict | |||
:param resource: one entry resource from API response | |||
:param resource: One entry resource from API response. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
||
self.assertEqual(sinks, RETURNED['sinks']) | ||
# First check the token. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This LGTM as well. |
035ec7f
to
c351c05
Compare
|
||
self.assertEqual(sinks, SINKS) | ||
# First check the token. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
iterator = client.list_sinks() | ||
page = six.next(iterator.pages) | ||
sinks = list(page) | ||
token = iterator.next_page_token |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Updating list_sinks() to Iterator pattern.
NOTE: Has #2651 as diffbase. Unit test changes will be forthcoming.