Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-14088

Drive: improve ability to simulate I/O errors in tests

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.10
    • Component/s: Nuxeo Drive
    • Tags:
    • Backlog priority:
      500

      Description

      Currently we can simulate a remote error (network / server) when executing an Automation call or downloading a file by calling Controller.make_remote_raise()

      We should also be able to:

      • Test local device errors such as "IOError: No space left on device".
      • Test a remote error during file upload (BaseAutomationClient.upload()).
      • Simulate a remote or local error in the middle of an upload (BaseAutomationClient._read_data()) / download (RemoteFileSystemClient._do_get()).
        Currently for download we only raise an IOError once the file is totally downloaded, yet this is OK as the exception is thrown before the .part file is renamed.
      • Take into acccount file size in IOError tests, for example to simulate a case where only the large files of a synchronized folder would fail but not the small ones.
      • Not have the code testing a simulated error "pollute" the runtime code, but is this possible?

        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 - 2 days
                  2d
                  Remaining:
                  Remaining Estimate - 2 days
                  2d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified