This test needs to be run with DS Deferred Request Outbound (Passthrough) and Inbound (Standard).
Your gateway services should be set to Standard (Default). The Test case will switch DS Deferred Request (Passthrough) automatically without server restart (JMX). The PolicyEngine (Permit/Deny) is switch automatically at SpringBean (PolicyEngineProxyConfig) to value (adapterpolicyengineorchestratornoopdeny, adapterpolicyengineorchestratornoop) |
Verify the Document Submission Deferred Request successful for configuration of Outbound (Passthrough) and Inbound (Standard); PolicyEngine (Permit/Deny) can be verify in the server.log at the Adapter DS Deferred Request (Error).
Test Case (MockPolicyEngine can be removed), the PolicyEngine (Permit/Deny) is switch at SpringBean (PolicyEngineProxyConfig) using JMX script.
** Clear table (Audit)
** Generate PatientId and UserId
Send Document Submission Deferred Request and verify response status (RequestAccepted).
if PolicyEngine (Deny), manually verify Adapter (DS Deferred Request Error) endpoint.
** Verify Audit (event)
Update PolicyEngineProxyConfig (adapterpolicyengineorchestratornoopdeny)
XDRA sync Request
Assert status (RequestAccepted)
Manually verify Adapter (DS Deferred Request Error) endpoint server.log
Update PolicyEngineProxyConfig (adapterpolicyengineorchestratornoop)
XDRA sync Request
Assert status (RequestAccepted)
Manually verify Adapter (DS Deferred Request) endpoint server.log
Clear audit table
Generate Patient ID for Audit Log Query
Get User ID
Delay 30,000 milliseconds (30 seconds)
XDRA Sync Request
Assert status (RequestAccepted)
Verify audit events
Assert count (audit > 0)