на 4 готово

This commit is contained in:
Dmitry
2026-11-02 20:20:50 +03:00
parent 9b665ebb0f
commit f498199834
5 changed files with 100 additions and 31 deletions
+22
View File
@@ -0,0 +1,22 @@
import http from 'k6/http';
import { check } from 'k6';
export const options = {
scenarios: {
steady: {
executor: 'constant-vus',
vus: 20,
duration: '120s',
},
},
};
const BASE = __ENV.BASE_URL || 'http://localhost:8080';
const TOKEN = __ENV.TOKEN;
const CHAT = __ENV.CHAT_ID;
export default function () {
const res = http.get(`${BASE}/health/live`);
check(res, { 'live 200': (r) => r.status === 200 });
http.get(`${BASE}/api/v1/users/me`, { headers: { Authorization: `Bearer ${TOKEN}` } });
}