fix failing s3 test
Some checks failed
AWS-Zig Build / build-zig-amd64-host (push) Failing after 6m25s

Not quite sure the problem I saw earlier in aws.zig, but the data
entering that switch prong is []const u8, so it is fine for what we are
doing
This commit is contained in:
Emil Lerch 2025-08-25 10:00:50 -07:00
parent 74704506d8
commit e29829f2a0
Signed by: lobo
GPG key ID: A7B62D657EF764F8
2 changed files with 2 additions and 6 deletions

View file

@ -898,11 +898,7 @@ fn generalAllocPrint(allocator: std.mem.Allocator, val: anytype) !?[]const u8 {
.one => return try std.fmt.allocPrint(allocator, "{s}", .{val}), .one => return try std.fmt.allocPrint(allocator, "{s}", .{val}),
.many => return try std.fmt.allocPrint(allocator, "{s}", .{val}), .many => return try std.fmt.allocPrint(allocator, "{s}", .{val}),
.slice => { .slice => {
log.warn( return try std.fmt.allocPrint(allocator, "{s}", .{val});
"printing object of type [][]const u8...pretty sure this is wrong: {any}",
.{val},
);
return try std.fmt.allocPrint(allocator, "{any}", .{val});
}, },
.c => return try std.fmt.allocPrint(allocator, "{s}", .{val}), .c => return try std.fmt.allocPrint(allocator, "{s}", .{val}),
}, },

View file

@ -1101,7 +1101,7 @@ test "rest_xml_with_input: S3 put object" {
// I don't think this will work since we're overriding the url // I don't think this will work since we're overriding the url
// try req_actuals.expectHeader("Host", "mysfitszj3t6webstack-hostingbucketa91a61fe-1ep3ezkgwpxr0.s3.us-west-2.amazonaws.com"); // try req_actuals.expectHeader("Host", "mysfitszj3t6webstack-hostingbucketa91a61fe-1ep3ezkgwpxr0.s3.us-west-2.amazonaws.com");
try req_actuals.expectHeader("x-amz-storage-class", "STANDARD"); try req_actuals.expectHeader("x-amz-storage-class", "STANDARD");
try std.testing.expectEqualStrings("/mysfitszj3t6webstack-hostingbucketa91a61fe-1ep3ezkgwpxr0/i/am/a/teapot/foo?x-id=PutObject", req_actuals.request_uri); try std.testing.expectEqualStrings("https://mysfitszj3t6webstack-hostingbucketa91a61fe-1ep3ezkgwpxr0.s3.us-west-2.amazonaws.com/i/am/a/teapot/foo?x-id=PutObject", req_actuals.request_uri);
try std.testing.expectEqualStrings("bar", req_actuals.body.?); try std.testing.expectEqualStrings("bar", req_actuals.body.?);
// Response expectations // Response expectations
try std.testing.expectEqualStrings("9PEYBAZ9J7TPRX43, host_id: jdRDo30t7Ge9lf6F+4WYpg+YKui8z0mz2+rwinL38xDZzvloJqrmpCAiKG375OSvHA9OBykJS44=", result.response_metadata.request_id); try std.testing.expectEqualStrings("9PEYBAZ9J7TPRX43, host_id: jdRDo30t7Ge9lf6F+4WYpg+YKui8z0mz2+rwinL38xDZzvloJqrmpCAiKG375OSvHA9OBykJS44=", result.response_metadata.request_id);