Uploaded image for project: 'mod-data-export'
  1. mod-data-export
  2. MDEXP-521

Data import karate test failing on data export step

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Won't Do
    • None
    • None
    • None
    • Firebird Sprint 138
    • 2
    • Firebird
    • TBD

    Description

      Overview:
      **

      While running tests against folio-snapshot hosted environments we are getting wrong status for POST request, e.g. https://folio-snapshot-2-okapi.dev.folio.org/data-export/file-definitions/67231646-64c9-4175-806e-b384472da248/upload

      12:48:44.939 [main] DEBUG com.intuit.karate - request:
      12 > POST https://folio-snapshot-2-okapi.dev.folio.org/data-export/file-definitions/67231646-64c9-4175-806e-b384472da248/upload
      12 > Content-Type: application/octet-stream; charset=UTF-8
      12 > x-okapi-token: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0LXVzZXIiLCJ0eXBlIjoiYWNjZXNzIiwidXNlcl9pZCI6IjAwMDAwMDAwLTExMTEtNTU1NS05OTk5LTk5OTk5OTk5OTk5MiIsImlhdCI6MTY0OTE0MzExNSwidGVuYW50IjoidGVzdGVuYW50MTAxNDU3NjY4MTc3MDk3OTMyOCJ9.CTWUdjM_UJ-WuWX74VsE1IX67qIrFsmUk_OP26sG2WM
      12 > Accept: */*
      12 > Content-Length: 36
      12 > Host: folio-snapshot-2-okapi.dev.folio.org
      12 > Connection: Keep-Alive
      12 > User-Agent: Apache-HttpClient/4.5.13 (Java/18)
      12 > Accept-Encoding: gzip,deflate
      12:48:45.954 [main] DEBUG com.intuit.karate - response time in milliseconds: 1015
      12 < 200
      12 < Date: Tue, 05 Apr 2022 07:18:46 GMT
      12 < Content-Type: application/json
      12 < Transfer-Encoding: chunked
      12 < Connection: keep-alive
      {
        "fileName": "FAT-945.csv",
        "metadata": {
          "createdByUserId": "00000000-1111-5555-9999-999999999992",
          "createdDate": "2022-04-05T07:18:45.633+00:00",
          "updatedDate": "2022-04-05T07:18:45.633+00:00",
          "updatedByUserId": "00000000-1111-5555-9999-999999999992"
        },
        "jobExecutionId": "a54ec4d3-4927-4547-8368-c7fea2b1eb2e",
        "size": 2,
        "uploadFormat": "csv",
        "id": "67231646-64c9-4175-806e-b384472da248",
        "sourcePath": "./storage/files/67231646-64c9-4175-806e-b384472da248/FAT-945.csv",
        "status": "IN_PROGRESS"
      }
      12:48:45.956 [main] ERROR com.intuit.karate - classpath:folijet/data-import/features/data-import-integration.feature:1341
      And match $.status == 'COMPLETED'
      match failed: EQUALS
        $ | not equal (STRING:STRING)
        'IN_PROGRESS'
        'COMPLETED'
      

       Status remains 'IN_PROGRESS', but should be 'COMPLETED'

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Harbuz Aliaksei Harbuz
                Aivar Iusupov Aivar Iusupov
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases