Skip to content

Commit

Permalink
fix: t0123 headers
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed Jun 29, 2023
1 parent e6a5c94 commit d921d62
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/path_gateway_dag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,15 @@ func TestGatewayJsonCbor(t *testing.T) {

tests := SugarTests{
{
Name: "GET UnixFS file with JSON bytes is returned with application/json Content-Type (1)",
Name: "GET UnixFS file with JSON bytes is returned with application/json Content-Type - without headers",
Hint: `
## Quick regression check for JSON stored on UnixFS:
## it has nothing to do with DAG-JSON and JSON codecs,
## but a lot of JSON data is stored on UnixFS and is requested with or without various hints
## and we want to avoid surprises like https://github.com/protocol/bifrost-infra/issues/2290
`,
Request: Request().
Path("/ipfs/{{cid}}", fileJSONCID).
Headers(
Header("Accept", "application/json"),
),
Path("/ipfs/{{cid}}", fileJSONCID),
Response: Expect().
Status(200).
Headers(
Expand All @@ -43,7 +40,7 @@ func TestGatewayJsonCbor(t *testing.T) {
Body(fileJSONData),
},
{
Name: "GET UnixFS file with JSON bytes is returned with application/json Content-Type (2)",
Name: "GET UnixFS file with JSON bytes is returned with application/json Content-Type - with headers",
Hint: `
## Quick regression check for JSON stored on UnixFS:
## it has nothing to do with DAG-JSON and JSON codecs,
Expand Down

0 comments on commit d921d62

Please sign in to comment.