Release ObjectStore 0.1.1

This commit is contained in:
admin committed 2026-10-25 21:20:21 +01:00
1 parent bd6bb52dc7
commit 240c278621
20 files changed
+14034 -5

No files matched your search

@@ -115,10 +115,17 @@ public final class FeatureTest {
status(200, client.send(HttpTest.signedUriAs(URI.create(base + "/photos/users/one/allowed"),
"PUT", content, Map.of(), LIMITED, LIMITED_SECRET), HttpResponse.BodyHandlers.ofString()));
URI ownReadable = URI.create(base + "/photos/users/one/self_readable");
var trafficBefore = metrics.dataSnapshot();
status(200, client.send(HttpTest.signedUriAs(ownReadable,
"PUT", content, Map.of(), LIMITED, LIMITED_SECRET), HttpResponse.BodyHandlers.ofString()));
status(200, client.send(HttpTest.signedUriAs(ownReadable,
"GET", new byte[0], Map.of(), LIMITED, LIMITED_SECRET), HttpResponse.BodyHandlers.ofString()));
var trafficAfter = metrics.dataSnapshot();
if (trafficAfter.requests() - trafficBefore.requests() != 2 ||
trafficAfter.inboundBytes() - trafficBefore.inboundBytes() < content.length ||
trafficAfter.outboundBytes() - trafficBefore.outboundBytes() < content.length ||
trafficAfter.inFlight() != 0)
throw new AssertionError("S3 traffic meter missed upload or download body bytes");
status(403, client.send(HttpTest.signedUriAs(URI.create(base + "/photos/users/one/allowed"),
"GET", new byte[0], Map.of(), LIMITED, LIMITED_SECRET), HttpResponse.BodyHandlers.ofString()));
status(403, client.send(HttpTest.signedUriAs(URI.create(base + "/photos/users/one/blocked"),