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
+33
View File
@@ -0,0 +1,33 @@
meta {
name: Blank message and extra field
type: http
seq: 7
}
post {
url: {{baseUrl}}/api/v1/chats/{{chatId}}/messages
body: json
auth: none
}
headers {
Authorization: Bearer {{token}}
}
docs {
Пробельный текст запрещён, а поле sender_id не принимается:
strict validation отвечает 400 (лишние поля отклоняются, а не игнорируются).
}
body:json {
{
"text": " ",
"sender_id": "{{secondUserId}}"
}
}
tests {
test("400 invalid_request", function() {
expect(res.status).to.equal(400);
});
}