Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

XDRAsyncRequestInboundTest project is used for testing both Document Submission (DS) deferred (request, response) messages. 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 case description and what it does described below:

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.

Note

This test case end 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 (NwHIN, Audit, Inbound, Adapter) are missing from the flow.

...

This test case is used to verify the Document Submission 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.

...

This test case is used to verify the Document Submission Deferred (Response) 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.

Note

This test case end ends (unexpectedly) at the mock Policy Engine endpoint, and did not reach the Document Submission Deferred Inbound Response.

...

This test case is used to verify the Document Submission Deferred (Response) 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.