v0.5.6: fix аудит Соннета — apply_effect стенд, mock_services, XSS, paramId валидация, serviceId=0 test

This commit is contained in:
2026-08-02 09:56:19 +04:00
parent b5ecf1dff3
commit 6f4ad7db32
7 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ for sid in stands:
json={"serviceId": -1, "displayName": "x"}, headers=H), 400))
t("serviceId=0", lambda: st(client.post(f"{base}/api/v1/svc/instances",
json={"serviceId": 0, "displayName": "x"}, headers=H), 404))
json={"serviceId": 0, "displayName": "x"}, headers=H), 400))
t("displayName=число", lambda: st(client.post(f"{base}/api/v1/svc/instances",
json={"serviceId": 1, "displayName": 12345}, headers=H), 201))