261030.4 · 6182a9aa802e833d238ab04b403b428f42fe37f9
A black-box suite runs the built binary, starting with the 404 coin
make blackbox runs tests/ with pytest and httpx against a server in a throwaway home, on --public and on the form wwwvm's unit uses. Cases are TOML files named after the decision they check.
The coin shows on both forms for a path a served repo lacks. The cache message appears only without --public, for a path that names no repo.
reading declarations
Changes to tests/cases/a-missing-path-s-404-turns-like-a-coin.toml. All files
tests/cases/a-missing-path-s-404-turns-like-a-coin.toml
@@ -0,0 +1,38 @@+# A path a served repo lacks shows the coin, on either form of server.+servers = ["public", "default"]++[[request]]+path = "/forge.invalid/acct/r/nope.md"+status = 404+contains = ['class="coin"', "not found"]+absent = ["cache"]++[[request]]+path = "/forge.invalid/acct/r/dir/nope.go"+status = 404+contains = ['class="coin"']+absent = ["cache"]++[[request]]+path = "/forge.invalid/acct/r/nope/"+status = 404+contains = ['class="coin"']+absent = ["cache"]++[[request]]+path = "/forge.invalid/acct/r/README.md/nope"+status = 404+contains = ['class="coin"']+absent = ["cache"]++[[request]]+path = "/forge.invalid/acct/r/nope.md?log"+status = 404+contains = ['class="coin"']+absent = ["cache"]++[[request]]+path = "/forge.invalid/acct/r/nope.md?raw"+status = 404+contains = ['class="coin"']+absent = ["cache"]