Open jvillafanez opened 9 years ago
@icewind1991 @PVince81 @jnfrmarks join the discussion :smiley:
Thanks for entering this!
In previous engagements when I had to test things like this, the development team was able to insert private apis in the product to allow for sleeping or some such thing so that the testing could simulate the lock.
See also https://github.com/owncloud/smashbox/issues/94 - it may be that these are both the same, one from the server point of view, the other from test tool POV.
I believe that we need to come up with some approach so that testing can be automated.
@jvillafanez please do not confuse the "files_locking" app with the new experimental file locking.
But your test case if valid. I'm pretty sure that any concurrency case will not be covered properly by this old files_locking app. but should work properly in the new one.
Consider the following test scenario:
We have 3 possible results, depending (partially) in the request order:
This mean that, currently, we don't have a way to ensure that the second request will get a locked exception. There are a lot of uncertainty.
Some ideas:
I don't think it's possible to test this app in a reliable way without some extra help.
PD: I miss the "discussion" label here