Skip to content

Use json files instead of stripe mock and use specific spec version#3115

Merged
helenye-stripe merged 4 commits intomasterfrom
mbroshi/update-beta-fixture-tests
Apr 29, 2025
Merged

Use json files instead of stripe mock and use specific spec version#3115
helenye-stripe merged 4 commits intomasterfrom
mbroshi/update-beta-fixture-tests

Conversation

@mbroshi-stripe
Copy link
Copy Markdown
Contributor

@mbroshi-stripe mbroshi-stripe commented Apr 25, 2025

Why?

When moving away from stripe-mock's builtin fixtures to the fixtures that ship with the same version of openapi used by this repo, we found that some of the tests were failing. They were trying to get fixtures from stripe-mock that are in private beta, so not available.

What?

  • Adds hard-coded fixture JSON files to replace the calls to stripe-mock

See Also

TEST USING LATEST OPENAPI

@mbroshi-stripe mbroshi-stripe requested a review from a team as a code owner April 25, 2025 20:19
@mbroshi-stripe mbroshi-stripe requested review from helenye-stripe and prathmesh-stripe and removed request for a team April 25, 2025 20:19
@prathmesh-stripe
Copy link
Copy Markdown
Contributor

LGTM but build tests are still failing.

@helenye-stripe helenye-stripe enabled auto-merge (squash) April 29, 2025 16:38
@helenye-stripe helenye-stripe merged commit 8176605 into master Apr 29, 2025
4 checks passed
@helenye-stripe helenye-stripe deleted the mbroshi/update-beta-fixture-tests branch April 29, 2025 16:38
@helenye-stripe helenye-stripe changed the title Use json files instead of stripe mock Use json files instead of stripe mock and use specific spec version Apr 29, 2025
helenye-stripe added a commit that referenced this pull request Apr 30, 2025
* Use json files instead of stripe mock (#3115)

* Use json files instead of stripe mock

* Add additional failing endpoints fixtures

* Use a specified spec version for stripe-mock tests (#3118)

* Empty commit

---------

Co-authored-by: Helen Ye <helenye@stripe.com>
Co-authored-by: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com>

* Update generated code (#3102)

* Update generated code for v1675

* Update generated code for v1713

* Update generated code for v1718

* Update generated code for v1719

* Update generated code for v1719

* Update generated code for v1719

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
Co-authored-by: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com>

---------

Co-authored-by: Michael Broshi <94012587+mbroshi-stripe@users.noreply.github.com>
Co-authored-by: stripe-openapi[bot] <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
helenye-stripe added a commit that referenced this pull request Apr 30, 2025
* Use json files instead of stripe mock (#3115)

* Use json files instead of stripe mock

* Add additional failing endpoints fixtures

* Use a specified spec version for stripe-mock tests (#3118)

* Empty commit

---------

Co-authored-by: Helen Ye <helenye@stripe.com>
Co-authored-by: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com>

* Update generated code (#3102)

* Update generated code for v1675

* Update generated code for v1713

* Update generated code for v1718

* Update generated code for v1719

* Update generated code for v1719

* Update generated code for v1719

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
Co-authored-by: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com>

---------

Co-authored-by: Michael Broshi <94012587+mbroshi-stripe@users.noreply.github.com>
Co-authored-by: stripe-openapi[bot] <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
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.

3 participants