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

Update minimum stripe-mock version to 0.94.0 #935

Merged

Conversation

joeltaylor
Copy link
Contributor

The params for AccountLink changed in v0.93.0, which will cause the test suite to fail unless stripe-mock is pinned to an earlier version.

Fixes #934

@joeltaylor
Copy link
Contributor Author

I'm not too familiar with OpenAPI, but it doesn't look like stripe-mock has support for backwards compatibility? As a result, anyone cloning the repo and installing stripe-mock via go get -u github.com/stripe/stripe-mock will have a failing test suite.

My assumption is that the minimum version usually gets bumped instead of setting a MOCK_MINIMUM_VERSION to pin the acceptable versions for stripe-mock.

Copy link
Contributor

@remi-stripe remi-stripe left a comment

Choose a reason for hiding this comment

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

Thanks for doing the work @joeltaylor. Left a comment that I hope you can fix (or I can take if you prefer)

failure_url: "https://stripe.com/failure",
success_url: "https://stripe.com/success",
refresh_url: "https://stripe.com/refresh",
return_url: "https://stripe.com/return",
type: "custom_account_verification"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change this to account_onboarding and pin to stripe-mock 0.94.0 directly? The latest version I released has that other change and so at least it minimizes issues for someone who installed the latest again

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure thing!

@joeltaylor joeltaylor force-pushed the update-minimum-stripe-mock-version branch from 84484f4 to 8b0113d Compare July 31, 2020 23:38
@joeltaylor joeltaylor changed the title Update minimum stripe-mock version to 0.93.0 Update minimum stripe-mock version to 0.94.0 Jul 31, 2020
Copy link
Contributor

@remi-stripe remi-stripe left a comment

Choose a reason for hiding this comment

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

Thanks for making the changes!

The params for AccountLink changed in `v0.93.0`, which will cause the
test suite to fail unless `stripe-mock` is pinned to an earlier version.

Fixes stripe#934
@remi-stripe
Copy link
Contributor

I'm waiting on tests to pass and then I will merge! I won't do a release since it's a test suite change but that will let you rebase easily!

@joeltaylor joeltaylor force-pushed the update-minimum-stripe-mock-version branch from 8b0113d to aea12eb Compare July 31, 2020 23:39
@joeltaylor
Copy link
Contributor Author

Thanks! Just updated the commit message to reflect the change to 0.94.0

@remi-stripe remi-stripe merged commit f240405 into stripe:master Jul 31, 2020
@joeltaylor joeltaylor deleted the update-minimum-stripe-mock-version branch July 31, 2020 23:44
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.

Spec failure with stripe-mock >= 0.93.0
2 participants