EntityXDRTests
Overview:
EntityXDRTests project is used for testing policy engine and success messages for Document Submission (DS). This test ensures the negative testing for policy engine and positive testing for DS messages.
Testing will be done in standard mode.Â
Test Case Details:
- Policy Check mock Deny: This test case is used to test Document Submission functionality for when the service receives a "Deny" result when submitting 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 Home Community ID (HCID) endpoints are updated with test data specific to the test. The mock 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 RegistryResponse with the error code context of "Policy Check Failed".  Using assertions script will verify the existence of the RegistryError and verify status.
- Success message from NHINC - adapter: This test case is used to test the happy path for Document Submission invocation. When the request is processed, it returns an RegistryResponse with the status of "ResponseStatusType:Success".  Using assertions script will verify the existence of the RegistryResponse and verify status.
Preparation & Execution:
- 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).
- Make sure to enable Standard mode for DS service in gateway.properties. Note: By default all services will be in Standard mode in gateway.properties as of CONNECT-4.6 release.
- Restart application server.
- Deploy CONNECT ear (mvn clean install -P AD,DQ,DR,DS,PD).
- 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.
- In SoapUI, load EntityXDRTests project and execute.
- Make sure all test cases are passed and green.