Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-805

Fix test_basic_synchronization_suspend on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.2.323
    • Fix Version/s: 4.0.0
    • Component/s: Remote client

      Description

      [INFO]      [exec] FAIL nuxeo-drive-client/tests/test_synchronization_suspend.py::TestSynchronizationSuspend::test_basic_synchronization_suspend
      [INFO]      [exec] ================================== FAILURES ===================================
      [INFO]      [exec] ________ TestSynchronizationSuspend.test_basic_synchronization_suspend ________
      [INFO]      [exec] self = <tests.test_synchronization_suspend.TestSynchronizationSuspend testMethod=test_basic_synchronization_suspend>
      [INFO]      [exec] result = <TestCaseFunction 'test_basic_synchronization_suspend'>
      [INFO]      [exec]     def run(self, result=None):
      [INFO]      [exec]         orig_result = result
      [INFO]      [exec]         if result is None:
      [INFO]      [exec]             result = self.defaultTestResult()
      [INFO]      [exec]             startTestRun = getattr(result, 'startTestRun', None)
      [INFO]      [exec]             if startTestRun is not None:
      [INFO]      [exec]                 startTestRun()
      [INFO]      [exec]         self._resultForDoCleanups = result
      [INFO]      [exec]         result.startTest(self)
      [INFO]      [exec]         testMethod = getattr(self, self._testMethodName)
      [INFO]      [exec]         if (getattr(self.__class__, "__unittest_skip__", False) or
      [INFO]      [exec]             getattr(testMethod, "__unittest_skip__", False)):
      [INFO]      [exec]             # If the class or method was skipped.
      [INFO]      [exec]             try:
      [INFO]      [exec]                 skip_why = (getattr(self.__class__, '__unittest_skip_why__', '')
      [INFO]      [exec]                             or getattr(testMethod, '__unittest_skip_why__', ''))
      [INFO]      [exec]                 self._addSkip(result, skip_why)
      [INFO]      [exec]             finally:
      [INFO]      [exec]                 result.stopTest(self)
      [INFO]      [exec]             return
      [INFO]      [exec]         try:
      [INFO]      [exec]             success = False
      [INFO]      [exec]             try:
      [INFO]      [exec]                 self.setUp()
      [INFO]      [exec]             except SkipTest as e:
      [INFO]      [exec]                 self._addSkip(result, str(e))
      [INFO]      [exec]             except KeyboardInterrupt:
      [INFO]      [exec]                 raise
      [INFO]      [exec]             except:
      [INFO]      [exec]                 result.addError(self, sys.exc_info())
      [INFO]      [exec]             else:
      [INFO]      [exec]                 try:
      [INFO]      [exec] >                   testMethod()
      [INFO]      [exec] cleanUpSuccess = True
      [INFO]      [exec] orig_result = <TestCaseFunction 'test_basic_synchronization_suspend'>
      [INFO]      [exec] result     = <TestCaseFunction 'test_basic_synchronization_suspend'>
      [INFO]      [exec] self       = <tests.test_synchronization_suspend.TestSynchronizationSuspend testMethod=test_basic_synchronization_suspend>
      [INFO]      [exec] success    = False
      [INFO]      [exec] testMethod = <bound method TestSynchronizationSuspend.test_basic_synchronization_suspend of...pend.TestSynchronizationSuspend testMethod=test_basic_synchronization_suspend>>
      [INFO]      [exec] ..\deploy-dir\drive-2.7.13-python\lib\unittest\case.py:329: 
      [INFO]      [exec] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
      [INFO]      [exec] self = <tests.test_synchronization_suspend.TestSynchronizationSuspend testMethod=test_basic_synchronization_suspend>
      [INFO]      [exec]     def test_basic_synchronization_suspend(self):
      [INFO]      [exec]         local = self.local_client_1
      [INFO]      [exec]         remote = self.remote_document_client_1
      [INFO]      [exec]         self.engine_1.start()
      [INFO]      [exec]         self.wait_sync(wait_for_async=True)
      [INFO]      [exec]         # Let's create some document on the client and the server
      [INFO]      [exec]         local.make_folder('/', 'Folder 3')
      [INFO]      [exec] >       self.make_server_tree()
      [INFO]      [exec] local      = <tests.win_local_client.WindowsLocalClient object at 0x04BD7270>
      [INFO]      [exec] remote     = <RemoteDocumentClient base_folder=None, blob_timeout=60, check_suspended=None,...3SF5V2PSVOUZC4CRBQLRIA\\tmp\\tmppyfleu-nxdrive-uploads', user_id='driveuser_1'>
      [INFO]      [exec] self       = <tests.test_synchronization_suspend.TestSynchronizationSuspend testMethod=test_basic_synchronization_suspend>
      [INFO]      [exec] nuxeo-drive-client\tests\test_synchronization_suspend.py:29: 
      [INFO]      [exec] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
      [INFO]      [exec] self = <tests.test_synchronization_suspend.TestSynchronizationSuspend testMethod=test_basic_synchronization_suspend>
      [INFO]      [exec] deep = True
      [INFO]      [exec]     def make_server_tree(self, deep=True):
      [INFO]      [exec]         remote_client = self.remote_document_client_1
      [INFO]      [exec]         # create some folders on the server
      [INFO]      [exec]         folder_1 = remote_client.make_folder(self.workspace, u'Folder 1')
      [INFO]      [exec]         folder_2 = remote_client.make_folder(self.workspace, u'Folder 2')
      [INFO]      [exec]         if deep:
      [INFO]      [exec]             folder_1_1 = remote_client.make_folder(folder_1, u'Folder 1.1')
      [INFO]      [exec] >           folder_1_2 = remote_client.make_folder(folder_1, u'Folder 1.2')
      [INFO]      [exec] deep       = True
      [INFO]      [exec] folder_1   = '9ffc019e-6292-451d-800b-8df4bba4e0e6'
      [INFO]      [exec] folder_1_1 = 'fc47e9cf-bfa8-4402-87a1-775582352666'
      [INFO]      [exec] folder_2   = '9efbbbc0-3596-4dbf-b1f1-026cc7c64f92'
      [INFO]      [exec] remote_client = <RemoteDocumentClient base_folder=None, blob_timeout=60, check_suspended=None,...3SF5V2PSVOUZC4CRBQLRIA\\tmp\\tmppyfleu-nxdrive-uploads', user_id='driveuser_1'>
      [INFO]      [exec] self       = <tests.test_synchronization_suspend.TestSynchronizationSuspend testMethod=test_basic_synchronization_suspend>
      [INFO]      [exec] nuxeo-drive-client\tests\common_unit_test.py:627: 
      [INFO]      [exec] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
      [INFO]      [exec] self = <RemoteDocumentClient base_folder=None, blob_timeout=60, check_suspended=None,...3SF5V2PSVOUZC4CRBQLRIA\\tmp\\tmppyfleu-nxdrive-uploads', user_id='driveuser_1'>
      [INFO]      [exec] parent = '9ffc019e-6292-451d-800b-8df4bba4e0e6', name = 'Folder 1.2'
      [INFO]      [exec] doc_type = 'Folder'
      [INFO]      [exec]     def make_folder(self, parent, name, doc_type=FOLDER_TYPE):
      [INFO]      [exec]         # TODO: make it possible to configure context dependent:
      [INFO]      [exec]         # - SocialFolder under SocialFolder or SocialWorkspace
      [INFO]      [exec]         # - Folder under Folder or Workspace
      [INFO]      [exec]         # This configuration should be provided by a special operation on the
      [INFO]      [exec]         # server.
      [INFO]      [exec]         parent = self._check_ref(parent)
      [INFO]      [exec]         doc = self.create(parent, doc_type, name=name,
      [INFO]      [exec]                     properties={'dc:title': name})
      [INFO]      [exec] >       return doc[u'uid']
      [INFO]      [exec] E       TypeError: 'NoneType' object has no attribute '__getitem__'
      [INFO]      [exec] doc        = None
      [INFO]      [exec] doc_type   = 'Folder'
      [INFO]      [exec] name       = 'Folder 1.2'
      [INFO]      [exec] parent     = '9ffc019e-6292-451d-800b-8df4bba4e0e6'
      [INFO]      [exec] self       = <RemoteDocumentClient base_folder=None, blob_timeout=60, check_suspended=None,...3SF5V2PSVOUZC4CRBQLRIA\\tmp\\tmppyfleu-nxdrive-uploads', user_id='driveuser_1'>
      [INFO]      [exec] nuxeo-drive-client\nxdrive\client\remote_document_client.py:153: TypeError
      

        Attachments

          Activity

            People

            • Assignee:
              mschoentgen Mickaël Schoentgen
              Reporter:
              mschoentgen Mickaël Schoentgen
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m