wip
This commit is contained in:
@@ -69,6 +69,7 @@
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.syncthing-auto-accept =
|
||||
let
|
||||
baseAddress = "127.0.0.1:8384";
|
||||
|
||||
@@ -57,6 +57,9 @@
|
||||
testScript = ''
|
||||
start_all()
|
||||
|
||||
# import time
|
||||
# time.sleep(500000)
|
||||
|
||||
introducer.wait_for_unit("syncthing.service")
|
||||
peer1.wait_for_unit("syncthing.service")
|
||||
peer2.wait_for_unit("syncthing.service")
|
||||
@@ -71,17 +74,10 @@
|
||||
peer1.succeed("curl -s http://127.0.0.1:8384")
|
||||
peer2.succeed("curl -s http://127.0.0.1:8384")
|
||||
|
||||
|
||||
# Check that folders are created correctly
|
||||
peer1.execute("ls -la /var/lib/syncthing")
|
||||
peer2.execute("ls -la /var/lib/syncthing")
|
||||
|
||||
# import time
|
||||
# time.sleep(500000)
|
||||
|
||||
# peer1.wait_until_succeeds("timeout 5 ls /var/lib/syncthing/Shared")
|
||||
# peer2.wait_until_succeeds("timeout 5 ls /var/lib/syncthing/Shared")
|
||||
|
||||
peer1.wait_for_file("/var/lib/syncthing/Shared")
|
||||
peer2.wait_for_file("/var/lib/syncthing/Shared")
|
||||
|
||||
@@ -95,6 +91,5 @@
|
||||
|
||||
out = peer2.succeed("cat /var/lib/syncthing/Shared/hello")
|
||||
assert "hello" in out
|
||||
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user