Repository navigation
test(fake): redirect a site directory and serve one under /_decdn/ as its index.html - #30
Merged
Merged
Conversation
… its index.html The fake mirrors decdn/decdn#2818: under a site's /_decdn/, a directory in a bundle serves its index.html, HEAD of bundle content redirects to its site (a directory to the directory) at no pull, and a directory redirect keeps the request's query, on a site's own paths too. The contract fixture bundle gains docs/index.html, and a contract test, gated after v0.3.1, covers these cases. Closes #29 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
yigitdot
added a commit
that referenced
this pull request
Nov 23, 2026
Port the /_decdn/ redirect tests from #30 to capabilities-only public gateways: no allowance, and no pull means nothing paid. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #29.
The fake gateway mirrors decdn/decdn#2818 (branch
fix/2818-decdn-directory-index, at fc4015d2):/_decdn/, a directory in a bundle (<h>/docs/,<h>/docs/?ns=7) serves itsindex.html./_decdn/<h>/docs?ns=7→docs/?ns=7, and a site's own/docs?tab=2→docs/?tab=2, on GET and HEAD. fc4015d2 added the own-path case after the issue was written.HEADor a navigation (noSec-Fetch-Mode, ornavigate) of bundle content under/_decdn/redirects to the bundle's site, at no pull. A directory redirects to the directory there (<site>/docs/), not to itsindex.html. A blob is still served.Tests:
docs/index.html.shippedAfter("0.3.1"), covers these cases. It fetches/_decdn/<h>/docs/for a 200 without?ns=only, because?ns=routes the pull by a namespace the network need not serve. That matches sdk-python's contract test.HEADof a directory, an entry and the bundle root under/_decdn/, including with?ns=7.HEADquery.index.htmlanswering 404.On the decdn side,
sdk_contract.rsneedsdocs/index.htmlin its bundle, and the SDK pins need moving to this branch's merge commit. That work belongs to the decdn#2941 session, not this PR. Until it lands, decdn's SDK contract run at a pin that includes this test fails, on purpose, with "the fixture bundle has no docs/index.html".🤖 Generated with Claude Code