module-eval: set the hive-controller option only in tests that need a hive
The shared `hive` fixture turned `deploy.hive-controller.enable` on for every eval test. It is now off by default; `hiveWithController` turns it on, and the fixtures whose claims read the hive tier (hive-c0re, the queue-agent credential, the hive leaf, `deploy.hive-controller.*`, or an absence that is only meaningful with a hive present) use it. glue-nats-auth-bao-identity.nix still read the renamed `services.hyperhive.enable`, which printed the "Obsolete option" trace six times per CI run. The term is dropped: the pairing is gated on the queue and the minted PKI, as its sibling glue-nats-bao-identity.nix is.
This commit is contained in:
parent
db6648dfe6
commit
ea63b0d150
10 changed files with 47 additions and 31 deletions
|
|
@ -18,6 +18,7 @@ let
|
|||
;
|
||||
})
|
||||
hive
|
||||
hiveWithController
|
||||
runGroup
|
||||
baoNames
|
||||
baoStream
|
||||
|
|
@ -26,9 +27,9 @@ let
|
|||
swarmServiceEnables
|
||||
;
|
||||
|
||||
allLocal = hive { deploy.singleHostSwarm = true; };
|
||||
allLocal = hiveWithController { deploy.singleHostSwarm = true; };
|
||||
|
||||
bare = hive { };
|
||||
bare = hiveWithController { };
|
||||
|
||||
# The same stub with the central toggle (`deploy.hive-controller.enable`)
|
||||
# off. Paired with `bare` below to pin the defaults that do not read it:
|
||||
|
|
@ -44,7 +45,7 @@ let
|
|||
|
||||
# Every hive defaults the agents' queue address to the queue's name, so the
|
||||
# only hive without one is a hive told to have none.
|
||||
noAgentQueue = hive { deploy.hive-controller.queue.agentNatsUrl = null; };
|
||||
noAgentQueue = hiveWithController { deploy.hive-controller.queue.agentNatsUrl = null; };
|
||||
|
||||
# On the forge's host: the runner is refused anywhere else.
|
||||
withCi = hive {
|
||||
|
|
@ -487,7 +488,7 @@ let
|
|||
refusedHiveName =
|
||||
extra:
|
||||
lib.any (a: !a.assertion && lib.hasInfix "services.hyperhive.hiveName to be set" a.message)
|
||||
(hive ({ hiveName = null; } // extra)).assertions;
|
||||
(hiveWithController ({ hiveName = null; } // extra)).assertions;
|
||||
in
|
||||
refusedHiveName { }
|
||||
&& refusedHiveName {
|
||||
|
|
@ -504,7 +505,7 @@ let
|
|||
name = "a missing swarm.domain is refused on a hive and on a swarm-service host, and a host enabling nothing evaluates";
|
||||
ok =
|
||||
let
|
||||
noDomain = extra: hive ({ swarm.domain = null; } // extra);
|
||||
noDomain = extra: hiveWithController ({ swarm.domain = null; } // extra);
|
||||
refusedSwarmDomain =
|
||||
extra:
|
||||
lib.any (
|
||||
|
|
|
|||
Loading…
Reference in a new issue