Julius Härtl
84f99db7ab
files_external: Fix jsunit tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
pirms 6 gadiem
Robin Appelman
60816a2e4a
use DAV instead of SMB for deletion tests
SMB storages can't be constructed on drone because of missing dependencies
Signed-off-by: Robin Appelman <robin@icewind.nl>
pirms 6 gadiem
Robin Appelman
4a424f86db
update icewind/smb to 3.0.0
Signed-off-by: Robin Appelman <robin@icewind.nl>
pirms 6 gadiem
Roeland Jago Douma
ea5393e9f8
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pirms 6 gadiem
John Molakvoæ (skjnldsv)
6ee9a2b35b
fixup! Fixed tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pirms 6 gadiem
John Molakvoæ (skjnldsv)
f1634cd3e2
fixup! Fixed tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pirms 6 gadiem
John Molakvoæ (skjnldsv)
324e96b780
Fixed tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pirms 6 gadiem
Robin Appelman
817f2f8f49
adjust swift external storage to new openstack sdk
Signed-off-by: Robin Appelman <robin@icewind.nl>
pirms 6 gadiem
Joas Schilling
bf2be08c9f
Fix risky tests without assertions
Signed-off-by: Joas Schilling <coding@schilljs.com>
pirms 6 gadiem
Robin Appelman
80aef8ed08
increase the time we wait for smb notifications in the test
Signed-off-by: Robin Appelman <robin@icewind.nl>
pirms 6 gadiem
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 6 gadiem
Morris Jobke
43e498844e
Use ::class in test mocks
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 6 gadiem
Robin Appelman
b36dd8b71f
Fallback to filename based detection if the remote dav server doesn't know the mimetype
Signed-off-by: Robin Appelman <robin@icewind.nl>
pirms 6 gadiem
Robin Appelman
ccc41aeddd
adjust tests to new failed storage handling
Signed-off-by: Robin Appelman <robin@icewind.nl>
pirms 6 gadiem
Vincent Petry
2cb3461146
Move GDrive external storage to a separate repo
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 7 gadiem
Vincent Petry
653610559d
Bye bye Dropbox v1
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 7 gadiem
Juan Pablo Villafáñez
f2bd5f7496
Add new specific tests for SMB
pirms 7 gadiem
Christoph Wurst
2317d7bb49
Fix sinon.stub deprecation warnings
Calls to `sinon.stub(obj, 'meth', fn)` are deprecated and therefore
replaced by `sinon.stub(obj, 'meth).callsFake(fn)` as instructed by
the deprecation warning.
This makes the js unit testing output readable again.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 7 gadiem
Morris Jobke
1729e4471f
Update comments to Nextcloud
* based on PR by @Ardinis
* see #4311
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 7 gadiem
Robin Appelman
11ee0b14bb
replace autosave with a save button for external storage configuration
Signed-off-by: Robin Appelman <robin@icewind.nl>
pirms 7 gadiem
Robin Appelman
d14ff70050
add unit tests for smb notify backend
Signed-off-by: Robin Appelman <robin@icewind.nl>
pirms 7 gadiem
Morris Jobke
d16051fa6f
fix test mocks
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 7 gadiem
Christoph Wurst
6f84eb89fc
fix constructor params in failing test
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 7 gadiem
Roeland Jago Douma
3256a1c792
Add files_external webdav apache tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pirms 7 gadiem
Lukas Reschke
1c80307537
Add SMB tests and execute files_external tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
pirms 7 gadiem
Morris Jobke
a78f6e9586
Use OCP\\IL10N in tests too
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 7 gadiem
Roeland Jago Douma
d13ac20bca
Fix getMock files_external
pirms 7 gadiem
Lukas Reschke
7ffb7b0d84
Use MockBuilder instead of createMock
CI uses an older PHPUnit
pirms 8 gadiem
Lukas Reschke
8a7a0f3287
Add unit tests
pirms 8 gadiem
Joas Schilling
0215b004da
Update with robin
pirms 8 gadiem
Joas Schilling
813f0a0f40
Fix apps/
pirms 8 gadiem
Vincent Petry
631af42b3a
Added storage tests for fopen with special chars
This makes it possible to test special chars with unit tests.
There is already a test for directories but there was none for file
names.
pirms 8 gadiem
Lukas Reschke
1cd255af56
Allow regular users to specify global credentials password
While the UI is existent the feature simply doesn't work because admin privileges are required for the controller. This adds proper permission checks and also unit tests.
To test this:
1. Enable external storage
2. Login as non-admin user
3. Go to personal page and try to change global credentials
pirms 8 gadiem
Robin Appelman
bac1a3a623
Add option to `occ files_external:list` to show all configured mounts
pirms 8 gadiem
Robin Appelman
6affbdc6e7
Add "Global Auth" option to external storage
This adds the "Global Auth" option to the external storage implementation, it is basically done by reverting c2c6caee93
from https://github.com/owncloud/core/pull/22468 .
This was taken from owncloud/core which is AGPL licensed. Commited with "icewind@owncloud.com" to keep the license header signature in sync.
![2016-06-21_14-01-06](https://cloud.githubusercontent.com/assets/878997/16228662/9c243136-37b8-11e6-9700-c1076ddb3d17.png )
pirms 8 gadiem
Thomas Müller
bac96e7ffc
Wait for port being accessible in addition to the notify socket
pirms 8 gadiem
Jürgen Weigert
02e8021b1a
Update start-swift-ceph.sh (#25109)
fix failing https://ci.owncloud.org/job/server-master-linux-externals/database=sqlite,external=swift-ceph,label=SLAVE/
pirms 8 gadiem
blizzz
51fd2602a7
Revert "Downstream 2016-06-08"
pirms 8 gadiem
Vincent Petry
8c7a32ccb9
Fix GDrive upload file which name might match the one of a folder
Whenever a file is uploaded to GDrive, there is a check for that file
with and without extension, due to Google Docs files having no
extension. This logic now only kicks in whenever the detected
extensionless file is really a Google Doc file, not a folder.
This makes it possible again to upload a file "test.txt" in a folder
that also has a folder called "test"
pirms 8 gadiem
Juan Pablo Villafáñez
a2b00582bc
Fix test
pirms 8 gadiem
Vincent Petry
15fffb2b10
Fix GDrive upload file which name might match the one of a folder
Whenever a file is uploaded to GDrive, there is a check for that file
with and without extension, due to Google Docs files having no
extension. This logic now only kicks in whenever the detected
extensionless file is really a Google Doc file, not a folder.
This makes it possible again to upload a file "test.txt" in a folder
that also has a folder called "test"
pirms 8 gadiem
Vincent Petry
d201ffe13d
Fix webdav test env scripts to also work on CI
pirms 8 gadiem
Vincent Petry
a76498f245
Add morrisjobke/webdav docker container for external storage tests
pirms 9 gadiem
Lukas Reschke
aba539703c
Update license headers
pirms 8 gadiem
Joas Schilling
9c734dcba7
Fix missing use statements in ext. str. tests
pirms 8 gadiem
Joas Schilling
9382cd1d8e
Fix the names of the tests so the script discovers them again
pirms 8 gadiem
Joas Schilling
f14dff680d
Move remaining classes to PSR-4
pirms 8 gadiem
Joas Schilling
4576891f10
Move Lib\Storage to PSR-4
pirms 8 gadiem
Joas Schilling
6ea54e73e8
Move Lib\Backend to PSR-4
pirms 8 gadiem
Joas Schilling
6d7a1b9bd4
Move Lib\Auth to PSR-4
pirms 8 gadiem