AdapterSpringInjectionTest
AdapterSpringInjectionTest
This test basically verifies that <wsse:Security> tag is not present when unsecured adapter are called during message processing. This test is designed to work in Passthrough mode.
Test Suite Details
There are two test suites in the AdapterSpringInjectionTest:
SecuredAdapterSpringInjection Test Suite
Patient Discovery
This test verifies that request to Patient Discovery adapter contains:
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="true"> header. This assertion is present in Mock Response test step.
Document Query
This test verifies that request to Document Query adapter contains:
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="true">. This assertion is present in mockDocQuerySecuredAdapter test step.
Document Retrieve
This test verifies that request to Document Retrieve adapter contains:
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="true">. This assertion is present in Mock Document Retrieve Secured Adapter test step.
Document Submission
This test verifies that request to Document Submission adapter contains:
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="true">. This assertion is present in Mock Doc Submission Secured Adapter test step.
Admin Distribution
This test verifies that request to Admin Distribution adapter contains:
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="true">. This assertion is present in Mock AD Secured Response test step.
UnsecuredAdapterSpringInjection Test Suite
Patient Discovery
This test verifies that request to Patient Discovery adapter does not contain:
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="true"> header. This assertion is present in Mock Response test step.
Document Query
This test verifies that request to Document Query adapter does not contain:Â
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="true">. This assertion is present in mockdocqueryadapter test step.
Document Retrieve
This test verifies that request to Document Retrieve adapter does not contain:Â
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="true">. This assertion is present in mockdocretrieve test step.
Document Submission
This test verifies that request to Document Submission adapter does not contain:Â
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="true">. This assertion is present in mockdocsubmissionXDR test step.
Admin Distribution
This test verifies that request to Admin Distribution adapter does not contain:Â
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="true">. This assertion is present in Mock AD Response test step.
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).
- Put gateway in Passthrough mode.
- Start 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 are by setting custom SOAPUI property at the project level.
- In SoapUI, load AdapterSpringInjectionTest project and execute.
- Make sure all test cases for SecuredAdapterSpringInjection and UnsecuredAdapterSpringInjection are passed and green.