Перенос из 3 лабы

This commit is contained in:
Dmitry
2026-11-09 21:34:03 +03:00
parent ec540a1a72
commit 034d5537cf
77 changed files with 3253 additions and 0 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}` } });
}