[CalendarServer-changes] [5146] CalendarServer/trunk

source_changes at macosforge.org source_changes at macosforge.org
Wed Feb 17 11:38:59 PST 2010


Revision: 5146
          http://trac.macosforge.org/projects/calendarserver/changeset/5146
Author:   sagen at apple.com
Date:     2010-02-17 11:38:59 -0800 (Wed, 17 Feb 2010)
Log Message:
-----------
Set up resources.xml for ServiceMakerTests

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/tap/test/test_caldav.py

Added Paths:
-----------
    CalendarServer/trunk/twistedcaldav/directory/test/resources.xml

Modified: CalendarServer/trunk/calendarserver/tap/test/test_caldav.py
===================================================================
--- CalendarServer/trunk/calendarserver/tap/test/test_caldav.py	2010-02-17 17:57:14 UTC (rev 5145)
+++ CalendarServer/trunk/calendarserver/tap/test/test_caldav.py	2010-02-17 19:38:59 UTC (rev 5146)
@@ -197,6 +197,7 @@
         self.config = ConfigDict(DEFAULT_CONFIG)
 
         accountsFile = os.path.join(sourceRoot, "twistedcaldav/directory/test/accounts.xml")
+        resourcesFile = os.path.join(sourceRoot, "twistedcaldav/directory/test/resources.xml")
         augmentsFile = os.path.join(sourceRoot, "twistedcaldav/directory/test/augments.xml")
         pemFile = os.path.join(sourceRoot, "twistedcaldav/test/data/server.pem")
 
@@ -205,6 +206,10 @@
             "type": "twistedcaldav.directory.xmlfile.XMLDirectoryService"
         }
 
+        self.config["ResourceService"] = {
+            "params": {"xmlFile": resourcesFile},
+        }
+
         self.config["AugmentService"] = {
             "params": {"xmlFiles": [augmentsFile]},
             "type": "twistedcaldav.directory.augment.AugmentXMLDB"

Added: CalendarServer/trunk/twistedcaldav/directory/test/resources.xml
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/test/resources.xml	                        (rev 0)
+++ CalendarServer/trunk/twistedcaldav/directory/test/resources.xml	2010-02-17 19:38:59 UTC (rev 5146)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+Copyright (c) 2006-2010 Apple Inc. All rights reserved.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+ -->
+
+<!DOCTYPE accounts SYSTEM "../../../conf/auth/accounts.dtd">
+
+<accounts realm="Test">
+</accounts>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100217/0c85fb2c/attachment-0001.html>


More information about the calendarserver-changes mailing list