Martchus
107fad90f0
Allow to use SyncthingStatistics in QML
2019-02-27 20:38:37 +01:00
Martchus
78d4553104
Update translations
2019-02-18 00:41:17 +01:00
Martchus
e56c950100
Show overall statistics in plasmoid
2019-02-17 23:46:03 +01:00
Martchus
326f03b604
Apply cmake-format
2019-02-06 17:36:14 +01:00
Martchus
a1a9db30f9
Update translations
2019-02-06 17:35:49 +01:00
Martchus
dc5f2d99e2
Fix SyncthingConnection::connectLater()
2019-02-06 17:35:21 +01:00
Martchus
2370fe1ef5
Let CMake generate code for test application
2019-01-13 22:16:23 +01:00
Martchus
f74dbe2799
Prevent enless connection attempts in connector test
...
Those are observable on misc OBS builds. This hopefully prevents
perpetual OBS builds and should also allow to actually investigate
what the problem is.
2019-01-13 17:48:39 +01:00
Martchus
028a456c4e
Update translations
2018-12-29 20:40:40 +01:00
Martchus
267cbd7dad
Document SyncthingConnection::readDevRejected()
2018-12-26 01:14:19 +01:00
Martchus
1156721822
Ensure not to continue reconnecting while still aborting
2018-12-26 01:14:01 +01:00
Martchus
67723bfa27
Set status to disconnected on error due to insufficient config
2018-12-25 02:31:18 +01:00
Martchus
c83df582b6
Fix subtile bugs on reconnect
...
* Ensure previous long polling requests for events are aborted
before connecting again
* Ensure results from previous requests are always discarded
after aborting to reconnect
2018-12-25 02:30:13 +01:00
Martchus
ad42c24c96
Prevent reading QNetworkReply in error case when not bytes available
2018-12-24 17:35:10 +01:00
Martchus
1d5b90a693
Allow always to change config
2018-12-24 17:19:11 +01:00
Martchus
35903fc996
Simulate flaky syncthing service
2018-12-23 21:28:43 +01:00
Martchus
cdd78fb026
Fix typo in code for mocked service configuration
2018-12-23 19:42:17 +01:00
Martchus
6dc521599f
Adapt tests to changes in dir error handling
2018-11-03 21:55:31 +01:00
Martchus
d803f83d0f
Update translations
2018-11-03 21:41:44 +01:00
Martchus
4a42a3f0c0
Fix and refactor directory error handling
...
* Rely not only on the FolderErrors event
* Request pull errors when opening the dialog
* Use "pullErrors" from FolderSummary
* Move code for directory error dialog into
its own class
This should fix that sometimes obsolete errors
were still displayed or actually present errors
missing.
2018-11-03 21:30:17 +01:00
Martchus
dcbc19cf8c
Adapt mocking to latest changes
...
* Cover all required requests so the connection can be
established without errors
* Add more events to test error handling
* Fix definition of LIB_SYNCTHING_CONNECTOR_CONNECTION_MOCKED
after syncthingconnection.cpp split
2018-11-03 20:44:11 +01:00
Martchus
c5d22d8984
Adapt tests to changed SyncthingDir::assignStatus()
2018-11-02 23:39:15 +01:00
Martchus
ad57a0ac9f
Adapt tests to changed status initialization
2018-11-02 23:38:40 +01:00
Martchus
0cc291ae85
Initialize status of SyncthingDev
2018-11-02 23:37:35 +01:00
Martchus
0ef2bf919a
Remove duplicated status recalculation
2018-11-02 22:15:16 +01:00
Martchus
9817be858d
Update stateChanged in readDirSummary()
2018-11-02 22:10:18 +01:00
Martchus
038cb130b7
Don't emit notifications for folder errors
2018-11-02 21:49:24 +01:00
Martchus
25ae9266a8
Discard obsolete folder errors
...
* Discard folder errors older than the last "sync" state
* Unfortunately we don't know the the time of the last
sync from the beginning. To prevent showing obsolete
errors in this state, discard all errors if the status
changes to something other than "out-of-syn".
2018-11-02 21:47:27 +01:00
Martchus
dd5cf12b1c
Improve inserting address from config file
...
* Assume local connection if address is eg. 0.0.0.0
* Use isLocal() from utils which considers the hostname
and interfaces as well
2018-11-02 20:57:25 +01:00
Martchus
2ee1bc0c63
Discard previous item errors also on connect()
...
Because errors might be gone now and should be repopulated
if not.
2018-10-28 16:03:18 +01:00
Martchus
25ace0eb17
Fix condition to set status to disconnected
2018-10-28 15:39:15 +01:00
Martchus
32b2907e67
Split syncthingconnection.cpp
...
* Move methods for specific requests to its own file
2018-10-28 15:37:25 +01:00
Martchus
2862b6fd87
Re-enable all connection tests
2018-10-28 14:38:34 +01:00
Martchus
4c4a1ebd47
Don't unset m_has... on disconnect
2018-10-25 18:25:59 +02:00
Martchus
bb6825aa4c
Use timeout of 0 on first event call
2018-10-25 18:24:31 +02:00
Martchus
b9a65ef113
Remove redundant poll interval defaults
2018-10-25 18:23:37 +02:00
Martchus
a024e36ffd
Rework reply/connection handling in SyncthingConnection
...
* Improve consistency
* Ensure all relevant requests are have finished before
setting status to connected
2018-10-25 00:59:13 +02:00
Martchus
ece582db04
Fix visibility of "Show errors" button in plasmoid
2018-10-24 21:35:08 +02:00
Martchus
f380732068
Don't use std::function for handlers in testcode
...
Just use the lambdas directly and make if(handler) check
only if possible.
2018-10-21 21:07:43 +02:00
Martchus
76f214adf1
Ignore test for config too
...
This test randomly fails as well
2018-10-21 00:11:30 +02:00
Martchus
703225b410
Fix/improve CLI tests
...
* Adapt to interleaved output previously enabled in SyncthingTestInstance
* Make it work when verbose output for debugging is enabled
* Show which status line didn't match in case of an failure
* Disable flaky rescan tests in release mode
2018-10-20 23:48:24 +02:00
Martchus
97dab2a959
Disable flaky tests for release
2018-10-20 22:12:26 +02:00
Martchus
2e67e6b2de
Use signals for logAvailable() and qrCodeAvailable()
2018-10-20 22:08:25 +02:00
Martchus
c7bccf023a
Fix tests, make them more stable and verbose
...
Tests still sometimes fail when
* requesting QR code
* requesting rescan
2018-10-18 23:37:29 +02:00
Martchus
8a77cdf516
Pass callbacks for requestLog() and requestQrCode() by ref
2018-10-18 23:34:59 +02:00
Martchus
407514289a
Fix typo infos -> info
2018-10-18 23:34:02 +02:00
Martchus
8dde95fc82
Don't override defines when configuring optional behavior
2018-10-18 23:23:47 +02:00
Martchus
d138c6d9d1
Change address of dev in testconfig to something not reachable
...
in my local network - otherwise Syncthing panics for whatever
reason :-/
2018-10-14 23:31:19 +02:00
Martchus
dfff485fc4
Update testconfig to version 28
...
Not sure whether it actually works. Right now Syncthing crashes
under Arch Linux for me using the previous config and the updated
version.
2018-10-14 22:50:54 +02:00
Martchus
e410991012
Allow logging all API calls
2018-10-14 22:48:52 +02:00