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

Workaround tests failing systematically because of a wrong await on the stream audit

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: Tests

      Description

      See https://qa.nuxeo.org/jenkins/view/Drive/job/Drive/job/FT-drive/job/master/395/consoleFull:

      13:13:56 [WINSLAVE] [INFO]      [exec] =========================== short test summary info ===========================
      13:13:56 [WINSLAVE] [INFO]      [exec] FAIL nuxeo-drive-client/tests/test_remote_changes.py::TestRemoteChanges::test_changes_root_registrations
      13:13:56 [WINSLAVE] [INFO]      [exec] ================================== FAILURES ===================================
      13:13:56 [WINSLAVE] [INFO]      [exec] ______________ TestRemoteChanges.test_changes_root_registrations ______________
      13:13:56 [WINSLAVE] [INFO]      [exec] self = <tests.test_remote_changes.TestRemoteChanges testMethod=test_changes_root_registrations>
      13:13:56 [WINSLAVE] [INFO]      [exec]     def test_changes_root_registrations(self):
      13:13:56 [WINSLAVE] [INFO]      [exec]         # Lets create some folders in Nuxeo
      13:13:56 [WINSLAVE] [INFO]      [exec]         remote_client = self.remote_document_client_1
      13:13:56 [WINSLAVE] [INFO]      [exec]         folder_1 = remote_client.make_folder(self.workspace, 'Folder 1')
      13:13:56 [WINSLAVE] [INFO]      [exec]         folder_2 = remote_client.make_folder(self.workspace, 'Folder 2')
      13:13:56 [WINSLAVE] [INFO]      [exec]         remote_client.make_folder(folder_2, 'Folder 2.2')
      13:13:56 [WINSLAVE] [INFO]      [exec]         # Check no changes without any registered roots
      13:13:56 [WINSLAVE] [INFO]      [exec]         summary = self.get_changes()
      13:13:56 [WINSLAVE] [INFO]      [exec]         assert not summary['hasTooManyChanges']
      13:13:56 [WINSLAVE] [INFO]      [exec]         assert not summary['activeSynchronizationRootDefinitions']
      13:13:56 [WINSLAVE] [INFO]      [exec]         assert not summary['fileSystemChanges']
      13:13:56 [WINSLAVE] [INFO]      [exec]         # Let's register one of the previously created folders as sync root
      13:13:56 [WINSLAVE] [INFO]      [exec]         remote_client.register_as_root(folder_1)
      13:13:56 [WINSLAVE] [INFO]      [exec]         summary = self.get_changes()
      13:13:56 [WINSLAVE] [INFO]      [exec]         assert not summary['hasTooManyChanges']
      13:13:56 [WINSLAVE] [INFO]      [exec]         root_defs = summary['activeSynchronizationRootDefinitions'].split(',')
      13:13:56 [WINSLAVE] [INFO]      [exec]         assert len(root_defs) == 1
      13:13:56 [WINSLAVE] [INFO]      [exec]         assert root_defs[0].startswith('default:')
      13:13:56 [WINSLAVE] [INFO]      [exec] >       assert len(summary['fileSystemChanges']) == 1
      13:13:56 [WINSLAVE] [INFO]      [exec] E       AssertionError: assert 0 == 1
      13:13:56 [WINSLAVE] [INFO]      [exec] E        +  where 0 = len([])
      

      Temporary workaround, waiting for NXP-23725.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 1 hour
                  1h