test: add postgres integration verification
This commit is contained in:
@@ -21,6 +21,16 @@ 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`.
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
Expected: `TestPostgresPing` passes.
|
||||
|
||||
## Web
|
||||
|
||||
The frontend is Svelte-only.
|
||||
|
||||
Reference in New Issue
Block a user