add storage to cli#44
Conversation
|
@inian the new CLI in |
|
Ah cool, wanted to get this in before launch week. I will send a PR after launch week to the |
|
Sounds good 👍 the relevant lines are: Container (e.g. Gotrue): Lines 432 to 458 in 3c5558f Config: Lines 1045 to 1054 in 3c5558f Not sure what the format should be like, but let me know which configs you need to make dynamic (S3 stuff, etc.), public/private, etc. Kong config: Lines 40 to 116 in 3c5558f Also this has the updated storage schema from the dump so shouldn't need the SQL stuff. |
|
🎉 This PR is included in version 0.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## What kind of change does this PR introduce? chore / test coverage ## What is the current behavior? The `gen` command group (`gen types`, `gen signing-key`, `gen bearer-jwt`) had no e2e test coverage. ## What is the new behavior? - Adds `gen.e2e.test.ts` with behaviour and parity tests for all three `gen` subcommands: - `gen types` — happy path (TypeScript output shape), `--debug` flag, 401/403/404 error exits, unsupported `--lang go` with `--project-id`, missing data source - `gen signing-key` — default ES256 key shape, RS256 via `--algorithm` - `gen bearer-jwt` — missing `--role` error, anon/authenticated roles, custom `--valid-for`, custom `--sub` - Extends `normalize.ts` in `cli-test-helpers` with JWT/JWK normalization rules so `testParity` works on the non-deterministic crypto output from `gen signing-key` and `gen bearer-jwt` - Adds unit tests for the new normalize rules - Updates recorded fixtures for existing tests affected by fixture regeneration
similar to supabase/supabase#1007