Uploaded image for project: 'The Virtual Brain'
  1. The Virtual Brain
  2. TVB-2973

Fix tests related to REST that are failling in Jenkins

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Component/s: None
    • Labels:
      None
    • Epic Link:
    • Sprint:
      VBC Sprint 13
    • TVB-C Task:
      8.2 Pipeline Integration

      Description

      In Jenkins job TVB - Step1 we have a step that runs the REST client (tvb-rest-client package) tests. Before running the tests, a REST server is started.

      self = <tvb.interfaces.rest.client.operation.operation_api.OperationApi object at 0x7f6270f4d250>
      project_gid = '2cc58a73-25c1-11e5-a7af-14109fe3bf71'
      algorithm_class = <class 'tvb.adapters.uploaders.zip_connectivity_importer.ZIPConnectivityImporter'>
      view_model = <tvb.adapters.uploaders.zip_connectivity_importer.ZIPConnectivityImporterModel object at 0x7f6270fc47d0>
      temp_folder = '/tmp'
      
          @handle_response
          def launch_operation(self, project_gid, algorithm_class, view_model, temp_folder):
              h5_file_path = h5.path_by_dir(temp_folder, ViewModelH5, view_model.gid)
              h5.store_view_model(view_model, temp_folder)
          
      >       model_file_obj = open(h5_file_path, 'rb')
      E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/ViewModel_d1f4434b36b84a7d8df311b87cadbf7c.h5'
      
      /home/tvb_user/tvb-root/framework_tvb/tvb/interfaces/rest/client/operation/operation_api.py:64: FileNotFoundError
      

      Investigate why these fail and fix them.
      In order to test locally, make sure to start up the REST server before launching the REST tests.

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              robert.vincze Robert Francisc Vincze
              Reporter:
              paula.popa Paula Popa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours Time Not Required
                  4h