Skip to content

Conversation

@nickvergessen
Copy link

  • Copied lib/oc-tests/test_shareFiles.py
  • Fixed the shares to be remote shares
  • Add methods to accept the shares before syncing

Test is currently failing, because deleting a remote shared file does not remove the file on the other end:

2015-06-03 17:39:30,269 - ERROR - sharee_two -
File /sharee_two/TEST_FILE_USER_RESHARE.dat exists but should not
2015-06-03 17:39:31,284 - ERROR - sharee_one -
File /sharee_one/TEST_FILE_USER_SHARE.dat exists but should not

Requires:

Fails due to:

Fix #13

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check return values to be > 0

@nickvergessen nickvergessen changed the title [WIP] Test remote sharing Test remote sharing Oct 8, 2015
@nickvergessen
Copy link
Author

This should be ready for merge now.

@PVince81
Copy link

Some errors against stable9 (b3fef3900656b66d938067c6b8c14b1c94efd1a6)

SUMMARY:smash.:runid: 160321-173025
SUMMARY:smash.:URL: http://test:***@127.0.0.1/owncloud/remote.php/webdav/
SUMMARY:smash.:Running iteration 1
SUMMARY:smash.:running lib/owncloud/test_remoteShareFile.py in /home/vincent/work/smashdir/test_remoteShareFile as test testset #0 {'test_sharePermissions': 31}
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
SUMMARY:smash.:Elapsed time: 38s (0:00:38.132163)
SUMMARY:smash.:running lib/owncloud/test_remoteShareFile.py in /home/vincent/work/smashdir/test_remoteShareFile as test testset #1 {'test_sharePermissions': 3}
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
2016-03-21 17:31:33,519 - ERROR - sharee_one - shared and shouldn't have error_check(result == -1, "shared and shouldn't have") failed in sharee_one() ["/home/vincent/work/workspace/smashbox/lib/owncloud/test_remoteShareFile.py" at line 197]
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
2016-03-21 17:31:38,566 - ERROR - sharee_two - File /home/vincent/work/smashdir/test_remoteShareFile/sharee_two/TEST_FILE_USER_RESHARE.dat exists but should not error_check(not os.path.exists(fn), "File %s exists but should not" % fn) failed in expect_does_not_exist() ["/home/vincent/work/workspace/smashbox/python/smashbox/utilities/__init__.py" at line 801]
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
2016-03-21 17:31:42,945 - ERROR - sharee_one - 1 error(s) reported
2016-03-21 17:31:42,952 - ERROR - sharee_two - 1 error(s) reported
SUMMARY:smash.:Elapsed time: 39s (0:00:39.189484)
CRITICAL:smash.:Aborting run -- non-zero exit code (2)

@nickvergessen
Copy link
Author

Right, caused by the changes that lead to owncloud/core#22495

Adjusted the test to make sure sharing is always accepted and added FIXME code blocks for the "expected" behaviour

@PVince81
Copy link

👍

@PVince81 PVince81 merged commit 8e83ba5 into master Mar 23, 2016
@PVince81 PVince81 deleted the test-remote-sharing branch March 23, 2016 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants