XDRAsyncRequestOutboundTest

Overview

XDRAsyncRequestOutboundTest project is used for testing outbound Document Submission (DS) deferred Request messages. This test suite is standard orchestration mode only as it tests policy and audit functionality. This test ensures the audit logging table will have its events populated, as well as positive and negative testing for policy engine.

Testing will be done in standard mode.

Test Details

MessageFromEntityXDRRequestToAdapterXDR

This test case is used to verify the Document Submission (DS) deferred Request messages functionality when the service receives a "Permit" Policy and verify that the Acknowledgement status response (RequestAccepted)

PolicyCheck - Deny

This test case is used to verify the Document Submission (DS) deferred Request messages functionality when the service receives with mock policy engine (Deny) and verify that the Acknowledgement response status (Failure). This test used groovy script to update internalExchangeInfo.xml (policyengineservice) point to mock policy engine.

This test case ends (unexpectedly) at the mock Policy Engine endpoint. In the case of DS (Deferred) Service, where PolicyEngine (Deny) the request the request is forward to the Adapter (Adapter/DocumentSubmission/A_0/AdapterService/AdapterDocSubmissionDeferredRequestError) endpoint and Acknowledgement response status (RequestAccepted).

However in this test case a lot of processing (NHIN, Audit, Inbound, Adapter) is missing from the flow.

AuditForEntityXDRRequestTestCase

This test case is used to verify the Document Submission (DS) deferred Request messages functionality and audit capability, when the service receives a "Permit" Policy and verify that the Acknowledgement status response (RequestAccepted) using groovy script to clear and assert the database (Audit) table.

Â