Uploaded image for project: 'Folio Automation Testing'
  1. Folio Automation Testing
  2. FAT-1063

Fixing API integration tests for mod-data-export

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None

    Description

      Overview:

      mod-data-export integration tests failed during duplicate testing data into database.

      status code was: 400, expected: 201, response time in milliseconds: 631, url: https://folio-snapshot-okapi.dev.folio.org/instance-types, response: duplicate key value violates unique constraint "instance_type_pkey": Key (id)=(6312d172-f0cf-40f6-b27d-9fa8feaf332f) already exists. classpath:global/inventory_data_setup_util.feature:49 classpath:global/mod_inventory_init_data.feature:25 status code was: 400, expected: 201, response time in milliseconds: 632, url: https://folio-snapshot-okapi.dev.folio.org/identifier-types, response: duplicate key value violates unique constraint "identifier_type_pkey": Key (id)=(8261054f-be78-422d-bd51-4ed9f33c3422) already exists. classpath:global/inventory_data_setup_util.feature:56 classpath:global/mod_inventory_init_data.feature:36 status code was: 422, expected: 201, response time in milliseconds: 618, url: https://folio-snapshot-okapi.dev.folio.org/location-units/institutions, response: { "errors" : [ { "message" : "Institution already exists", "type" : "1", "code" : "-1", "parameters" : [ { "key" : "locinst", "value" : "40ee00ca-a518-4b49-be01-0638d0a4ac57" } ] } ] } classpath:global/inventory_data_setup_util.feature:89 classpath:global/mod_inventory_init_data.feature:43 classpath:domain/dataexport/data-export-basic-junit.feature:30
      

      Steps to Reproduce:

      1. Add tenantParams: {loadReferenceData : 'true'} to karate-config.js file in mod-data-export module.
      2. Run API integration tests for mod-data-export.

      Expected Results:

      • Tests passed

      Actual Results:

      • Tests failed

      Additional Information:
      URL:
      Interested parties:

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Oleksandr_Bozhko Oleksandr Bozhko
                Alherd Alherd Nestsiarkow
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases