Smoke tests for the Syncthing snap
(based on https://docs.syncthing.net/intro/getting-started.html)
The tests require to two machines.
First, instal the snap:
$ sudo snap install syncthing --candidate
Start syncthing in both machines:
$ syncthing
monitor] 18:37:58 INFO: Log output saved to file "/syncthing.log"
[monitor] 18:37:58 INFO: Starting syncthing
[...]
Open the admin GUI in both machines:
$ sensible-browser https://localhost:8384/
Make a default folder:
In both machines:
- Click the
Default Folder
box. - Click the
Edit
button. - In the
Edit Folder
dialog, click theRemove
button. - Click the
Add Folder
button. - Enter
Default
as theFolder Label
. - Enter
default
as theFolder ID
. - Enter
~/Sync
as theFolder Path
. - Click the
Save
button.
Add machines:
- In machine 1, go to
Actions > Show ID
. - In machine 2, click the
Add Remote Device
button. - Copy the
Device ID
from machine 1 to machien 2. - Enter
machine 1
asDevice Name
. - Check the
Default
checkbox. - Click the
Save
button. - In machine 1, close the dialog.
- Wait until a message appears because of the new device added.
- Click the
Add Device
button. - In the
Add Device
dialog, entermachine 2
asDevice Name
. - Check the
Default
checkbox. - Click the
Save
button.
Share a file:
- In machine 1: $ echo "hola syncthing" > ~/snap/syncthing/x1/Sync/test
- Click the
Rescan All
button. Wait for machine 2 to beUp to Date
. - In machine 2: $ cat > ~/snap/syncthing/x1/Sync/test hola syncthing