feat: add Modica Group SMS provider support - #667
Conversation
|
Closing/Reopening in order to re-trigger tests with |
|
This looks go to me, the only thing I am unsure about is whether to generate a client automatically from their spec using oapi-codegen or just leave it as you implemented it given how small the surface is. We can probably leave as is for now. The linter isn't happy, just run: To fix the formatting and then Re e2e tests, how do you want to do it? Using the cli or the cloud? In the cli case I can build a binary with support for this in the toml, in the cloud case I will need to set the env vars for you. |
- Add ModicaSMS provider implementing controller.SMSer interface - Support provider selection via AUTH_SMS_PROVIDER environment variable - Maintain backward compatibility with existing Twilio configuration - Add extensive test coverage including mock server and validation tests
|
@dbarrosop thanks for reviewing and your patience. Have fixed the lint issues. Happy to provide secrets to you for e2e tests via Discord DM. |
|
@dbarrosop sorry I think I broke my fork, so I'll re-create this PR with the latest changes as this appears unlinked/unmergable. |
Summary
Configuration
New environment variables:
AUTH_SMS_MODICA_USERNAME- Modica API usernameAUTH_SMS_MODICA_PASSWORD- Modica API passwordProvider selection:
AUTH_SMS_PROVIDER=modicato use Modica Grouptwiliofor backward compatibilityTechnical Details
+prefix required)Test Coverage
Before submitting this PR:
Checklist
Breaking changes
No breaking changes. The implementation maintains full backward compatibility with existing Twilio configurations and defaults to Twilio when no
provider is specified.
Tests
go test -v ./...Documentation
AUTH_SMS_PROVIDERdocumentation to show bothtwilioandmodicaoptionsAUTH_SMS_MODICA_USERNAMEandAUTH_SMS_MODICA_PASSWORDTest Plan
go test -v ./go/notifications/sms/Warning
Despite extensive tests I havn't actually done e2e testing in the nhost stack with this setup and would appreciate your help with doing so, I can provide test Modica group credentials on DM if needed.