F: correct the peers docs against the finished behaviour
docs/consolidator.md: the Testing section described the pre-feature test (no tests/peers.rs, the old tests.<system>.peers attribute, a note about assertions failing by design) and is rewritten for both layers, the module's eval check included. A shutdown subsection backs the README's promise, the agenix examples say why a consolidator would bind 0.0.0.0 (remote callers; peers need no inbound port), and the VM test asserts the chained-request status is exactly 400 as documented. README: token rotation on NixOS also needs a reload for the LoadCredential copy.
This commit is contained in:
1 parent
0a83386de5
commit
04992e202d
3 files changed
+15
-7
No files matched your search
+1
-1
@@ -338,7 +338,7 @@ pkgs.testers.runNixOSTest {
|
||||
assert http(alpha, base, A, "-X POST")[0] == 405
|
||||
assert http(alpha, base, A, "-X DELETE")[0] == 405
|
||||
status, _ = http(alpha, base, A, "-H 'x-slinuxm-hop: 1'")
|
||||
assert 400 <= status < 500, status
|
||||
assert status == 400, status
|
||||
assert http(alpha, f"http://127.0.0.1:{PORT}/api/v1/peers/nope", A)[0] == 404
|
||||
|
||||
with subtest("token rejected: revoke on beta, then restore with a new token file"):
|
||||
|
||||
Reference in new issue
Block a user