Hi All,

There are 3 test scenarios to cover.

1. Security with service descriptor test case
2. Security with policy files test case
3. Partner service security test case

I was able to successfully complete migrating the code for 1st scenario and
attached the code to BPS-429 <https://wso2.org/jira/browse/BPS-429> jira.

After migrating code for the 2nd scenario I used the same policy files
[1]<https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0/products/bps/3.0.0/modules/integration/org.wso2.bps.integration.tests/src/test/resources/policyFiles/>which
was used for BPS 3.0.0 integration test cases, there are 15 different
policy.xml files to test. The first policy runs without any exception but
the rest of the policy.xml files throws an exception.

I guess there should be some updates has to be done for policy.xml files
since those may be out dated. Looking for support from security and test
automation.

[2014-02-11 12:42:59,017] ERROR {org.apache.axis2.engine.AxisEngine} -  The
signature or decryption was invalid
org.apache.axis2.AxisFault: The signature or decryption was invalid
    at
org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
    at
org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
    at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
    at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
    at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
    at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:356)
    at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:413)
    at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)
    at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
    at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
    at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:530)
    at
org.wso2.carbon.bps.security.SecurityTest.runSecurityClient(SecurityTest.java:320)
    at
org.wso2.carbon.bps.security.SecurityTest.executeBPELSecurityScenario(SecurityTest.java:256)
    at
org.wso2.carbon.bps.security.SecurityTest.securityScenario02Test(SecurityTest.java:146)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
    at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
    at org.testng.TestRunner.privateRun(TestRunner.java:767)
    at org.testng.TestRunner.run(TestRunner.java:617)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
    at org.testng.SuiteRunner.run(SuiteRunner.java:240)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1198)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1123)
    at org.testng.TestNG.run(TestNG.java:1031)

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0/products/bps/3.0.0/modules/integration/org.wso2.bps.integration.tests/src/test/resources/policyFiles/

Thank you  & Best regards,

*Amal Gunatilake*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to