mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 09:26:34 +00:00
[AZ-189] [AZ-190] [AZ-191] [AZ-192] [AZ-193] [AZ-194] [AZ-195] Add e2e blackbox test suite
Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
# Module: Azaion.Common.Configs.ConnectionStrings
|
||||
|
||||
## Purpose
|
||||
Configuration POCO for PostgreSQL connection strings, bound from `appsettings.json` section `ConnectionStrings`.
|
||||
|
||||
## Public Interface
|
||||
|
||||
| Property | Type | Description |
|
||||
|----------|------|-------------|
|
||||
| `AzaionDb` | `string` | Read-only connection string (used for queries) |
|
||||
| `AzaionDbAdmin` | `string` | Admin connection string (used for writes: insert, update, delete) |
|
||||
|
||||
## Internal Logic
|
||||
None — pure data class.
|
||||
|
||||
## Dependencies
|
||||
None.
|
||||
|
||||
## Consumers
|
||||
- `DbFactory` constructor — receives `IOptions<ConnectionStrings>` to build data options
|
||||
|
||||
## Data Models
|
||||
None.
|
||||
|
||||
## Configuration
|
||||
Bound via `builder.Configuration.GetSection(nameof(ConnectionStrings))` in `Program.cs`. Expected env vars (from `env/api/env.ps1`):
|
||||
- `ASPNETCORE_ConnectionStrings__AzaionDb`
|
||||
- `ASPNETCORE_ConnectionStrings__AzaionDbAdmin`
|
||||
|
||||
## External Integrations
|
||||
None.
|
||||
|
||||
## Security
|
||||
Contains database credentials at runtime; values must not be logged or exposed.
|
||||
|
||||
## Tests
|
||||
Hardcoded in `UserServiceTest` (test credentials).
|
||||
Reference in New Issue
Block a user