Fix periodically failing PurchaseOrderLinesApiTestNested test

Description

Time to time when running Jenkins pipeline for mod-orders the test PurchaseOrderLinesApiTest::testPutElecOrderLineByIdWhenSpecificElementIsPresentAndProtectedFieldsChanged fails.
After redeploying module - it passes again.
Seems it can be connected with asynchronous calls.

Example of failing test on Jenkins:
1. https://jenkins-aws.indexdata.com/job/folio-org/job/mod-orders/view/tags/job/v12.4.0/1/testReport/junit/org.folio/ApiTestSuite$PurchaseOrderLinesApiTestNested/testPutElecOrderLineByIdWhenSpecificElementIsPresentAndProtectedFieldsChanged_OrderFormat__1_/

2. ApiTestSuite$PiecesProtectionTestNested>PiecesProtectionTest.testWithProtectedUnitsAndForbiddenUser:122
Log :

For both tests exceptions are same

Quick investigation result : Looks like Event for updating line is sent but should not be

Locally I tried to reproduce failure couple of times, but without success, need to investigate reasons of these random failures on Jenkins and fix test or code.

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

1

Checklist

hide

TestRail: Results

Activity

Show:

Serhii_Nosko August 19, 2022 at 2:11 PM

this ticket originally was connected with instability in some unit tests, that blocked jenkins builds from time to time, now we are not observing such behaviour in unit tests, they passed every time, so we can close this ticket

Dennis Bridges August 8, 2022 at 8:57 PM

 please verify in bugfest. thx!

Oleksii Petrenko July 25, 2022 at 12:49 PM

Deployed to MG bf. Please proceed with verification.

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Thunderjet

Fix versions

Release

Morning Glory (R2 2022) Bug Fix

RCA Group

Implementation coding issue

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created July 7, 2022 at 1:45 PM
Updated August 25, 2022 at 6:28 AM
Resolved July 14, 2022 at 8:37 AM
TestRail: Cases
TestRail: Runs