Spaces:
Paused
Paused
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca Download tests/seed.sql from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/edb5ea459a6e19d91e941f078c1ff1799d310731/tests/seed.sql
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway@edb5ea459a6e19d91e941f078c1ff1799d310731/tests/seed.sql
-
curl -L -o seed.sql https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/edb5ea459a6e19d91e941f078c1ff1799d310731/tests/seed.sql
1.03 kB
| -- Seed test data for integration tests | |
| -- Run AFTER GORM has migrated the schema (i.e., after API starts) | |
| -- Test user | |
| INSERT INTO users (id, email, api_key, timezone, subscription_name, created_at, updated_at) | |
| VALUES ( | |
| 'test-user-id', | |
| 'test@httpsms.com', | |
| 'test-user-api-key', | |
| 'UTC', | |
| 'pro-monthly', | |
| NOW(), | |
| NOW() | |
| ) ON CONFLICT (id) DO NOTHING; | |
| -- Test user for API key rotation tests (isolated to avoid mutating the shared test user) | |
| INSERT INTO users (id, email, api_key, timezone, subscription_name, created_at, updated_at) | |
| VALUES ( | |
| 'rotate-test-user-id', | |
| 'rotate-test@httpsms.com', | |
| 'rotate-test-api-key', | |
| 'UTC', | |
| 'pro-monthly', | |
| NOW(), | |
| NOW() | |
| ) ON CONFLICT (id) DO NOTHING; | |
| -- System user (for event queue auth) | |
| INSERT INTO users (id, email, api_key, timezone, subscription_name, created_at, updated_at) | |
| VALUES ( | |
| 'system-user-id', | |
| 'system@httpsms.com', | |
| 'system-user-api-key', | |
| 'UTC', | |
| 'pro-monthly', | |
| NOW(), | |
| NOW() | |
| ) ON CONFLICT (id) DO NOTHING; | |