This test needs to be run with DS Deferred Response Outbound (Passthrough) and Inbound (Standard).
Skip PolicyEngine on Outbound (Passthrough)
Request (Permit, Deny) decision on Inbound (Standard)
Your gateway services should be set to Standard (Default); testCase will switch DS Deferred Response (Passthrought) automatically without server restart (JMX). The PolicyEngine (Permit/Deny) is switch automatically at SpringBean (PolicyEngineProxyConfig) to value (adapterpolicyengineorchestratornoopdeny, adapterpolicyengineorchestratornoop)
Overview
Verify the Document Submission Deferred (Response) successful with configuration of Outbound (Passthrough) and Inbound (Standard).
Test Detail
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 DS Deferred (Response) and verify expected result.
** Verify Audit (Record)
NHINCReceivingXDRAsyncResponseTests
Policy Check Deny
SOAP: XDRA sync Response
Assert status (ResponseAccepted)
Assert RelatesTo
Policy Check Permit
SOAP: XDRA sync Response
Assert status (Failure)
Assert RelatesTo
Audit for NHIN CXDR Request
Clear audit table
Generate Patient ID for Audit Log Query
Get User ID
Delay 30,000 milliseconds (30 seconds)
SOAP: XDRA sync Response
Assert status (ResponseAccepted)
Assert RelatesTo
Verify audit events
Assert count (record > 0)