diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-02-21 15:51:41 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-02-21 15:51:41 +0100 |
commit | f1475671aba59e33442ca5f4121e49782eabe974 (patch) | |
tree | 33b049bac3cb2fcf86f7acfcc728e5fb6e2322e1 /apps/files_external/tests | |
parent | b060a17b59f7117a670f09550215cb005dd822bc (diff) | |
parent | aa0bcf7ba45d004b0c0226fd07696f9f224f9c1c (diff) | |
download | nextcloud-server-f1475671aba59e33442ca5f4121e49782eabe974.tar.gz nextcloud-server-f1475671aba59e33442ca5f4121e49782eabe974.zip |
Merge branch 'master' into extstorage-configclass
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r-- | apps/files_external/tests/config.php | 6 | ||||
-rw-r--r-- | apps/files_external/tests/webdav.php | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/apps/files_external/tests/config.php b/apps/files_external/tests/config.php index e296bfcb5b2..767c0adf58e 100644 --- a/apps/files_external/tests/config.php +++ b/apps/files_external/tests/config.php @@ -21,7 +21,11 @@ return array( 'host'=>'localhost', 'user'=>'test', 'password'=>'test', - 'root'=>'/owncloud/files/webdav.php', + 'root'=>'', + // wait delay in seconds after write operations + // (only in tests) + // set to higher value for lighttpd webdav + 'wait'=> 0 ), 'owncloud'=>array( 'run'=>true, diff --git a/apps/files_external/tests/webdav.php b/apps/files_external/tests/webdav.php index 1f9b767eca6..74e905ccc89 100644 --- a/apps/files_external/tests/webdav.php +++ b/apps/files_external/tests/webdav.php @@ -18,6 +18,9 @@ class DAV extends Storage { if ( ! is_array($this->config) or ! isset($this->config['webdav']) or ! $this->config['webdav']['run']) { $this->markTestSkipped('WebDAV backend not configured'); } + if (isset($this->config['webdav']['wait'])) { + $this->waitDelay = $this->config['webdav']['wait']; + } $this->config['webdav']['root'] .= '/' . $id; //make sure we have an new empty folder to work in $this->instance = new \OC\Files\Storage\DAV($this->config['webdav']); $this->instance->mkdir('/'); |