name = "syncthing";
- machine = "${configuration}";
+ nodes = {
+ a = "${configuration}";
+ b = "${configuration}";
+ };
testScript = ''
def setConfig(machine, config):
"${configurationWithDeviceIDs}"
)
- setConfig(machine, initialConfiguration)
- machine.wait_for_unit("syncthing-autoregister.service")
- setConfig(machine, configurationWithDeviceIDs)
- machine.succeed(
- '(( "$(nix eval --raw -f "<nixos/nixos>" config.services.syncthing.declarative.devices.machine.id | wc -c)" == 63 ))'
+ setConfig(a, initialConfiguration)
+ a.wait_for_unit("syncthing-autoregister.service")
+ setConfig(a, configurationWithDeviceIDs)
+ a.succeed(
+ '(( "$(nix eval --raw -f "<nixos/nixos>" config.services.syncthing.declarative.devices.a.id | wc -c)" == 63 ))'
)
'';
})