Fix data-export step in the mod-data-import tests

Description

Implement the scenario under data-import project in https://github.com/folio-org/folio-integration-tests

  • Export just imported data

  • Import exported file with profile created in previous steps

Environment

None

Potential Workaround

None

Attachments

1

Checklist

hide

TestRail: Results

Activity

Show:

Aivar IusupovOctober 11, 2021 at 9:07 AM

  1. Blocked by mod-data-export (attached screenshot): 2021-10-11T08:06:35.729+00:00 ERROR Generic error and some files goes into endless processing.

  2. Found that there is an issue with instance update when trying to import just exported file:

  • instanceTypeId value is set in the subfield "b" and should not be used as a part of mapping profile, but the default mapping rule with different instanceTypeId applied, because subfield "a" is empty. It causes an error "Key (instancetypeid)=(fe19bae4-da28-472b-be90-d442e2428ead) is not present in table \"instance_type\"."

  1. Everything else is done. p.2 should be resolved in another task.

Tetiana ParanichSeptember 27, 2021 at 12:04 PM

The test implements:

  1. building mapping profiles: MARC-to-MARC, MARC-to-Holdings, MARC-to-Item;

  2. building action profiles: Modify MARC bib, Update Instance, Update Holdings, Update Item.

  3. linking each action profile to the appropriate mapping profile.

  4. building match profiles: MARC-to-MARC 001 to 001, MARC-to-Holdings 901a to Holdings HRID, MARC-to-Item 902a to Item HRID;

  5. creating JobProfile;

  6. exporting .csv file and getting .mrc file;

  7. importing exported file with created job profile.

There is the problem in data-export module. And it needs help from a developer.

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Folijet

Release

Lotus R1 2022

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created September 13, 2021 at 10:23 AM
Updated October 11, 2021 at 12:34 PM
Resolved October 11, 2021 at 10:19 AM
TestRail: Cases
TestRail: Runs