Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: http range with file-3k-and-3-blocks-missing-block.car #213

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lidel
Copy link
Member

@lidel lidel commented Jun 9, 2024

This is WIP port of HTTP Range tests described in #154 (comment)

  • fix HTTP 500: cannot detect content-type: failed to fetch all nodes returned right now by boxo/gateway (or create better fixture that does not clash with content-type sniffing logic)
  • port test fror range AFTER missing block as well

Aims to close #154 (comment)

Copy link
Contributor

github-actions bot commented Jun 9, 2024

Results against Kubo master:
(check the action's summary for the full results)

Summary

Tests Failures Errors Skipped
2053 4 0 0

Copy link
Contributor

github-actions bot commented Jun 9, 2024

Results against Kubo latest:
(check the action's summary for the full results)

Summary

Tests Failures Errors Skipped
2053 4 0 0

Headers(
// TODO: fix HTTP 500: cannot detect content-type: failed to fetch all nodes i boxo/gateway (or create better fixture that does not clash with content-type sniffing logic)
Header("Content-Type").Contains("text/plain"),
Header("Content-Range").Equals("bytes 0-1000/31"),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💭 switch to size form unixfs, once HTTP 500 is resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tests for HTTP Range requests
1 participant