Changes

Jump to: navigation, search

Services/Sync/Getting Started

879 bytes added, 16:18, 17 September 2012
Running Python Functional Tests
===Running Python Functional Tests===
You'll need to obtain the server source code, configure it, then launch the tests. For example:
git clone git://github.com/mozilla-services/server-syncstorage.git
make
source bin/activate
python syncstorage/tests/functional/test_storage.py http://localhost:8080 If you see lots of errors like  Traceback (most recent call last): File "syncstorage/tests/functional/test_storage.py", line 52, in setUp super(TestStorage, self).setUp() File "/Users/ncalexan/Mozilla/server-syncstorage/syncstorage/tests/functional/support.py", line 36, in setUp self._authenticate() File "/Users/ncalexan/Mozilla/server-syncstorage/syncstorage/tests/functional/support.py", line 49, in _authenticate auth_policy = self.config.registry.getUtility(IAuthenticationPolicy) File "/Users/ncalexan/Mozilla/server-syncstorage/lib/python2.7/site-packages/zope/interface/registry.py", line 169, in getUtility raise ComponentLookupError(provided, name) ComponentLookupError: (<InterfaceClass pyramid.interfaces.IAuthenticationPolicy>, u'') you may need to follow the instructions at https://mail.mozilla.org/pipermail/services-dev/2012-September/001564.html.
= Collaboration =
Confirm
355
edits

Navigation menu