forked from DGNum/colmena
hive: Add tests for nodeSpecialArgs
This commit is contained in:
parent
1b045eb38d
commit
ea1e7684f1
1 changed files with 27 additions and 0 deletions
|
@ -486,6 +486,33 @@ fn test_meta_special_args() {
|
|||
"#);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_meta_node_special_args() {
|
||||
TempHive::valid(r#"
|
||||
{
|
||||
meta.specialArgs = {
|
||||
someArg = "global";
|
||||
};
|
||||
|
||||
meta.nodeSpecialArgs.node-a = {
|
||||
someArg = "node-specific";
|
||||
};
|
||||
|
||||
node-a = { someArg, ... }:
|
||||
assert someArg == "node-specific";
|
||||
{
|
||||
boot.isContainer = true;
|
||||
};
|
||||
|
||||
node-b = { someArg, ... }:
|
||||
assert someArg == "global";
|
||||
{
|
||||
boot.isContainer = true;
|
||||
};
|
||||
}
|
||||
"#);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_hive_autocall() {
|
||||
TempHive::valid(r#"
|
||||
|
|
Loading…
Reference in a new issue