Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

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

Below are the tests in SecuredAdapterSpingInjection 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

Below are the tests in UnsecuredAdapterSpingInjection 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:

  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. Put gateway in Passthrough mode.
  3. Start application server.
  4. Deploy CONNECT ear (mvn clean install -P AD,PD,DQ,DR,DS) 
  5. 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.
  6. In SoapUI, load AdapterSpringInjectionTest project and execute.
  7. Make sure all test cases for SecuredAdapterSpringInjection and UnsecuredAdapterSpringInjection are passed and green.
  • No labels