stripe-mock

stripe-mock is a mock HTTP server that responds like the real Stripe API. It can be used instead of Stripe's testmode to make test suites integrating with Stripe faster and less brittle.

MIT License

Downloads
23
Stars
1.3K
Committers
34

Bot releases are visible (Hide)

stripe-mock - v0.17.0

Published by brandur-stripe over 6 years ago

Changelog

ccfce7e Merge pull request #77 from stripe/brandur-reflect-idempotency-key
a23ef5c Reflect Idempotency-Key header back in response

stripe-mock - v0.16.2

Published by brandur-stripe over 6 years ago

Changelog

56c5482 Merge pull request #76 from stripe/brandur-hedge-zero-value
1dbc312 Hedge against the "zero Value"
ad06541 Merge pull request #74 from stripe/brandur-data-replacement
2b4d973 Replace data in response with data from request

stripe-mock - v0.16.1

Published by brandur-stripe over 6 years ago

Changelog

720cbec Merge pull request #73 from stripe/brandur-no-content-type-deletes
7fff60a Allow empty content type on DELETE

stripe-mock - v0.16.0

Published by brandur-stripe over 6 years ago

Changelog

ba29b2b Update bindata
c610fa6 Merge pull request #72 from stripe/update-openapi
ca75dff Update the OpenAPI specification and bundled data

stripe-mock - v0.15.0

Published by brandur-stripe over 6 years ago

Changelog

0fa0c65 Merge pull request #71 from stripe/brandur-openapi-file-string
0d273f1 Update the OpenAPI spec
d7be537 Merge pull request #70 from stripe/brandur-content-type-error
58004ac Validate multipart/form-data + error on mismatched media types
fc52594 Fix non-deterministic test

stripe-mock - v0.14.0

Published by brandur-stripe over 6 years ago

Changelog

3c0009a Not general, but adding my TODO.md to .gitignore
dece6ad Merge pull request #68 from stripe/brandur-openapi-files
cbe91f5 Update OpenAPI -- now including all file endpoints
9beade1 Merge pull request #64 from stripe/brandur-advanced-path-reflection
7da1df2 Implement "advanced" path parameter response reflection
e16881a Merge pull request #67 from stripe/brandur-param-coercer-any-of
50ceb42 Support primitives in an anyOf from the parameters coercer
4362e10 Merge pull request #65 from stripe/brandur-flexible-additional-properties
49cbff7 Flexible AdditionalProperties
25cfe82 Alphabetize function names

stripe-mock - v0.13.0

Published by brandur-stripe over 6 years ago

Changelog

c2f3c0e Merge pull request #62 from stripe/brandur-more-special-cased-actions
564badc Merge pull request #63 from stripe/brandur-fix-non-deterministic-tset
21f69bd Fix non-deterministic test
1c0d482 Special case more non-RESTful "actions"
65e92ad Merge pull request #60 from stripe/brandur-synthetic-schemas
25082ad If all other options fail, generate synthetic schemas
8cd8b04 Document all fields of GenerateParams
20e4fda Refactor Generate to use GenerateParams for invocations
6b5e3b9 Save path parameter names along with compiled routes
7159fd3 Organize server and server_test
18cd19d Make Example non-exported + organize into sections
98af8c7 Cordon off parts of the test file and organize it

stripe-mock - v0.12.0

Published by brandur-stripe over 6 years ago

Changelog

df0bd98 Remind releaser to pull tags before trying to create a new one
65ff199 Merge pull request #59 from stripe/brandur-reflect-id
b42b8bc Reflect an object's primary ID from a path back in the response

stripe-mock - v0.11.2

Published by brandur-stripe over 6 years ago

Changelog

d58d54d Merge pull request #58 from stripe/brandur-fix-homepage-link
9601763 Fix link to stripe-mock homepage

stripe-mock - v0.11.1

Published by brandur-stripe over 6 years ago

Changelog

2dd16c0 Merge pull request #57 from stripe/brandur-update-openapi-fixtures
fdd89a3 Update OpenAPI

stripe-mock - v0.11.0

Published by brandur-stripe over 6 years ago

Changelog

1688e95 Merge pull request #53 from stripe/brandur-listen-port
16b2ab7 Fall back to the PORT environmental variable


Automated with GoReleaser
Built with go version go1.9.1 darwin/amd64

stripe-mock - v0.10.0

Published by brandur-stripe over 6 years ago

Changelog

3832107 Merge pull request #55 from stripe/brandur-update-openapi-3
d38bb65 Update bundled OpenAPI spec
07a7a9d Merge pull request #54 from stripe/brandur-send-path
8867753 Send valid path to generator while running test suite
1644ab8 Merge pull request #51 from stripe/brandur-leaner-docker
0aca127 Leaner Docker image through the use of multi-stage builds
f44ea80 Merge pull request #50 from stripe/brandur-docker-hub
0781111 Push Docker image to Docker Hub


Automated with GoReleaser
Built with go version go1.9.1 darwin/amd64

stripe-mock - v0.9.0

Published by tmaxwell-stripe over 6 years ago

Changelog

03db1d0 New format for list resource URLs in spec (#47)
edef369 Tweak description of --version flag to include that it will exit
f5c24f0 Merge pull request #45 from stripe/jkakar/always-display-version
78c3e5d Always print the stripe-mock version.


Automated with GoReleaser
Built with go version go1.10 darwin/amd64

stripe-mock - v0.8.0

Published by apakulov-stripe over 6 years ago

Changelog

0fdc125 Merge pull request #44 from stripe/apakulov/update-openapi
ccecdb2 Update the OpenAPI specification and bundled data
7074aad Merge pull request #43 from stripe/update-openapi


Automated with GoReleaser
Built with go version go1.9.4 darwin/amd64

stripe-mock - v0.7.0

Published by jkakar-stripe over 6 years ago

Changelog

7d9ee1c Update the OpenAPI specification and bundled data
aaac396 The --rm-dist option seems to be the way to go now


Automated with GoReleaser
Built with go version go1.9.3 darwin/amd64

stripe-mock - v0.6.0

Published by brandur-stripe over 6 years ago

Changelog

8074314 Merge pull request #40 from stripe/brandur-update-openapi-2
fd198c7 Update OpenAPI and fixtures
17c2761 Merge pull request #38 from MattMasters/docker-build
8834f26 build from golang 1.9-apline base image and build docker image in script
e9d920f run go test on docker container
15b57f0 build and test docker image
6fdae22 build and run with docker


Automated with GoReleaser
Built with go version go1.9.1 darwin/amd64

stripe-mock - v0.5.0

Published by brandur-stripe almost 7 years ago

Changelog

9d064de Merge pull request #32 from stripe/remi-handle-invalid-auth
23e9582 Fix review comments
1232920 Merge pull request #37 from stripe/brandur-license
811872b License stripe-mock under MIT
6f00748 Add log back, mistakenly deleted it
e5dfd59 Separate the tests
f9ad1e7 Add helpers to create Stripe Error responses
823d696 Ensure that Request-Id header is set on response except for auth errors
2b50c44 Use StripeError on all error case in HandleRequest
da8c896 Define a StripeError struct and send this on authentication errors


Automated with GoReleaser
Built with go version go1.9.1 darwin/amd64

stripe-mock - v0.4.0

Published by brandur-stripe almost 7 years ago

Changelog

98a9cc4 Merge pull request #28 from stripe/brandur-update-openapi
b9a8a2c Update OpenAPI specification
5c0cf38 Merge pull request #27 from stripe/tmaxwell/fix-spec
052b88b Update OpenAPI spec+fixtures so test suite works again
72b7d39 Update spec + fixtures


Automated with GoReleaser
Built with go version go1.9.1 darwin/amd64

stripe-mock - v0.3.0

Published by brandur-stripe about 7 years ago

Changelog

0b1d01b Update OpenAPI spec
6c3d4ee A few more additions to the README


Automated with @goreleaser
Built with go version go1.9 darwin/amd64

stripe-mock - v0.2.1

Published by brandur-stripe about 7 years ago

Changelog

30a764e Merge pull request #23 from stripe/brandur-fix-yaml-loading
24a2bb4 Panic instead of silently converting non-string keys
eaeb7eb Fix decoded maps when unmarshaling fixtures from a YAML file


Automated with @goreleaser
Built with go version go1.9 darwin/amd64