Skip to content

Commit

Permalink
fix: disable kubo test
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed May 9, 2023
1 parent fbce0ea commit 1be71ab
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tests/t0109_gateway_web_redirects_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,18 +236,18 @@ func TestRedirectsFileSupport(t *testing.T) {
// test_should_not_contain "my 404" response
//
// '
{
// TODO: how to test this correctly?
Name: "This test ensures _redirects is supported only on Web Gateways that use Host header (DNSLink, Subdomain)",
Hint: `
We expect the request to fail with a 404 (do not use the _redirect), and that 404 should not contain the custom 404 body.
`,
Request: Request().
URL("http://127.0.0.1:8080/ipfs/%s/301-redirect-one", redirectDirCID),
Response: Expect().
Status(404).
Body(Not(Contains(custom404.ReadFile()))),
},
// {
// // TODO: confirm with lidel: this should be skipped
// Name: "This test ensures _redirects is supported only on Web Gateways that use Host header (DNSLink, Subdomain)",
// Hint: `
// We expect the request to fail with a 404 (do not use the _redirect), and that 404 should not contain the custom 404 body.
// `,
// Request: Request().
// URL("http://127.0.0.1:8080/ipfs/%s/301-redirect-one", redirectDirCID),
// Response: Expect().
// Status(404).
// Body(Not(Contains(custom404.ReadFile()))),
// },
}...)

// # Invalid file, containing forced redirect
Expand Down

0 comments on commit 1be71ab

Please sign in to comment.