Seed offer test: an empty vault root is no configuration

Builds when the verify job is green.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-10 01:04:18 +02:00
commit 5b6796d1e6

View file

@ -6550,6 +6550,13 @@ mod tests {
assert!(!described(&served), "the served surface offered seeding with no vault");
assert!(!node_ids(&served).iter().any(|id| id == "world.seed"));
// An empty variable is no configuration.
unsafe { std::env::set_var(SEED_VAULT_ROOT_ENVIRONMENT, "") };
let served =
get(&fixture.state, &fixture.cookie, "/api/eve/surfaces/ghostlight.play").await;
unsafe { std::env::remove_var(SEED_VAULT_ROOT_ENVIRONMENT) };
assert!(!described(&served), "an empty vault root offered seeding");
let canary = "/canary-vault-root-4f9a1c";
unsafe { std::env::set_var(SEED_VAULT_ROOT_ENVIRONMENT, canary) };
let served =