lea-GEO / scripts /smoke-local.ps1
hsmm's picture
Initial commit for HF Space
35bdde1
raw
history blame contribute delete
826 Bytes
param(
[string]$BaseUrl = "",
[string]$RunnerBaseUrl = "http://localhost:8000",
[string]$DbServiceBaseUrl = "http://localhost:8001"
)
$ErrorActionPreference = 'Stop'
if ($BaseUrl) {
$RunnerBaseUrl = ($BaseUrl.TrimEnd('/') + "/runner")
$DbServiceBaseUrl = ($BaseUrl.TrimEnd('/') + "/db")
Write-Host "Root health..."
Invoke-RestMethod -Method GET -Uri ($BaseUrl.TrimEnd('/') + "/health") | ConvertTo-Json -Depth 10
}
Write-Host "Runner health..."
Invoke-RestMethod -Method GET -Uri "$RunnerBaseUrl/health" | ConvertTo-Json -Depth 10
Write-Host "DB service health..."
Invoke-RestMethod -Method GET -Uri "$DbServiceBaseUrl/health" | ConvertTo-Json -Depth 10
Write-Host "Brand pairs latest..."
Invoke-RestMethod -Method GET -Uri "$DbServiceBaseUrl/brand-pairs/latest" | ConvertTo-Json -Depth 10
Write-Host "OK"