[CalendarServer-changes] [12925] CalendarServer/branches/users/sagen/move2who-4/twistedcaldav

source_changes at macosforge.org source_changes at macosforge.org
Mon Mar 17 10:11:29 PDT 2014


Revision: 12925
          http://trac.calendarserver.org//changeset/12925
Author:   sagen at apple.com
Date:     2014-03-17 10:11:29 -0700 (Mon, 17 Mar 2014)
Log Message:
-----------
Add resources.xml into the StoreTestCase

Modified Paths:
--------------
    CalendarServer/branches/users/sagen/move2who-4/twistedcaldav/directory/test/resources.xml
    CalendarServer/branches/users/sagen/move2who-4/twistedcaldav/test/util.py

Modified: CalendarServer/branches/users/sagen/move2who-4/twistedcaldav/directory/test/resources.xml
===================================================================
--- CalendarServer/branches/users/sagen/move2who-4/twistedcaldav/directory/test/resources.xml	2014-03-17 17:11:10 UTC (rev 12924)
+++ CalendarServer/branches/users/sagen/move2who-4/twistedcaldav/directory/test/resources.xml	2014-03-17 17:11:29 UTC (rev 12925)
@@ -18,5 +18,5 @@
 
 <!DOCTYPE accounts SYSTEM "../../../conf/auth/accounts.dtd">
 
-<accounts realm="Test">
-</accounts>
+<directory realm="Test">
+</directory>

Modified: CalendarServer/branches/users/sagen/move2who-4/twistedcaldav/test/util.py
===================================================================
--- CalendarServer/branches/users/sagen/move2who-4/twistedcaldav/test/util.py	2014-03-17 17:11:10 UTC (rev 12924)
+++ CalendarServer/branches/users/sagen/move2who-4/twistedcaldav/test/util.py	2014-03-17 17:11:29 UTC (rev 12925)
@@ -72,6 +72,7 @@
 dirTest = FilePath(__file__).parent().sibling("directory").child("test")
 
 xmlFile = dirTest.child("accounts.xml")
+resourcesFile = dirTest.child("resources.xml")
 augmentsFile = dirTest.child("augments.xml")
 proxiesFile = dirTest.child("proxies.xml")
 
@@ -185,8 +186,11 @@
         accounts = FilePath(config.DataRoot).child("accounts.xml")
         accounts.setContent(xmlFile.getContent())
 
+        resources = FilePath(config.DataRoot).child("resources.xml")
+        resources.setContent(resourcesFile.getContent())
 
 
+
 class TestCase(txweb2.dav.test.util.TestCase):
     resource_class = RootResource
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140317/b9d1311b/attachment.html>


More information about the calendarserver-changes mailing list