[CalendarServer-changes] [10565] CalendarServer/branches/users/glyph/unshare-when-access-revoked
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jan 28 19:28:43 PST 2013
Revision: 10565
http://trac.calendarserver.org//changeset/10565
Author: glyph at apple.com
Date: 2013-01-28 19:28:43 -0800 (Mon, 28 Jan 2013)
Log Message:
-----------
Description of the test.
Modified Paths:
--------------
CalendarServer/branches/users/glyph/unshare-when-access-revoked/twistedcaldav/test/test_sharing.py
Property Changed:
----------------
CalendarServer/branches/users/glyph/unshare-when-access-revoked/
Modified: CalendarServer/branches/users/glyph/unshare-when-access-revoked/twistedcaldav/test/test_sharing.py
===================================================================
--- CalendarServer/branches/users/glyph/unshare-when-access-revoked/twistedcaldav/test/test_sharing.py 2013-01-29 03:28:42 UTC (rev 10564)
+++ CalendarServer/branches/users/glyph/unshare-when-access-revoked/twistedcaldav/test/test_sharing.py 2013-01-29 03:28:43 UTC (rev 10565)
@@ -14,22 +14,24 @@
# limitations under the License.
##
+from zope.interface import implements
from twext.web2 import responsecode
from txdav.xml import element as davxml
+
from twext.web2.http_headers import MimeType
from twext.web2.iweb import IResource
from twext.web2.stream import MemoryStream
from twext.web2.test.test_server import SimpleRequest
+
from twisted.internet.defer import inlineCallbacks, returnValue, succeed
from twistedcaldav import customxml
from twistedcaldav.config import config
from twistedcaldav.test.util import HomeTestCase, norequest
-from twistedcaldav.sharing import SharedCollectionMixin, WikiDirectoryService
+from twistedcaldav.sharing import SharedCollectionMixin, WikiDirectoryService, Share
from twistedcaldav.resource import CalDAVResource
from txdav.common.datastore.test.util import buildStore, StubNotifierFactory
-from zope.interface import implements
sharedOwnerType = davxml.ResourceType.sharedownercalendar #@UndefinedVariable
@@ -707,6 +709,14 @@
self.assertTrue("<write/>" in acl.toxml())
+ @inlineCallbacks
+ def test_noWikiAccess(self):
+ """
+ If L{SharedCollectionMixin.shareeAccessControlList} detects missing
+ access controls for a directly shared collection, it will automatically
+ un-share that collection.
+ """
+ yield self.fail()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130128/3b9fe47b/attachment.html>
More information about the calendarserver-changes
mailing list