Skip to content
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

Pagination support to list all tests #20

Merged
merged 4 commits into from
Dec 11, 2018
Merged

Conversation

cxuu
Copy link
Contributor

@cxuu cxuu commented Dec 10, 2018

  • Renames BucketName to BucketKey in ListTestsInput to be consistent with Runscope API. Really, even many of the integration tests were doing BucketName: bucket.Key, which also warrents the correction.

  • Add Offset field to ListTestsInput so pagination is possible. This is a field offcially supported by the Runscope API https://www.runscope.com/docs/api/tests#list.

  • Correct the docstring on ListTests() since it does NOT list all tests, and implement another ListAllTests() function using pagination with test coverage.

  • All tests passed locally.

@cxuu
Copy link
Contributor Author

cxuu commented Dec 10, 2018

PTAL @ewilde @canthefason

Copy link
Owner

@ewilde ewilde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, couple of comments

bucket.go Show resolved Hide resolved
bucket.go Show resolved Hide resolved
bucket.go Show resolved Hide resolved
bucket.go Show resolved Hide resolved
ewilde and others added 3 commits December 10, 2018 13:18
Co-Authored-By: charleschengxu <charlesxu1995@gmail.com>
Co-Authored-By: charleschengxu <charlesxu1995@gmail.com>
Co-Authored-By: charleschengxu <charlesxu1995@gmail.com>
@ewilde ewilde merged commit 8935c04 into ewilde:master Dec 11, 2018
@ewilde
Copy link
Owner

ewilde commented Dec 11, 2018

@charleschengxu 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants