This commit is contained in:
Матвей
2026-10-27 12:24:31 +03:00
parent a1bb6f8bde
commit 6bc0712c2c
27 changed files with 16362 additions and 86 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ def main():
client = Client(args.base_url, args.ca_file)
alice, _bob, _eve, chat = client.bootstrap()
data = (ROOT / "tests/fixtures/sample.png").read_bytes()
client.call("POST", "/api/v1/chats/" + chat["id"] + "/attachments?filename=permission.png", 201,
client.call("POST", "/api/v1/chats/" + chat["id"] + "/attachments?filename=permission.png", 202,
actor=alice, raw=data, headers={"Content-Type": "image/png"}, schema="Attachment")
bucket = "permission-probe-" + uuid.uuid4().hex
code = """from botocore.exceptions import ClientError