Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testcase: external storage + sharing #64

Open
PVince81 opened this issue Apr 15, 2015 · 5 comments
Open

Testcase: external storage + sharing #64

PVince81 opened this issue Apr 15, 2015 · 5 comments
Assignees
Labels

Comments

@PVince81
Copy link

Mount external storages (still needs a public API for that...) and create shares based on the root and on subdirs.

This doesn't work with encryption for example: owncloud/core#15645

@PVince81
Copy link
Author

Need to test if owner + recipients can upload and download each other's files.

@jnfrmarks
Copy link

@PVince81 @nickvergessen @SergioBertolinSG @davitol @jvillafanez

Can we set up the external storage via the db on the backend? I know it's not ideal, but, if we can automate configuring the external storage, we can run all of the existing smashbox tests on the external storage with just one small change - add the "remote_folder" property to the run_ocsync calls, specifying the external storage mount point as the remote folder.

Edit:

Does anyone know of a way to run the whole test case per entry in a list? For instance, I updated test_shareFile.py to include the remote_folder option on the run_ocsync calls. In the smashbox.conf file, I specify one external mount and then run the test. All is good. Now, I want to create a list of external storage mount points so I can run the same test across all defined mounts.

@PVince81
Copy link
Author

@jnfrmarks to setup external storage, you need to create a file mount.json as "data/mount.json" for system mounts and "data/$user/mount.json" for personal mounts. The format is a bit different and completely twisted. I suggest you simply create some in the admin page and see how the files look like so you could generate them programmatically.

Ideally I'd prefer to have a proper API (./occ or OCS) to manage external storages. See owncloud/core#11886

@jnfrmarks
Copy link

Thanks @PVince81! This is great. While I agree 1000% about the api, if we can manually set up the external storage mounts for now, we can get coverage almost for free. I'd rather do that and then update the tests once the api is written.

@jnfrmarks jnfrmarks self-assigned this Jun 10, 2015
@PVince81
Copy link
Author

"for free"... technical debt is never free

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants