2024-08-30 00:03:31 +03:00
|
|
|
# Datasource fixtures
|
|
|
|
|
2024-09-25 18:53:05 +03:00
|
|
|
## NDJSON files
|
|
|
|
These files are fixtures used for running tests
|
|
|
|
|
|
|
|
## Schema JSON files
|
2024-08-30 00:03:31 +03:00
|
|
|
The file mockingbird-schema.json is a schema for generating fake data using the Mockingbird CLI.
|
|
|
|
|
|
|
|
The CLI is installed via npm:
|
|
|
|
|
|
|
|
```
|
2024-09-02 14:24:50 +03:00
|
|
|
npm install -g @tinybirdco/mockingbird-cli
|
2024-08-30 00:03:31 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
The command I'm currently using to generate the data is:
|
|
|
|
|
|
|
|
```
|
|
|
|
mockingbird-cli tinybird --schema ghost/tinybird/datasources/fixtures/mockingbird-schema.json --endpoint gcp_europe_west3 --token xxxx --datasource analytics_events --eps 50 --limit 5000
|
|
|
|
```
|