[CalendarServer-changes] [15378] CalendarServer/trunk/calendarserver/push/test/test_applepush.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Dec 10 15:22:22 PST 2015


Revision: 15378
          http://trac.calendarserver.org//changeset/15378
Author:   sagen at apple.com
Date:     2015-12-10 15:22:22 -0800 (Thu, 10 Dec 2015)
Log Message:
-----------
Use a ConfigDict in the apns test because the service expects it for settings

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/push/test/test_applepush.py

Modified: CalendarServer/trunk/calendarserver/push/test/test_applepush.py
===================================================================
--- CalendarServer/trunk/calendarserver/push/test/test_applepush.py	2015-12-10 22:01:17 UTC (rev 15377)
+++ CalendarServer/trunk/calendarserver/push/test/test_applepush.py	2015-12-10 23:22:22 UTC (rev 15378)
@@ -25,6 +25,7 @@
 from twisted.internet.defer import inlineCallbacks, succeed
 from twisted.internet.task import Clock
 from txdav.common.icommondatastore import InvalidSubscriptionValues
+from twistedcaldav.config import ConfigDict
 
 
 class ApplePushNotifierServiceTests(StoreTestCase):
@@ -32,7 +33,7 @@
     @inlineCallbacks
     def test_ApplePushNotifierService(self):
 
-        settings = {
+        settings = ConfigDict({
             "Enabled" : True,
             "SubscriptionURL" : "apn",
             "SubscriptionPurgeSeconds" : 24 * 60 * 60,
@@ -45,6 +46,7 @@
             "EnableStaggering" : True,
             "StaggerSeconds" : 3,
             "CalDAV" : {
+                "Enabled" : True,
                 "CertificatePath" : "caldav.cer",
                 "PrivateKeyPath" : "caldav.pem",
                 "AuthorityChainPath" : "chain.pem",
@@ -53,6 +55,7 @@
                 "Topic" : "caldav_topic",
             },
             "CardDAV" : {
+                "Enabled" : True,
                 "CertificatePath" : "carddav.cer",
                 "PrivateKeyPath" : "carddav.pem",
                 "AuthorityChainPath" : "chain.pem",
@@ -60,7 +63,7 @@
                 "KeychainIdentity": "org.calendarserver.test",
                 "Topic" : "carddav_topic",
             },
-        }
+        })
 
         # Add subscriptions
         txn = self._sqlCalendarStore.newTransaction()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20151210/afae996b/attachment.html>


More information about the calendarserver-changes mailing list