+ getDeviceFile(a)
+
+ b.wait_for_unit("syncthing-autoregister.service")
+ putDeviceFile(b)
+ setConfig(b, configurationWithDeviceIDs)
+ verifyDeviceIDSet(b, "a")
+ verifyDeviceIDSet(b, "b")
+
+ getDeviceFile(b)
+ putDeviceFile(a)
+ setConfig(a, configurationWithFolder)
+ setConfig(b, configurationWithFolder)
+ a.succeed("nixos-rebuild switch")
+ b.succeed("nixos-rebuild switch")
+ a.wait_for_file("/var/lib/syncthing/foo")
+ b.wait_for_file("/var/lib/syncthing/foo")
+ a.succeed("echo a2b > /var/lib/syncthing/foo/a2b")
+ b.succeed("echo b2a > /var/lib/syncthing/foo/b2a")
+ a.wait_for_file("/var/lib/syncthing/foo/b2a")
+ b.wait_for_file("/var/lib/syncthing/foo/a2b")