feat: add integration tests for initialization flow
- Implemented end-to-end integration tests covering database reset, bootstrap admin creation, demo user provisioning, scenario installation, and general creation. - Added support for deterministic seeding and auto admin general creation. - Created a new package for integration tests with necessary configurations and scripts. - Updated various modules to support new features, including admin user handling and scenario seeding. - Enhanced error handling and validation in the join and orchestrator modules.
This commit is contained in:
+6
-1
@@ -2,13 +2,16 @@ POSTGRES_DB=sammo_test
|
||||
POSTGRES_USER=sammo
|
||||
POSTGRES_PASSWORD=ci-postgres
|
||||
POSTGRES_SCHEMA=public
|
||||
GAME_TOKEN_SECRET=ci-secret
|
||||
REDIS_PASSWORD=ci-redis
|
||||
REDIS_HOST=127.0.0.1
|
||||
REDIS_PORT=16379
|
||||
REDIS_DB=0
|
||||
GAME_TOKEN_SECRET=ci-secret
|
||||
REDIS_URL=redis://:ci-redis@127.0.0.1:16379/0
|
||||
GATEWAY_REDIS_PREFIX=sammo:gateway
|
||||
GATEWAY_DB_SCHEMA=public
|
||||
GATEWAY_ADMIN_LOCAL_ACCOUNT_ENABLED=true
|
||||
GATEWAY_BOOTSTRAP_TOKEN=ci-bootstrap
|
||||
GATEWAY_API_HOST=127.0.0.1
|
||||
GATEWAY_API_PORT=13000
|
||||
GATEWAY_PUBLIC_URL=http://localhost:13000
|
||||
@@ -16,5 +19,7 @@ GAME_API_HOST=127.0.0.1
|
||||
GAME_API_PORT=14000
|
||||
PROFILE=hwe
|
||||
SCENARIO=default
|
||||
INTEGRATION_WORLD_SEED=integration-seed
|
||||
INTEGRATION_JOIN_ALLOW_CITY=true
|
||||
KAKAO_REST_KEY=ci-kakao-rest-key
|
||||
KAKAO_REDIRECT_URI=http://localhost:13000/oauth/kakao/callback
|
||||
|
||||
Reference in New Issue
Block a user