F: forward the peer's /api/v1 path and un-ignore the proxied tests
The proxy validated the route without its API prefix and handed the transport "/systemd/units", which a peer answered with 404. Validation still works on the bare route; the transport now gets "/api/v1/systemd/units". Un-ignoring the two acceptance tests (a_plain_peer_serves_its_own_data_through_the_proxy and shutdown_ends_a_proxied_follow) is the check for that fix; the unit tests in api/, mcp/ and the registry script their fakes on the peer's real paths again.
This commit is contained in:
1 parent
2455486205
commit
3ae8e74a1d
5 files changed
+93
-86
No files matched your search
@@ -442,13 +442,6 @@ async fn a_plain_peer_reports_up_and_auth_ok() {
|
||||
consolidator.stop().await;
|
||||
}
|
||||
|
||||
// Blocked by a defect outside this workstream: the proxy hands the transport
|
||||
// the stripped path ("/systemd/units") while an unmodified peer only serves
|
||||
// "/api/v1/systemd/units", so every proxied call to a healthy peer answers
|
||||
// "peer beta: not found on peer". The test states the contract; the Log entry
|
||||
// in plan/phase-5-consolidator/ws-f-nixos-docs.md has the details to route the
|
||||
// one-line fix to the owning stream.
|
||||
#[ignore = "blocked: the proxy drops the /api/v1 prefix of the forwarded path"]
|
||||
#[tokio::test]
|
||||
async fn a_plain_peer_serves_its_own_data_through_the_proxy() {
|
||||
let dir = TempDir::new("proxy");
|
||||
@@ -628,7 +621,6 @@ fn at_most_64_peers_may_be_configured() {
|
||||
assert!(err.contains("64"), "{err}");
|
||||
}
|
||||
|
||||
#[ignore = "blocked: the proxy drops the /api/v1 prefix of the forwarded path"]
|
||||
#[tokio::test]
|
||||
async fn shutdown_ends_a_proxied_follow() {
|
||||
let dir = TempDir::new("follow");
|
||||
|
||||
Reference in new issue
Block a user