Skip to content

Commit b65f03b

Browse files
gammazerolidel
andauthored
fix(tar): test http status and not error string in body (#221)
* Look for correct error message The error message in boxo was fixed to say "not allowed" instead of "now allowed". The message that the gateway conformance test looks for needs to match. * refactor: make test backward-compatible --------- Co-authored-by: Marcin Rataj <[email protected]>
1 parent f1d01d3 commit b65f03b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.6.2] - 2024-08-09
8+
### Changed
9+
- Relaxed negative test of TAR response [#221](https://github.com/ipfs/gateway-conformance/pull/221)
10+
711
## [0.6.1] - 2024-07-29
812
### Changed
913
- Support meaningful `Cache-Control` on generated UnixFS directory listing responses on `/ipfs` namespace

tests/path_gateway_tar_test.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,12 @@ func TestTar(t *testing.T) {
8989
},
9090
{
9191
Name: "GET TAR with relative paths outside root fails",
92+
Hint: "relative UnixFS paths outside the root are not allowed",
9293
Request: Request().
9394
Path("/ipfs/{{cid}}", outsideRootCID).
9495
Query("format", "tar"),
9596
Response: Expect().
96-
Body(
97-
Contains("relative UnixFS paths outside the root are now allowed"),
98-
),
97+
StatusBetween(400, 599),
9998
},
10099
{
101100
Name: "GET TAR with relative paths inside root works",

0 commit comments

Comments
 (0)