-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig-test-integration-pg.yml
More file actions
89 lines (81 loc) · 2.24 KB
/
config-test-integration-pg.yml
File metadata and controls
89 lines (81 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# TMI Integration Test Configuration - PostgreSQL
#
# This configuration is used for integration tests with PostgreSQL backend.
# Based on config-development.yml with test-appropriate adjustments.
#
# Usage: ./scripts/run-integration-tests-pg.sh
#
server:
port: "8080"
interface: localhost
read_timeout: 5s
write_timeout: 10s
idle_timeout: 1m0s
tls_enabled: false
tls_cert_file: ""
tls_key_file: ""
tls_subject_name: localhost
http_to_https_redirect: false
database:
# DATABASE_URL (12-factor app pattern) - contains all connection parameters
url: "postgres://tmi_dev:dev123@localhost:5433/tmi_dev?sslmode=disable"
redis:
host: localhost
port: "6380"
password: ""
db: 1 # Use different DB for tests to avoid conflicts
auth:
build_mode: test # Test mode for TMI provider
auto_promote_first_user: true
everyone_is_a_reviewer: false
jwt:
secret: test-jwt-secret-do-not-use-in-production
expiration_seconds: 300 # Shorter for tests
signing_method: HS256
oauth:
callback_url: http://localhost:8080/oauth2/callback
providers:
tmi:
id: tmi
name: TMI Provider
enabled: true
icon: "/static/provider-logos/signin/tmi.svg"
client_id: tmi-client-id
client_secret: tmi-oauth-secret-12345
authorization_url: http://localhost:8080/oauth2/authorize?idp=tmi
token_url: http://localhost:8080/oauth2/token?idp=tmi
userinfo: []
issuer: tmi-oauth-provider
jwks_url: "http://localhost:8080/.well-known/"
scopes:
- openid
- profile
- email
additional_params: {}
saml:
enabled: false
providers: {}
websocket:
inactivity_timeout_seconds: 30 # Short timeout for tests
logging:
level: debug
is_dev: true
is_test: true
log_dir: logs/integration-test
max_age_days: 1
max_size_mb: 10
max_backups: 3
also_log_to_console: true
log_api_requests: true
log_api_responses: true
log_websocket_messages: true
redact_auth_tokens: true
suppress_unauthenticated_logs: true
operator:
name: "TMI Integration Tests"
contact: "test@example.com"
administrators:
- provider: "tmi"
provider_id: "test-admin"
email: "test-admin@tmi.local"
subject_type: "user"