You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHPUnit 4.3.5 by Sebastian Bergmann.
Configuration read from /srv/www/htdocs/owncloud/tests/phpunit-autotest.xml
..F....................FFFFFFFF.........F...........F..F..FF..... 65 / 74 ( 87%)
.......F.
Time: 13.15 minutes, Memory: 22.50Mb
There were 15 failures:
1) Test\Files\Storage\Dropbox::testTestFunction
Failed asserting that false is true.
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:62
2) Test\Files\Storage\Dropbox::testCopyOverwrite with data set #0 ('/source.txt', '/target.txt')
Expected /target.txt to be a copy of /srv/www/htdocs/owncloud/tests/data/lorem.txt
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
-Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
-Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
-Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
+'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:196
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:236
3) Test\Files\Storage\Dropbox::testCopyOverwrite with data set #1 ('/source.txt', '/target with space.txt')
Expected /target with space.txt to be a copy of /srv/www/htdocs/owncloud/tests/data/lorem.txt
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
-Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
-Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
-Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
+'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:196
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:236
4) Test\Files\Storage\Dropbox::testCopyOverwrite with data set #2 ('/source with space.txt', '/target.txt')
Expected /target.txt to be a copy of /srv/www/htdocs/owncloud/tests/data/lorem.txt
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
-Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
-Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
-Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
+'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:196
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:236
5) Test\Files\Storage\Dropbox::testCopyOverwrite with data set #3 ('/source with space.txt', '/target with space.txt')
Expected /target with space.txt to be a copy of /srv/www/htdocs/owncloud/tests/data/lorem.txt
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
-Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
-Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
-Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
+'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:196
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:236
6) Test\Files\Storage\Dropbox::testCopyOverwrite with data set #4 ('/source.txt', '/tärgét.txt')
Expected /tärgét.txt to be a copy of /srv/www/htdocs/owncloud/tests/data/lorem.txt
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
-Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
-Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
-Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
+'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:196
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:236
7) Test\Files\Storage\Dropbox::testCopyOverwrite with data set #5 ('/sòurcē.txt', '/target.txt')
Expected /target.txt to be a copy of /srv/www/htdocs/owncloud/tests/data/lorem.txt
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
-Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
-Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
-Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
+'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:196
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:236
8) Test\Files\Storage\Dropbox::testCopyOverwrite with data set #6 ('/sòurcē.txt', '/tärgét.txt')
Expected /tärgét.txt to be a copy of /srv/www/htdocs/owncloud/tests/data/lorem.txt
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
-Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
-Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
-Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
+'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:196
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:236
9) Test\Files\Storage\Dropbox::testCopyOverwrite with data set #7 ('/single \' quote.txt', '/tar\'get.txt')
Expected /tar'get.txt to be a copy of /srv/www/htdocs/owncloud/tests/data/lorem.txt
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
-Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
-Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
-Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
+'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:196
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:236
10) Test\Files\Storage\Dropbox::testStat
Failed asserting that 1445255387 is equal to 1445255384 or is less than 1445255384.
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:295
11) Test\Files\Storage\Dropbox::testCopyOverWriteFile
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'bar'
+'foo'
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:443
12) Test\Files\Storage\Dropbox::testRenameOverWriteDirectory
rename must return true on success
Failed asserting that false is true.
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:487
13) Test\Files\Storage\Dropbox::testCopyOverWriteDirectory
Failed asserting that true is false.
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:543
14) Test\Files\Storage\Dropbox::testCopyOverWriteDirectoryOverFile
Failed asserting that false matches expected 'foo'.
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:555
15) Test\Files\Storage\Dropbox::testIsDeletable
Failed asserting that false is true.
/srv/www/htdocs/owncloud/tests/lib/files/storage/storage.php:594
FAILURES!
Tests: 74, Assertions: 251, Failures: 15.
The text was updated successfully, but these errors were encountered:
Looks like a lot is related to "copy + overwrite". From the code it looks like it's only telling the Dropbox API to copy. However the API doesn't support overwriting, it would return an error in such case.
Possible fix: send another call to delete the target before making the copy.
The text was updated successfully, but these errors were encountered: