#!/usr/bin/env sh set -eu BASE_URL="${BASE_URL:-http://localhost:8080}" TOKEN="$(curl -fsS "$BASE_URL/api/v1/auth/login" \ -H 'Content-Type: application/json' \ -d '{"username":"sys_admin","password":"ChangeMe123!","deviceName":"smoke"}' | sed -n 's/.*"accessToken":"\([^"]*\)".*/\1/p')" test -n "$TOKEN" curl -fsS "$BASE_URL/actuator/health" >/dev/null curl -fsS "$BASE_URL/api/v1/system/about" -H "Authorization: Bearer $TOKEN" >/dev/null curl -fsS "$BASE_URL/api/v1/employees?page=1&size=5" -H "Authorization: Bearer $TOKEN" >/dev/null curl -fsS "$BASE_URL/api/v1/reports/headcount/export" \ -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -d '{}' >/dev/null echo "smoke passed"