Task #8439 (closed)
chmod gatewaytests
Reported by: | wmoore | Owned by: | wmoore |
---|---|---|---|
Priority: | critical | Milestone: | OMERO-4.4 |
Component: | OmeroPy | Version: | n.a. |
Keywords: | n.a. | Cc: | atarkowska, cxallan, jamoore, cneves |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | 2012-04-10 (12) |
Description
Need gateway tests to test chmod and canEdit() and canAnnotate() behavior.
Change History (4)
comment:1 Changed 12 years ago by wmoore
comment:2 Changed 12 years ago by wmoore
- Remaining Time changed from 1 to 0
- Resolution set to fixed
- Status changed from new to closed
In branch https://github.com/will-moore/openmicroscopy/commits/chmod_web_8434
Added chmodGroup to Blitz gateway: https://github.com/will-moore/openmicroscopy/commit/904f2bf75eeaccfc05f9522c87e610055bc05ca9
Also added test of this method that fails due to callback not returning:
https://github.com/will-moore/openmicroscopy/commit/83af3fb027a66fe38fbbb2d057030bc2b4bd01d9
$ python test/gatewaytest/chmod.py ChmodGroupTest.testChmod ... ====================================================================== ERROR: testChmod (__main__.ChmodGroupTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "test/gatewaytest/chmod.py", line 112, in testChmod self.doChange(group_Id, READWRITE) File "test/gatewaytest/chmod.py", line 39, in doChange cb.loop(20, 500) File "/Users/will/Desktop/OMERO/dist/lib/python/omero/callbacks.py", line 242, in loop 5000L, waited) LockTimeout: exception ::omero::LockTimeout { serverStackTrace = None serverExceptionClass = None message = Command unfinished after 10.0 seconds backOff = 5000 seconds = 10.0 }
comment:3 Changed 12 years ago by Will Moore <will@…>
(In [69eafea5dfd7e82721c6f6d923ac590c4ac2c53a/ome.git] on branch develop) Blitz canEdit, canAnnotate with failing tests. See #8439
Added these methods to BlitzObjectWrapper?, delegating to
the object's permissions.canEdit() etc.
Gateway tests fail, with canEdit() and canAnnotate()
returning True with another user's data in
a readonly 'rwr---' group.
comment:4 Changed 12 years ago by Will Moore <will@…>
(In [83af3fb027a66fe38fbbb2d057030bc2b4bd01d9/ome.git] on branch develop) Add failing test of cmd.Chmod group. See #8439
The cmd.Chmod callback never returns. Even when left for several minutes.
canEdit and canAnnotate tests are in https://github.com/will-moore/openmicroscopy/commits/chmod_web_8434 branch,
https://github.com/will-moore/openmicroscopy/commit/4ce05cfe0a08f200a0af92ba1c71d1851be30bba and preceeding commits.