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
+30
View File
@@ -0,0 +1,30 @@
meta {
name: Non-member receives 404
type: http
seq: 5
}
get {
url: {{baseUrl}}/api/v1/chats/{{chatId}}
body: none
auth: none
}
headers {
Authorization: Bearer {{thirdToken}}
}
docs {
Аутентификация прошла, но доступа к ресурсу нет. Контракт требует 404,
а не 403: существование чужого чата не раскрывается.
}
tests {
test("404 not_found", function() {
expect(res.status).to.equal(404);
});
test("код ошибки not_found", function() {
expect(res.body.error.code).to.equal("not_found");
});
}