F: F4 peers docs, agenix example and tool-count note
README peers section, docs/consolidator.md (threat model, tokens, firewall, worked agenix example, reload/restart), the MCP tool count in both tables, and config.example.toml commentary.
This commit is contained in:
1 parent
66ee41a672
commit
4d83c2eff5
7 files changed
+301
-20
No files matched your search
+12
-16
@@ -391,8 +391,7 @@ async fn a_plain_peer_reports_up_and_auth_ok() {
|
||||
let dir = TempDir::new("plain");
|
||||
let peer = Peer::start().await;
|
||||
let token = peer.token_file(&dir);
|
||||
let consolidator =
|
||||
Consolidator::start(one_peer("beta", peer.url("http"), None, &token)).await;
|
||||
let consolidator = Consolidator::start(one_peer("beta", peer.url("http"), None, &token)).await;
|
||||
|
||||
let mut status = consolidator
|
||||
.wait_status("beta", |s| s.server.up && s.api.up)
|
||||
@@ -455,8 +454,7 @@ async fn a_plain_peer_serves_its_own_data_through_the_proxy() {
|
||||
let dir = TempDir::new("proxy");
|
||||
let peer = Peer::start().await;
|
||||
let token = peer.token_file(&dir);
|
||||
let consolidator =
|
||||
Consolidator::start(one_peer("beta", peer.url("http"), None, &token)).await;
|
||||
let consolidator = Consolidator::start(one_peer("beta", peer.url("http"), None, &token)).await;
|
||||
consolidator
|
||||
.wait_status("beta", |s| s.server.up && s.api.up)
|
||||
.await;
|
||||
@@ -487,13 +485,8 @@ async fn a_tls_peer_is_trusted_through_its_ca_file() {
|
||||
let (ca_path, cert, key) = ca.leaf_for_loopback(&dir, "good");
|
||||
let peer = Peer::start_tls(&cert, &key).await;
|
||||
let token = peer.token_file(&dir);
|
||||
let consolidator = Consolidator::start(one_peer(
|
||||
"beta",
|
||||
peer.url("https"),
|
||||
Some(ca_path),
|
||||
&token,
|
||||
))
|
||||
.await;
|
||||
let consolidator =
|
||||
Consolidator::start(one_peer("beta", peer.url("https"), Some(ca_path), &token)).await;
|
||||
|
||||
// `api.up` needs a verified handshake and our token: that is the CA file
|
||||
// working end to end.
|
||||
@@ -515,8 +508,13 @@ async fn a_peer_signed_by_another_ca_is_a_tls_error() {
|
||||
let (_, cert, key) = other.leaf_for_loopback(&dir, "other");
|
||||
let peer = Peer::start_tls(&cert, &key).await;
|
||||
let token = peer.token_file(&dir);
|
||||
let consolidator =
|
||||
Consolidator::start(one_peer("beta", peer.url("https"), Some(trusted_ca), &token)).await;
|
||||
let consolidator = Consolidator::start(one_peer(
|
||||
"beta",
|
||||
peer.url("https"),
|
||||
Some(trusted_ca),
|
||||
&token,
|
||||
))
|
||||
.await;
|
||||
|
||||
// The port answers, the handshake does not: a certificate fault must not
|
||||
// read as an outage.
|
||||
@@ -561,9 +559,7 @@ async fn a_redirect_is_reported_and_never_followed() {
|
||||
// Let the health loop probe as well, then check the Location was never
|
||||
// acted on.
|
||||
tokio::time::sleep(Duration::from_millis(500)).await;
|
||||
consolidator
|
||||
.wait_status("beta", |s| !s.api.up)
|
||||
.await;
|
||||
consolidator.wait_status("beta", |s| !s.api.up).await;
|
||||
assert!(source.hits() > 0);
|
||||
assert_eq!(target.hits(), 0, "the redirect was followed");
|
||||
consolidator.stop().await;
|
||||
|
||||
Reference in new issue
Block a user