Vincent Petry
2cb3461146
Move GDrive external storage to a separate repo
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-08-21 09:59:10 +02:00
Vincent Petry
653610559d
Bye bye Dropbox v1
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-08-16 11:03:25 +02:00
Juan Pablo Villafáñez
f2bd5f7496
Add new specific tests for SMB
2017-04-26 16:23:52 +02:00
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>
2017-04-24 10:39:37 +02:00
Morris Jobke
1729e4471f
Update comments to Nextcloud
...
* based on PR by @Ardinis
* see #4311
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-04-11 23:16:27 -05:00
Robin Appelman
11ee0b14bb
replace autosave with a save button for external storage configuration
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2017-03-22 14:32:26 +01:00
Morris Jobke
5bad417e57
Merge pull request #2044 from nextcloud/login-credential-store
...
Login credential store
2017-01-30 19:30:04 -06:00
Robin Appelman
d14ff70050
add unit tests for smb notify backend
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2017-01-27 10:44:45 +01:00
Morris Jobke
d16051fa6f
fix test mocks
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-01-20 23:12:45 -06:00
Christoph Wurst
6f84eb89fc
fix constructor params in failing test
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-01-11 19:20:11 +01:00
Roeland Jago Douma
3256a1c792
Add files_external webdav apache tests
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-12-29 12:47:48 +01:00
Lukas Reschke
1c80307537
Add SMB tests and execute files_external tests
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-20 22:05:33 +01:00
Morris Jobke
a78f6e9586
Use OCP\\IL10N in tests too
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-10-28 23:04:36 +02:00
Roeland Jago Douma
d13ac20bca
Fix getMock files_external
2016-09-06 09:29:27 +02:00
Lukas Reschke
7ffb7b0d84
Use MockBuilder instead of createMock
...
CI uses an older PHPUnit
2016-08-15 16:43:22 +02:00
Lukas Reschke
8a7a0f3287
Add unit tests
2016-08-15 16:25:34 +02:00
Joas Schilling
0215b004da
Update with robin
2016-07-21 18:13:58 +02:00
Joas Schilling
813f0a0f40
Fix apps/
2016-07-21 18:13:57 +02:00
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.
2016-07-20 15:13:24 +02:00
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
2016-06-27 12:29:27 +02:00
Lukas Reschke
7a9d60d87e
Merge remote-tracking branch 'upstream/master' into master-upstream-sync
2016-06-26 12:55:05 +02:00
Robin Appelman
bac1a3a623
Add option to `occ files_external:list` to show all configured mounts
2016-06-23 13:12:03 +02:00
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 )
2016-06-21 14:16:45 +02:00
Thomas Müller
bac96e7ffc
Wait for port being accessible in addition to the notify socket
2016-06-17 13:29:24 +02:00
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/
2016-06-15 10:17:59 +02:00
Vincent Petry
ac163426ef
Merge pull request #25008 from owncloud/externals_test_with_origin
...
Add support to know where the storage test comes from
2016-06-09 16:21:05 +02:00
Juan Pablo Villafáñez
a2b00582bc
Fix test
2016-06-07 18:27:10 +02:00
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"
2016-06-07 16:29:23 +02:00
Vincent Petry
d201ffe13d
Fix webdav test env scripts to also work on CI
2016-05-30 16:10:30 +02:00
Vincent Petry
a76498f245
Add morrisjobke/webdav docker container for external storage tests
2016-05-30 16:10:30 +02:00
Lukas Reschke
aba539703c
Update license headers
2016-05-26 19:57:24 +02:00
Joas Schilling
9c734dcba7
Fix missing use statements in ext. str. tests
2016-05-25 15:10:27 +02:00
Joas Schilling
9382cd1d8e
Fix the names of the tests so the script discovers them again
2016-05-24 16:37:06 +02:00
Joas Schilling
f14dff680d
Move remaining classes to PSR-4
2016-05-24 08:41:22 +02:00
Joas Schilling
4576891f10
Move Lib\Storage to PSR-4
2016-05-24 08:41:22 +02:00
Joas Schilling
6ea54e73e8
Move Lib\Backend to PSR-4
2016-05-24 08:41:21 +02:00
Joas Schilling
6d7a1b9bd4
Move Lib\Auth to PSR-4
2016-05-24 08:41:21 +02:00
Joas Schilling
328b3c47d7
Move stuff from outside lib/ to PSR-4
2016-05-24 08:41:20 +02:00
Vincent Petry
db4c7fe743
Add encoding wrapper as opt-in mount option
...
The encoding wrapper is now only applied when the mount option is set,
disabled by default.
2016-05-20 09:33:59 +02:00
Vincent Petry
4728308a9e
Merge pull request #24585 from owncloud/files_external_lazy
...
Load external storage backends/auth mechanisms lazily
2016-05-19 18:08:17 +02:00
Robin McCorkell
8f58b89c3f
Add tests for backend/auth mechanism providers
2016-05-11 21:24:53 +01:00
Robin McCorkell
de98a6e54c
Allow multiple custom JS files
2016-05-03 11:30:02 +01:00
Robin Appelman
ca5b189522
add test
2016-04-25 14:28:01 +02:00
Robin McCorkell
4717605d22
Fix storage backend class namespaces and move to subdir
...
All classes that were previously \OC\Files\Storage\FooBar are now
\OCA\Files_External\Lib\Storage\FooBar
2016-04-14 00:44:28 +01:00
Robin McCorkell
d47824f4cf
Remove any stray socket files before creating new ones
2016-04-05 09:17:21 +02:00
Robin McCorkell
a51ece97e3
Display external storage GUI even if user mounting disabled
2016-03-16 22:06:49 +00:00
Morris Jobke
e7e743bdb4
Give swift 15 seconds after startup
2016-03-16 16:16:04 +01:00
Thomas Müller
cf3cb4d75e
docker containers should be stopped before being removed - refs https://github.com/docker/docker/issues/18758
2016-03-09 14:02:08 +01:00
C. Montero Luque
4d69e562a0
Merge pull request #22757 from owncloud/apply-license
...
Update copyright information and author file
2016-03-01 15:36:37 -05:00
Lukas Reschke
c353d51810
Remove Scrutinizer Auto Fixer
2016-03-01 17:48:23 +01:00
Lukas Reschke
933f60e314
Update author information
...
Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
2016-03-01 17:25:15 +01:00
Robin McCorkell
078cc3b3f0
Use readiness notification socket to be absolutely sure this works
2016-02-29 21:20:11 +00:00
Thomas Müller
52d217d775
Merge pull request #22623 from owncloud/docker-logs-on-swift-external
...
Print docker logs to the console fro debugging
2016-02-29 16:36:34 +01:00
Thomas Müller
914ac09aae
Merge pull request #22636 from owncloud/fix-ssl-on-external-storages
...
Fix HTTPS support on external storages
2016-02-25 14:36:00 +01:00
Thomas Müller
5ecf2d5987
Merge pull request #22600 from owncloud/extstorage-disablesharingoptionbydefault
...
Disable sharing by default for external storage mounts
2016-02-25 14:35:24 +01:00
Lukas Reschke
db2ddb5441
Properly cast type
...
The current logic is checking whether:
1. The returned value is a boolen
2. The returned value is a string and then matches for "true"
Since the config is now written to the database the data is now a string with the value "1" if HTTPS is set to true. Effectively this option was thus always disabled at the moment, falling back to plain HTTP.
This change casts the data to a boolean if it is defined as boolean.
Fixes https://github.com/owncloud/core/issues/22605
Fixes https://github.com/owncloud/core/issues/22016
2016-02-24 19:58:41 +01:00
Vincent Petry
4829a2d421
Disable sharing by default for external storage mounts
...
This is for newly created mount points.
Migrated mount points will have sharing enabled as before.
2016-02-24 13:58:21 +01:00
Thomas Müller
ac9de4ee95
Print docker logs to the console fro debugging
2016-02-24 13:58:13 +01:00
Robin McCorkell
1d8c1f5692
Enable upstream entrypoint changes with Ceph Docker
2016-02-23 11:52:05 +00:00
Robin Appelman
c2c6caee93
remove global credentials
2016-02-17 13:55:27 +01:00
Robin Appelman
176fb191b7
remove login credentails and user provided backends
2016-02-16 15:27:55 +01:00
Robin Appelman
80eb1aada5
encrypt passwords for files_external
2016-02-11 14:00:08 +01:00
Thomas Müller
1199b539f2
Merge pull request #21773 from owncloud/files_external-list-authtype
...
Show the proper auth identifier when listing mounts as json
2016-02-09 15:33:47 +01:00
Robin Appelman
87179eaae2
Add tests
2016-02-08 15:53:46 +01:00
Robin Appelman
76d9586339
add tests
2016-02-04 16:14:17 +01:00
Thomas Müller
d66a836251
Merge pull request #21772 from owncloud/occ-external-applicable
...
Add occ command to manage applicables
2016-02-03 09:03:59 +01:00
Robin Appelman
f4e1a1677b
Remove magic flags from files_external backend params
2016-02-02 15:10:59 +01:00
Robin Appelman
51b5179839
Add occ command to manage applicables
2016-02-02 12:45:10 +01:00
Thomas Müller
4777f78187
Merge pull request #20903 from owncloud/sharing-mount-option
...
Add mount option to disable sharing
2016-02-02 10:26:24 +01:00
Robin Appelman
6b18134ceb
inject logger
2016-01-29 14:51:30 +01:00
Robin Appelman
d0f5687687
Dont set null values when validating storage definition
2016-01-29 14:51:30 +01:00
Robin Appelman
eb29bc64de
set auth mechanism in tests
2016-01-29 14:51:30 +01:00
Robin Appelman
279a54bc87
adjust js unit test
2016-01-29 13:14:26 +01:00
Robin McCorkell
241ed17dc0
Add storage validation JS unit tests
2016-01-29 11:47:23 +00:00
Thomas Müller
9b4c9a0357
Merge pull request #18531 from owncloud/ext-user-credentials
...
External storage 'Login credentials' auth mechanism
2016-01-22 13:14:14 +01:00
Robin Appelman
483c6b68e2
clear mount cache when removing applicables
2016-01-20 16:32:56 +01:00
Robin Appelman
7ba715d144
fix test
2016-01-18 12:08:58 +01:00
Robin McCorkell
0b7fc9fd11
Correctly remove global applicable
2016-01-15 23:17:22 +00:00
Thomas Müller
682821c71e
Happy new year!
2016-01-12 15:02:18 +01:00
Robin Appelman
88bfe1477d
Filter getStorage to make sure the user has access to it
2016-01-08 15:30:45 +01:00
Robin Appelman
8da3c3f125
update tests
2016-01-08 11:54:32 +01:00
Robin Appelman
ab549970ca
fix setting mountpoint and auth backend of external storages
2016-01-08 11:54:31 +01:00
Morris Jobke
06708cc172
fix js unit tests
2016-01-07 08:57:15 +01:00
Scrutinizer Auto-Fixer
ffc49a24f0
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-12-10 16:43:37 +01:00
Thomas Müller
5cf376ccb7
Looks like ceph requires more time to come up ....
...
Use sed - not replace
apply btrfs hack
2015-12-09 16:06:25 +01:00
Thomas Müller
4d86466aec
Use default timeout on connection test
2015-12-09 12:18:51 +01:00
Thomas Müller
51b5498be8
Merge pull request #21003 from owncloud/personal-mount-mountid
...
Dont set the string storage id to the numeric storage id for personal mounts
2015-12-09 10:05:36 +01:00
Robin Appelman
8c1afb8fb9
Add tests
2015-12-08 18:01:44 +01:00
Scrutinizer Auto-Fixer
97f9213da9
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-12-07 12:05:27 +00:00
Robin Appelman
a1898dc2bf
db config backend for files_external
2015-12-04 13:48:21 +01:00
Robin Appelman
62cc316c6a
remove old propagation logic
2015-12-01 16:50:20 +01:00
Thomas Müller
f9fc254672
Add DB group to some files_external tests
...
Adding group Db to federation tests and ldap tests
Add group DB to Test_UrlGenerator
Adding group DB to trashbin and versions tests
Adding group DB to Test_Util_CheckServer for pg
2015-11-30 10:55:10 +01:00
Thomas Müller
e265e982bf
External storage tests require DB as well
2015-11-30 10:55:05 +01:00
Robin McCorkell
125b090627
Replace shitty netcat use with dedicated PHP script
2015-11-24 16:05:08 +00:00
Thomas Müller
9385eef31a
Merge pull request #18999 from owncloud/ext-config-listadmin
...
Improvements to external storages list rendering
2015-11-24 16:03:35 +01:00
Morris Jobke
4608e7134c
webdav docker tests - wait at least 5 seconds after the full startup
2015-11-23 14:49:01 +01:00
Robin McCorkell
6a2e7632d1
Fix JS unit tests
2015-11-21 22:54:21 +00:00
Thomas Müller
308aaf89cd
Merge pull request #14077 from owncloud/autotest-external-swift
...
[files_external] swift tests
2015-11-20 13:57:54 +01:00
Robin Appelman
d49fc9a5fc
fix ip detection for swift-ceph
2015-11-16 21:52:31 +01:00
Robin Appelman
67710e62fa
Fix parsing of sftp hosts when using ipv6
2015-11-16 14:56:03 +01:00