Commit Graph

63 Commits

Author SHA1 Message Date
nathan
73df101e8e Better tests & message for symlink test
no longer checking invalid (nlink = 2) or undefined (stat['url') things to see if it worked
2021-07-13 10:33:50 -06:00
nathan
da1e7b9fee Implement symlink for filesystem StreamWrapper with test
Whether it works or not depends on filesystem though.
2021-07-09 09:47:23 -06:00
nathan
4627b3b2b1 Remove VfsTest, no longer needed as test has been moved into StreamWrapperBase so it can be run on all StreamWrappers (a63b82d3) 2021-07-08 10:01:33 -06:00
nathan
a63b82d34e Move symlink test into StreamWrapperBase so it can be run on all StreamWrappers 2021-07-07 15:57:40 -06:00
nathan
35dccf17ae Add missing cleanup of test files 2021-07-07 14:47:04 -06:00
nathan
157926ab00 Better VFS test cleanup 2021-07-07 13:11:44 -06:00
nathan
da3f8d8135 Fix symlink directory problem from 2a64e79 and add a unit test to avoid that in the future 2021-07-06 16:44:53 -06:00
nathangray
5fbdd1376a Fix PHP warnings for PHP 8 compatability 2021-05-21 10:43:52 -06:00
nathangray
fb2abd8915 Get all VFS tests passing
on my machine, at least...
2021-04-14 14:22:04 -06:00
nathangray
3027123fbd Set a timeout on curl so we fail faster 2021-04-14 10:59:49 -06:00
nathangray
657119b389 Api: Fix Links/StreamWrapperTest->testWithAccess() was failing due to no app permissions 2021-03-11 09:30:11 -07:00
nathangray
c319478816 Fix readonly shares were mounted as writable when shared to another user 2021-02-16 16:14:32 -07:00
Ralf Becker
4886583cc1 change sharing to allow mounting shared into existing user sessions
without the need to destroy the session, if the sharee is a different user

This is accomplished by keeping the sharee in the stream context / attribute of the vfs class(es) instead of static Vfs::$user.
Later is still used for the current user - identical to egw_info[user][account_id].

This commit / merge of the vfs-context feature branch also added the abilty to mount WebDAV sources, eg. a sharing link from an other EGroupware instance
or any WebDAV server
2020-10-08 11:24:34 +02:00
nathangray
7ae230356f Don't remove /apps when cleaning up 2020-10-07 09:22:09 -06:00
nathangray
94a57d6902 Api: Some tests for filesystem 2020-09-16 11:48:40 -06:00
nathangray
d257077017 Add a test for hidden upload sharing 2020-09-11 09:50:34 -06:00
nathangray
372eadcff3 Api: Fix fstab overlap when accessing a share while logged in 2020-09-10 11:11:39 -06:00
nathangray
a3c6eba952 Fix sharing of of a file inside a symlinked directory failed. 2020-04-14 11:19:12 -06:00
Ralf Becker
e6546080a0 query videoconference room, if VC is configured 2020-04-08 12:03:22 -06:00
nathangray
0fb4176067 Fix sharing a single file gave 404
Added test to check that this works for a single file
2020-04-08 11:39:12 -06:00
nathangray
6711e3a75f Fix collabora tests to use correct class (Wopi) rather than parent 2020-04-06 11:00:42 -06:00
nathangray
7163acfe1d * Add action to share filemanager folder (readonly) with hidden upload folder 2020-03-24 20:34:04 -06:00
nathangray
458a40c792 Avoid some warnings caused by using foreach() over null 2020-03-11 09:25:31 -06:00
nathangray
173b695cf2 Api: Sharing listens to Vfs hooks to stay up-to-date with deleted or renamed files 2020-03-06 14:48:26 -07:00
Ralf Becker
ce47208874 fix function signature in order to update to phpUnit 8 2020-03-04 18:47:48 +01:00
nathangray
48f2513f40 Cleanup 2019-05-07 16:15:17 -06:00
nathangray
753c26a909 Check to see if Travis likes these tests now 2019-05-07 15:55:31 -06:00
nathangray
bacccbc42a Fix VFS Share tests 2019-05-07 15:23:34 -06:00
nathangray
12648ad74f Use Travis environment variable to skip the sharing tests that fail instead of always skipping them 2019-04-26 11:09:01 -06:00
nathangray
3ccb142a48 Skip sharing tests since they fail on Travis 2019-04-25 13:03:52 -06:00
nathangray
601cf775f2 Check files_dir and skip tests if we don't have read/write access 2019-04-24 16:12:41 -06:00
nathangray
759df4cf6e Another attempt to make session for Sharing, even though we're on the command line 2019-04-24 15:07:45 -06:00
nathangray
f44a26432c Some changes to tests, maybe they pass
Mostly about getting a session for Sharing, even though we're on the command line
2019-04-24 14:14:35 -06:00
nathangray
11cf369540 Turn off debug 2018-05-04 15:07:57 -06:00
nathangray
c8ddbe0680 Some more debug for Travis 2018-05-04 14:36:24 -06:00
nathangray
bd570c3676 - Fix incorrect skipped method
- Move cache clear before logout
2018-05-04 11:36:38 -06:00
nathangray
77a71d1c9c Some more debug for Travis 2018-05-04 09:58:21 -06:00
nathangray
a7a2092a48 Some more debug for Travis 2018-05-04 09:37:53 -06:00
nathangray
fba069e4b6 Some more debug for Travis 2018-05-03 14:31:48 -06:00
nathangray
1ee1c15e75 Turn on debug for sharing tests 2018-05-03 13:59:39 -06:00
nathangray
5f160114e9 Better error message & correct lost Vfs::$db 2018-04-12 11:23:54 -06:00
nathangray
f26b271067 Exclude symlinks from Vfs 2018-04-09 14:02:24 -06:00
nathangray
c508cd8731 Add tests for trying to share a symlink actually uses the link target 2018-04-09 14:02:24 -06:00
nathangray
cbdbae2f9a Shuffle around some code for better extendability 2018-04-09 14:02:24 -06:00
nathangray
e675ab57d4 Remove unneeded definitions, they're in parent already. 2018-04-09 14:02:24 -06:00
nathangray
e2209b1e57 - Add check to see if merge sqlfs directory is there before creating it
- Add parameter to addFiles() to provide test file content
- Add current user as owner for filesystem mount
2018-04-09 14:02:24 -06:00
nathangray
2de26a0f2b Refactor sharing tests to use a base class so Collabora tests can exend it 2018-04-05 08:49:25 -06:00
nathangray
97134373dc Refactor sharing tests to use a base class so Collabora tests can exend it 2018-04-05 08:49:25 -06:00
nathangray
8840b5ddc6 Add readable & writable share tests for merge filesystem 2018-03-23 13:01:43 -06:00
nathangray
ff720b097a Add readable & writable share tests for entry filesystem (/apps/infolog/#) 2018-03-23 13:01:43 -06:00