EntitySendingXDRAsyncResponseTests

Overview:

EntitySendingXDRAsyncReqTests project is used for testing policy engine and audit logging for Deferred Document Retrieve Responses. 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 Details:

  • AuditLogQuery: This test case is used to test that the Audit Log events are generated when running Document Retrieve (DR) invocation. When this test is executed a script will update UDDI connection info from project specific settings to be applied to the application server configuration, Home Community ID (HCID) endpoints are updated with test data specific to the test, and the Audit Log database will be emptied to ensure the counts are accurate. When the request is processed, it returns an Acknowledgement with the status of "ResponseStatusType:ResponseAccepted".  Using assertions script will verify the existence of the Acknowledgement and verify status, and after that, a script will query the database to ensure the audit log rows exist and have been populated into the table.
  • PolicyCheckDeny: This test case is used to test Document Retrieve functionality for when the service receives a "Deny" result when sending results for retrieving documents. When this test case is executed, a script will update UDDI connection info from project specific settings to be applied to the application server configuration and HCID endpoints are updated with test data specific to the test. The NoOp-Deny bean is set up for policy engine to deny the request, which is configured in the setup script. When the request is processed, it returns an Acknowledgement with the status of "ResponseStatusType:Failure".  Using assertions script will verify the existence of the Acknowledgement and verify status.
  • PolicyCheckPermit: This test case is used to test Document Retrieve functionality when the service receives a "Deny" result when sending results from retrieving documents. When this test case is executed, a script will update UDDI connection info from project specific settings to be applied to the application server configuration and HCID endpoints are updated with test data specific to the test. The NoOp bean is set up for policy engine to approve the request, which is configured in the setup script. When the request is processed, it returns an Acknowledgement with the status of "ResponseStatusType:ResponseAccepted".  Using assertions script will verify the existence of the Acknowledgement and verify status.

Preparation & Execution:

  1. Make sure to copy CONNECT common properties from \\CONNECT\Product\Production\Common\Properties\src\main\resources to application server properties folder. (If using WildFly 8.2.1 , copy into \\wildfly-8.2.1.Final\modules\system\layers\base\org\connectopensource\configuration\main).
  2. Make sure to enable Standard mode for DR/DQ service in gateway.properties. Note: By default all services will be in Standard mode in gateway.properties as of CONNECT-4.6 release.
  3. Restart application server.
  4. Deploy CONNECT ear (mvn clean install -P AD,DQ,DR,DS,PD).
  5. In SoapUI, make sure to have GatewayPropDir value set either by using global SOAPUI properties or by setting custom SOAPUI property at the project level.
  6. In SoapUI, load EntitySendingXDRAsyncResponseTests project and execute.
  7. Make sure all test cases are passed and green.