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

Add support for ScheduledQueryRun #637

Merged
merged 1 commit into from
Jul 30, 2018

Conversation

remi-stripe
Copy link
Contributor

r? @brandur-stripe
cc @stripe/api-libraries

)

func TestSigmaScheduledQueryRunGet(t *testing.T) {
t.Skip("skipping test as stripe-mock does not support this resource")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It would be really cool if we could add some way to stub requests like we do in other libraries!

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, that would be cool! Mocking isn't really possible in Go, but I think we can accomplish something similar with a helper to boot up a little JSON test server that responds with a blob you can hand it.

In this case though, I think we should make sure that stripe-mock supports scheduled query runs. I'm just winding that through the backend now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, can you try bumping stripe-mock to 0.24.0 and seeing if you can activate these tests? Thanks!

ptal @remi-stripe

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh neat, thanks for shipping this one!

@remi-stripe remi-stripe force-pushed the remi-add-scheduled-query-run branch from 6def002 to d8ac125 Compare July 30, 2018 15:54
@remi-stripe
Copy link
Contributor Author

@brandur-stripe fixed, PTAL!

@brandur-stripe
Copy link
Contributor

LGTM.

Thanks!

@brandur-stripe brandur-stripe merged commit 73e1171 into master Jul 30, 2018
@brandur-stripe brandur-stripe deleted the remi-add-scheduled-query-run branch July 30, 2018 18:26
@brandur-stripe
Copy link
Contributor

Released as 37.0.0.

nadaismail-stripe pushed a commit that referenced this pull request Oct 18, 2024
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.

2 participants