Files

12 lines
565 B
PowerShell

Write-Host 'Checking gateway health...'
Invoke-RestMethod -Uri 'http://localhost:8080/health' | ConvertTo-Json -Depth 5
Write-Host 'Checking auth health through proxy...'
Invoke-RestMethod -Uri 'http://localhost:8080/proxy/auth/health' | ConvertTo-Json -Depth 5
Write-Host 'Logging in to auth...'
$loginBody = @{ username='admin'; password='admin123' } | ConvertTo-Json
Invoke-RestMethod -Method Post -Uri 'http://localhost:8080/proxy/auth/auth/login' -Body $loginBody -ContentType 'application/json' | ConvertTo-Json -Depth 5
Write-Host 'Smoke test completed.'