Loading crates/s3s/src/ops/mod.rs +9 −0 Original line number Diff line number Diff line Loading @@ -297,6 +297,15 @@ async fn prepare(req: &mut Request, auth: Option<&dyn S3Auth>, base_domain: Opti resolve_route(req, s3_path, req.s3ext.qs.as_ref())? }; // FIXME: hack for E2E tests (minio/mint) if op.name() == "ListObjects" { if let Some(qs) = req.s3ext.qs.as_ref() { if qs.has("events") { return Err(s3_error!(NotImplemented, "listenBucketNotification only works on MinIO")); } } } debug!(op = %op.name(), ?s3_path, "resolved route"); if needs_full_body { Loading scripts/report-mint.py +16 −1 Original line number Diff line number Diff line Loading @@ -34,8 +34,23 @@ def from_json(x: Any) -> MintLog: if __name__ == "__main__": log_path = sys.argv[1] logs = [] with open(log_path) as f: logs = [from_json(json.loads(line.strip())) for line in f.readlines()] for line in f.readlines(): line = line.strip() if len(line) == 0: continue if line.find("{") != 0: line = line[line.find("{") :] try: json_value = json.loads(line) except Exception as e: print(f"error parsing log line: {line}") continue logs.append(from_json(json_value)) for x in logs: if ":" in x.name: Loading Loading
crates/s3s/src/ops/mod.rs +9 −0 Original line number Diff line number Diff line Loading @@ -297,6 +297,15 @@ async fn prepare(req: &mut Request, auth: Option<&dyn S3Auth>, base_domain: Opti resolve_route(req, s3_path, req.s3ext.qs.as_ref())? }; // FIXME: hack for E2E tests (minio/mint) if op.name() == "ListObjects" { if let Some(qs) = req.s3ext.qs.as_ref() { if qs.has("events") { return Err(s3_error!(NotImplemented, "listenBucketNotification only works on MinIO")); } } } debug!(op = %op.name(), ?s3_path, "resolved route"); if needs_full_body { Loading
scripts/report-mint.py +16 −1 Original line number Diff line number Diff line Loading @@ -34,8 +34,23 @@ def from_json(x: Any) -> MintLog: if __name__ == "__main__": log_path = sys.argv[1] logs = [] with open(log_path) as f: logs = [from_json(json.loads(line.strip())) for line in f.readlines()] for line in f.readlines(): line = line.strip() if len(line) == 0: continue if line.find("{") != 0: line = line[line.find("{") :] try: json_value = json.loads(line) except Exception as e: print(f"error parsing log line: {line}") continue logs.append(from_json(json_value)) for x in logs: if ":" in x.name: Loading