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

Follow Automation operations renaming with aliases: NXP-15991

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.3.1216
    • Fix Version/s: 1.4+, 2.0.0522
    • Component/s: Remote client, Tests

      Description

      Since NXP-15991, running the tests immediately fails with:

      ======================================================================
      ERROR: test_real_conflict (nxdrive.tests.test_conflicts.TestConflicts)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/tests/test_conflicts.py", line 12, in setUp
          super(TestConflicts, self).setUp()
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/tests/common.py", line 117, in setUp
          password=self.password, base_folder=u'/', timeout=60)
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/client/remote_document_client.py", line 82, in __init__
          base_folder_doc = self.fetch(base_folder)
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/client/remote_document_client.py", line 374, in fetch
          return self.execute("Document.Fetch", value=ref)
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/client/base_automation_client.py", line 283, in execute
          self._check_params(command, params)
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/client/base_automation_client.py", line 542, in _check_params
          method = self._check_operation(command)
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/client/base_automation_client.py", line 538, in _check_operation
          % command)
      ValueError: 'Document.Fetch' is not a registered operations.
      

      This is because we now need to also match aliases when checking if an operation id is valid.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: