Some checks failed
Test Suite / playwright-tests (push) Waiting to run
Deploy Development / deploy (push) Failing after 0s
Test Suite / pytest-backend (push) Failing after 5m1s
Test Suite / lint-backend (push) Failing after 0s
Test Suite / build-frontend (push) Successful in 0s
Test Suite / k6 /api/health Baseline (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
792 B
JavaScript
33 lines
792 B
JavaScript
/**
|
|
* Phase-0-Baseline: parallele GET /api/health (kein Auth).
|
|
* BASE_URL optional, z. B. https://dev.kairo.jinkendo.de
|
|
*/
|
|
import http from 'k6/http'
|
|
import { check } from 'k6'
|
|
|
|
export const options = {
|
|
scenarios: {
|
|
health: {
|
|
executor: 'constant-vus',
|
|
vus: 10,
|
|
duration: '30s',
|
|
gracefulStop: '5s',
|
|
tags: { scenario: 'health' },
|
|
exec: 'health',
|
|
},
|
|
},
|
|
thresholds: {
|
|
http_req_failed: ['rate<0.05'],
|
|
'http_req_duration{scenario:health}': ['p(95)<3000'],
|
|
},
|
|
}
|
|
|
|
const BASE = (__ENV.BASE_URL || 'https://dev.kairo.jinkendo.de').replace(/\/$/, '')
|
|
|
|
export function health() {
|
|
const res = http.get(`${BASE}/api/health`, { tags: { scenario: 'health' } })
|
|
check(res, {
|
|
'health 2xx': (r) => r.status >= 200 && r.status < 300,
|
|
})
|
|
}
|