Commit Graph

601 Commits

Author SHA1 Message Date
Hannah von Reth
363f0e9e93 OAuth: correctly initialise the auth type 2020-06-25 13:42:27 +02:00
Hannah von Reth
0eec85a777 Link tests against a static owncloudCore instead of trying to pick single...
files they depend on

This is only a first step and fixes the issue caused by
https://github.com/owncloud/client/blob/master/test/stub.cpp#L3 .
In a next step we should link this libary dynamically to reduce the build
overhead but this will require proper import export macros.
2020-06-24 16:09:33 +02:00
Hannah von Reth
20b721ed58 UnitTests: Set a CookiesJar in FakeQNAM 2020-06-23 11:53:17 +02:00
Hannah von Reth
edfe123e5f Rename csync_instructions_e -> SyncInsturctions 2020-04-23 11:52:05 +02:00
Hannah von Reth
5663145748 Merge remote-tracking branch 'origin/2.6' 2020-04-16 20:11:59 +02:00
Hannah von Reth
32d5e08f2a Disable cmocka tests on Windows 2020-04-16 16:20:27 +02:00
Hannah von Reth
73bc702249 Tests: Fix rare crash in OAuthTest
Fixes: #7793
2020-04-16 13:36:55 +02:00
Hannah von Reth
080a569fff Merge remote-tracking branch 'origin/2.6' 2020-04-02 09:24:58 +02:00
Hannah von Reth
7964e47a28 Test: Disable parallelism to ensure serial execution 2020-04-01 13:47:31 +02:00
Hannah von Reth
4b28fd60b6 Merge remote-tracking branch 'origin/2.6' 2020-03-26 14:24:58 +01:00
Olivier Goffart
242e4e1d70 SocketAPI: fix status after a failure to move
Issue #7759
2020-03-26 09:10:34 +01:00
Hannah von Reth
6a42468513 Test: Fix testMovedWithError for vfs mode 2020-03-26 08:25:45 +01:00
Hannah von Reth
a359baec43 Sync: Fix handling of virtual files in error state
Issue: #7799
2020-03-25 11:40:43 +01:00
Hannah von Reth
3504ae8fc5 Test: Add test for vfs failed move crash 2020-03-25 11:40:43 +01:00
Hannah von Reth
75bd0eb81d [CMake] Disable automoc for C targets 2020-03-20 13:00:19 +01:00
Olivier Goffart
dc1070d02d Merge remote-tracking branch 'origin/2.6'
Conflicts:
	CHANGELOG.md
	VERSION.cmake
	src/gui/MacOSXBundleInfo.plist
	src/gui/folderstatusmodel.h
	src/gui/settingsdialog.cpp
2020-02-25 11:45:27 +01:00
Olivier Goffart
fc69d5271e Run clang-tidy check for modernize-use-nullptr 2020-02-10 16:41:07 +01:00
Olivier Goffart
1622615d5f Run clang-tidy with modernize-use-override
And also replace all remaining Q_DECL_OVERRIDE to just override
2020-02-10 16:41:07 +01:00
Olivier Goffart
a6f1a976a6 fixup test 2020-02-10 15:15:15 +01:00
Olivier Goffart
aaa51e203d Tests: add a couple of move tests
This was an attempt to reproduce #7722, but this actually does not
reproduce it
2020-02-10 15:15:15 +01:00
Hannah von Reth
bc21511eec [OAuth] Fix naming 2020-02-10 14:36:32 +01:00
Hannah von Reth
6ad402543a Remove old test scripts
Fixes: 7679
2020-02-04 14:24:45 +01:00
Hannah von Reth
120c696edb Fix saving of cookies
Fixes: #7700
2020-02-03 15:55:48 +01:00
Hannah von Reth
c8d1e081c1 Tests: Add test for behaviour on unexpected user in authentication reply 2020-01-24 14:00:43 +01:00
Hannah von Reth
168e062d7c [Oauth] move oauth refresh to oauth.cpp 2020-01-24 14:00:43 +01:00
Hannah von Reth
e113f8069e Oauth: Cleanup 2020-01-24 14:00:43 +01:00
Hannah von Reth
d0943439b7 Move oauth from ui -> libsync 2020-01-24 14:00:43 +01:00
Hannah von Reth
69f74a6398 [CMAKE] Cleanup cmocka tests 2020-01-20 12:19:57 +01:00
Hannah von Reth
4a1e8202a0 [CMAKE] Use ecm for autotests 2020-01-20 12:19:57 +01:00
Hannah von Reth
41649c6d7a [CMAKE] Set C standard for C unittests 2020-01-09 15:39:32 +01:00
Hannah von Reth
6725cd5826 [CMAKE] Resolve some issues discovered during review 2020-01-09 15:39:32 +01:00
Hannah von Reth
9a11f4e9f1 [CMAKE] Use KDECmakeSettings 2020-01-09 15:39:32 +01:00
Hannah von Reth
a6fba2d200 [CMAKE] Start using extra cmake modules 2020-01-09 15:39:32 +01:00
Hannah von Reth
a94804c75d [OAuth] Add state parameter to negotiation 2019-12-16 19:55:40 +01:00
Hannah von Reth
ac1102070f Merge branch '2.6' 2019-12-06 16:52:12 +01:00
Olivier Goffart
112e78ba94 Support for openid connect 2019-11-20 14:32:57 +01:00
Olivier Goffart
ba99c38d19 Don't show the "All files deleted" popup when unselecting everything with selective sync
Issue #7337
2019-11-18 11:28:47 +01:00
Olivier Goffart
50179c3b54 Merge remote-tracking branch 'origin/2.6'
Conflicts:
	.drone.yml
        VERSION.cmake
2019-11-11 11:44:31 +01:00
Olivier Goffart
48d3c8432e VFS: Do not overwrite existing files by placeholder
For issue #7557 and #7556

Note: this change the API of the VFS plugin, so the VFS plugin needs small
adaptations
2019-11-03 17:01:48 +01:00
Olivier Goffart
6b361f2cc2 Merge remote-tracking branch 'origin/2.6' 2019-10-31 17:05:42 +01:00
Olivier Goffart
60d28c44be Test: Fix testsyncvirtualfiles test
Like previous commit, the failure was caused by two conflicting commits
2019-10-30 18:26:16 +01:00
Olivier Goffart
79e9168beb Fix build of tests.
Resulted from a conflict between two patches
2019-10-30 17:51:28 +01:00
Christian Kamm
16a8823e11 Vfs: Lots of tests and corrections for suffix edge cases
Avoid or deal with problems that happen when suffixed files exist on the
server or suffix and non-suffixed files exist locally.

See #7350, #7261.
2019-10-30 14:41:01 +01:00
Olivier Goffart
292e983d7c Merge remote-tracking branch 'origin/2.6' into master 2019-10-14 14:12:03 +02:00
Olivier Goffart
fb84e4c990 When moving is allowed but deleting is not, do not restore moved items
Issue #7293
2019-10-11 13:09:07 +02:00
Olivier Goffart
06e3a98e8d Fix Upload of large (> 2GiB) files
Issue #7506

This is a regression introduced by the delta sync feature (as the chunk offset
changed from being the chunk number to be the byte offset, it needs to be a
qint64 now)
2019-10-09 13:55:06 +02:00
Olivier Goffart
4eeb6483b5 Merge remote-tracking branch 'origin/2.6' 2019-10-08 11:11:05 +02:00
Christian Kamm
ed7ec006f0 Tests: Fail if the initial sync fails 2019-10-08 09:37:29 +02:00
Olivier Goffart
1597b2edc1 Tests: introduce ItemCompletedSpy to avoid a bit of code duplication 2019-10-07 22:36:55 +02:00
Christian Kamm
5f3682a47d Propagate dir: Never write the etag on remote mkdir #7481
It must always only be written once all children are successfully
propagated.
2019-10-07 14:33:15 +02:00