fix: address project audit gaps
This commit is contained in:
@@ -13,19 +13,12 @@ Expected: all backend tests pass.
|
||||
|
||||
## PostgreSQL Integration
|
||||
|
||||
Use this test database URL when live PostgreSQL verification is required:
|
||||
|
||||
```text
|
||||
postgres://postgres:Weidong2023~!@8.137.107.29:19432/agent_dev?sslmode=disable
|
||||
```
|
||||
|
||||
Do not hardcode this value into application source files. Pass it through `DATABASE_URL`.
|
||||
Set `DATABASE_URL` to the live PostgreSQL test database before running integration checks. Do not commit real credentials.
|
||||
|
||||
Run:
|
||||
|
||||
```powershell
|
||||
Set-Location backend
|
||||
$env:DATABASE_URL='postgres://postgres:Weidong2023~!@8.137.107.29:19432/agent_dev?sslmode=disable'
|
||||
go test -tags integration ./internal/db -run TestPostgresPing -v
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user