feat: lab2 done

This commit is contained in:
2026-10-09 15:48:03 +03:00
parent f743ee10a2
commit 575f8ee386
104 changed files with 7038 additions and 1099 deletions
+31
View File
@@ -0,0 +1,31 @@
meta {
name: Create third session (Basic)
type: http
seq: 6
}
post {
url: {{baseUrl}}/api/v1/auth/sessions
body: none
auth: basic
}
auth:basic {
username: {{thirdUsername}}
password: {{password}}
}
docs {
Сессия постороннего пользователя: используется только в негативных
проверках доступа к чужому чату. Сохраняет thirdToken.
}
tests {
test("201 created", function() {
expect(res.status).to.equal(201);
});
}
script:post-response {
bru.setVar("thirdToken", res.body.token);
}