ExchangeManager Details:
Overview:
ExchangeManager project is used for testing the exchange manager functionality for all the current services in CONNECT. This test ensures that a default exchange can be overridden using the nhinTargetCommunities element. In both testing configurations, the default exchange provided has no endpoints available for the services, and would otherwise fail to be invoked if the exchange is not overridden with the exchange targeting functionality of the Exchange Manager. Testing will be done in standard mode. As all the tests essentially test for the same thing, just that a different service is being used, it will be
TestCase Details:
g1 Suite: This test suite is used to test CONNECT event logging functionality that supports the endpoints implement July-2011 specs.
g0 Suite: This test suite is used to test CONNECT event logging functionality that supports the endpoints implement prior to July-2011 specs.
Each test here runs through the general process of clearing out the event logging table to ensure the counts of each invocation is correct. Once the table is cleared, the respective service will be invoked with mock data. This data is populated via setup scripts according to the service being run. Additional scripts/configuration may be setup in instances such as DS and DQ tests where a correlation is inserted for mock data as well. After the service is invoked, we then check the eventdb table for the correct number of entries, and ensure each BEGIN_* entry has its respective END_* element. It also ensures that these entries have the correct service name listed in the event row.
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 services 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,PD,DQ,DR,DS).
- 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 ExchangeManager project and execute.
- Make sure all test cases are passed and green.