https://github.com/tabledog/stripe-timelines
Write test data to a Stripe account.
https://github.com/tabledog/stripe-timelines
Last synced: 4 months ago
JSON representation
Write test data to a Stripe account.
- Host: GitHub
- URL: https://github.com/tabledog/stripe-timelines
- Owner: tabledog
- License: mit
- Created: 2022-05-17T19:13:03.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-17T19:24:06.000Z (about 3 years ago)
- Last Synced: 2024-12-29T07:43:41.465Z (5 months ago)
- Language: TypeScript
- Size: 81.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Stripe Timelines
Generates test data for [tdog CLI](https://github.com/tabledog/tdog-cli) Rust tests.
- [table.dog](https://table.dog)
- [Sponsor development](https://github.com/sponsors/emadda)## Writing test data to a Stripe account
- This repo has two uses:
- (1) Write random data and graph connections to a Stripe account.
- `./dist/index.js`
- This is to generate a large set of data with a variety of types.
- Similar to ["fuzzing"](https://en.wikipedia.org/wiki/Fuzzing).
- (2) Write an exact timeline to a Stripe account.
- `./dist/event_seq/cli.js`
- These "timelines" are exact API interactions that the `tdog_core` Rust package expect.
- They are recorded as dl.sqlite and events.json files in the `del` folder, and then copied to
`tdog-cli/crates/tdog_core/src/tests/stripe/event_seq/data/`.
- See [how-testing-works.md](https://github.com/tabledog/tdog-cli/blob/master/crates/tdog_core/src/tests/stripe/event_seq/notes/how-testing-works.md)- Set your Stripe secret key before running:
- `export TD_STRIPE_SECRET_KEY_TEST="rk_test_abc123"`