Hi Thilini, Please apply the attached patch to ..turing/products/bps/3.2.0/modules/integration/ Maven clean and build will reproduce the error.
Thank you & Best regards, *Amal Gunatilake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware On Tue, Feb 11, 2014 at 1:24 PM, Thilini Ishaka <[email protected]> wrote: > Hi Amal, > > Could you please attach the BPEL sample to the jira? I can't find it > anywhere. > > Thanks > Thilini > > > On Tue, Feb 11, 2014 at 1:06 PM, Amal Gunatilake <[email protected]> wrote: > >> >> 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 >> >> > > > -- > Thilini Ishaka > Senior Software Engineer > Phone: +94 11 214 5345 > WSO2 Inc. http://wso2.com > > blog: thiliniishaka.blogspot.com > linkedin: http://lk.linkedin.com/in/thiliniishaka > twitter: https://twitter.com/#!/ThiliniIsh >
Index: org.wso2.bps.bpel.taftests/src/test/java/org/wso2/carbon/bps/security/SecurityWithServiceDescriptorTest.java =================================================================== --- org.wso2.bps.bpel.taftests/src/test/java/org/wso2/carbon/bps/security/SecurityWithServiceDescriptorTest.java (revision 0) +++ org.wso2.bps.bpel.taftests/src/test/java/org/wso2/carbon/bps/security/SecurityWithServiceDescriptorTest.java (working copy) @@ -0,0 +1,201 @@ +/* +*Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. +* +*WSO2 Inc. licenses this file to you under the Apache License, +*Version 2.0 (the "License"); you may not use this file except +*in compliance with the License. +*You may obtain a copy of the License at +* +*http://www.apache.org/licenses/LICENSE-2.0 +* +*Unless required by applicable law or agreed to in writing, +*software distributed under the License is distributed on an +*"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +*KIND, either express or implied. See the License for the +*specific language governing permissions and limitations +*under the License. +*/ +package org.wso2.carbon.bps.security; + +import junit.framework.Assert; +import org.apache.axiom.om.OMElement; +import org.apache.axiom.om.impl.builder.StAXOMBuilder; +import org.apache.axiom.om.util.AXIOMUtil; +import org.apache.axis2.addressing.EndpointReference; +import org.apache.axis2.client.Options; +import org.apache.axis2.client.ServiceClient; +import org.apache.axis2.context.ConfigurationContext; +import org.apache.axis2.context.ConfigurationContextFactory; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.apache.neethi.Policy; +import org.apache.neethi.PolicyEngine; +import org.apache.rampart.RampartMessageData; +import org.apache.rampart.policy.model.CryptoConfig; +import org.apache.rampart.policy.model.RampartConfig; +import org.apache.ws.security.WSPasswordCallback; +import org.testng.annotations.AfterClass; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; +import org.wso2.bps.integration.core.BPSMasterTest; +import org.wso2.bps.integration.core.BPSTestConstants; +import org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException; +import org.wso2.carbon.authenticator.stub.LogoutAuthenticationExceptionException; +import org.wso2.carbon.automation.api.clients.bpel.BpelInstanceManagementClient; +import org.wso2.carbon.automation.api.clients.bpel.BpelPackageManagementClient; +import org.wso2.carbon.automation.api.clients.bpel.BpelProcessManagementClient; +import org.wso2.carbon.automation.core.ProductConstant; +import org.wso2.carbon.automation.core.RequestSender; +import org.wso2.carbon.bpel.stub.mgt.PackageManagementException; +import org.wso2.carbon.bpel.stub.mgt.types.LimitedInstanceInfoType; +import org.wso2.carbon.utils.CarbonUtils; + +import javax.security.auth.callback.Callback; +import javax.security.auth.callback.CallbackHandler; +import javax.security.auth.callback.UnsupportedCallbackException; +import java.io.File; +import java.io.IOException; +import java.net.MalformedURLException; +import java.rmi.RemoteException; +import java.util.Properties; + +public class SecurityWithServiceDescriptorTest extends BPSMasterTest implements CallbackHandler{ + + private static final Log log = LogFactory.getLog(SecurityWithServiceDescriptorTest.class); + + LimitedInstanceInfoType instanceInfo = null; + BpelPackageManagementClient bpelPackageManagementClient; + BpelProcessManagementClient bpelProcessManagementClient; + BpelInstanceManagementClient bpelInstanceManagementClient; + + RequestSender requestSender; + + + public void setEnvironment() throws LoginAuthenticationExceptionException, RemoteException { + init(); + bpelPackageManagementClient = new BpelPackageManagementClient(backEndUrl, sessionCookie); + bpelProcessManagementClient = new BpelProcessManagementClient(backEndUrl, sessionCookie); + bpelInstanceManagementClient = new BpelInstanceManagementClient(backEndUrl, sessionCookie); + requestSender = new RequestSender(); + } + + @BeforeClass(alwaysRun = true) + public void deployArtifact() + throws InterruptedException, RemoteException, MalformedURLException, + PackageManagementException , LoginAuthenticationExceptionException{ + setEnvironment(); + uploadBpelForTest("SecuredWithServiceDescriptorProcess"); + } + + @Test(groups = {"wso2.bps", "wso2.bps.security"}, description = "BPEL security test scenario - secure BPEL process with service.xml file") + public void securityWithServiceDescriptorTest() throws Exception { + requestSender.waitForProcessDeployment(backEndUrl + "SWSDPService"); + + String securityPolicyPath = ProductConstant.SYSTEM_TEST_RESOURCE_LOCATION + BPSTestConstants.DIR_ARTIFACTS + + File.separator + BPSTestConstants.DIR_POLICY + File.separator + "securityWithService.xml"; + + String endpointHttpS = "https://localhost:9443/services/SWSDPService"; + + String trustStore = CarbonUtils.getCarbonHome() + File.separator + "repository" + File.separator + "resources" + + File.separator + "security" + File.separator + "wso2carbon.jks"; + String clientKey = trustStore; + OMElement result; + + System.setProperty("javax.net.ssl.trustStore", trustStore); + System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon"); + + System.out.println(CarbonUtils.getCarbonHome()); + ConfigurationContext ctx = + ConfigurationContextFactory.createConfigurationContextFromFileSystem(CarbonUtils.getCarbonHome() + + File.separator + "repository" + File.separator + "deployment" + + File.separator + "client", null); + ServiceClient sc = new ServiceClient(ctx, null); + sc.engageModule("addressing"); + sc.engageModule("rampart"); + + Options opts = new Options(); + + opts.setTo(new EndpointReference(endpointHttpS)); + log.info(endpointHttpS); + + opts.setAction("urn:swsdp"); + + log.info("SecurityPolicyPath " + securityPolicyPath); + opts.setProperty(RampartMessageData.KEY_RAMPART_POLICY, + loadPolicy(securityPolicyPath, clientKey, "alice")); + + sc.setOptions(opts); + result = sc.sendReceive(AXIOMUtil.stringToOM("<p:swsdp xmlns:p=\"http://wso2.org/bpel/sample.wsdl\">\n" + + " <TestPart>ww</TestPart>\n" + + " </p:swsdp>")); + log.info(result.getFirstElement().getText()); + Assert.assertFalse("Incorrect Test Result: " + result.toString(), + !result.toString().contains("ww World")); + } + + @AfterClass(alwaysRun = true) + public void cleanup() throws PackageManagementException, InterruptedException, RemoteException, + LogoutAuthenticationExceptionException { + bpelPackageManagementClient.undeployBPEL("SecuredWithServiceDescriptorProcess"); + this.authenticatorClient.logOut(); + } + + private static Policy loadPolicy(String xmlPath, String clientKey, String userName) throws Exception { + + StAXOMBuilder builder = new StAXOMBuilder(xmlPath); + Policy policy = PolicyEngine.getPolicy(builder.getDocumentElement()); + + RampartConfig rc = new RampartConfig(); + + rc.setUser(userName); + rc.setUserCertAlias("wso2carbon"); + rc.setEncryptionUser("wso2carbon"); + rc.setPwCbClass(SecurityWithServiceDescriptorTest.class.getName()); + + CryptoConfig sigCryptoConfig = new CryptoConfig(); + sigCryptoConfig.setProvider("org.apache.ws.security.components.crypto.Merlin"); + + Properties prop1 = new Properties(); + prop1.put("org.apache.ws.security.crypto.merlin.keystore.type", "JKS"); + prop1.put("org.apache.ws.security.crypto.merlin.file", clientKey); + prop1.put("org.apache.ws.security.crypto.merlin.keystore.password", "wso2carbon"); + sigCryptoConfig.setProp(prop1); + + CryptoConfig encrCryptoConfig = new CryptoConfig(); + encrCryptoConfig.setProvider("org.apache.ws.security.components.crypto.Merlin"); + + Properties prop2 = new Properties(); + prop2.put("org.apache.ws.security.crypto.merlin.keystore.type", "JKS"); + prop2.put("org.apache.ws.security.crypto.merlin.file", clientKey); + prop2.put("org.apache.ws.security.crypto.merlin.keystore.password", "wso2carbon"); + encrCryptoConfig.setProp(prop2); + + rc.setSigCryptoConfig(sigCryptoConfig); + rc.setEncrCryptoConfig(encrCryptoConfig); + + policy.addAssertion(rc); + return policy; + } + + public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException { + + WSPasswordCallback pwcb = (WSPasswordCallback) callbacks[0]; + String id = pwcb.getIdentifier(); + int usage = pwcb.getUsage(); + + if (usage == WSPasswordCallback.USERNAME_TOKEN) { + + if ("admin".equals(id)) { + pwcb.setPassword("admin"); + } else if ("alice".equals(id)) { + pwcb.setPassword("bobPW"); + } + + } else if (usage == WSPasswordCallback.SIGNATURE || usage == WSPasswordCallback.DECRYPT) { + + if ("wso2carbon".equals(id)) { + pwcb.setPassword("wso2carbon"); + } + } + } +} Index: org.wso2.bps.bpel.taftests/src/test/resources/artifacts/policy/scenario1-policy.xml =================================================================== --- org.wso2.bps.bpel.taftests/src/test/resources/artifacts/policy/scenario1-policy.xml (revision 0) +++ org.wso2.bps.bpel.taftests/src/test/resources/artifacts/policy/scenario1-policy.xml (working copy) @@ -0,0 +1,51 @@ +<!-- + ~ Copyright 2005-2007 WSO2, Inc. (http://wso2.com) + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> + +<wsp:Policy wsu:Id="UTOverTransport" + xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" + xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"> + <wsp:ExactlyOne> + <wsp:All> + <sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:TransportToken> + <wsp:Policy> + <sp:HttpsToken RequireClientCertificate="false"/> + </wsp:Policy> + </sp:TransportToken> + <sp:AlgorithmSuite> + <wsp:Policy> + <sp:Basic256/> + </wsp:Policy> + </sp:AlgorithmSuite> + <sp:Layout> + <wsp:Policy> + <sp:Lax/> + </wsp:Policy> + </sp:Layout> + <sp:IncludeTimestamp/> + </wsp:Policy> + </sp:TransportBinding> + <sp:SignedSupportingTokens + xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:UsernameToken + sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/> + </wsp:Policy> + </sp:SignedSupportingTokens> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> Index: org.wso2.bps.bpel.taftests/src/test/resources/artifacts/policy/scenario2-policy.xml =================================================================== --- org.wso2.bps.bpel.taftests/src/test/resources/artifacts/policy/scenario2-policy.xml (revision 0) +++ org.wso2.bps.bpel.taftests/src/test/resources/artifacts/policy/scenario2-policy.xml (working copy) @@ -0,0 +1,74 @@ +<!-- + ~ Copyright 2005-2007 WSO2, Inc. (http://wso2.com) + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> + +<wsp:Policy wsu:Id="SigOnly" + xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" + xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"> + <wsp:ExactlyOne> + <wsp:All> + <sp:AsymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:InitiatorToken> + <wsp:Policy> + <sp:X509Token + sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"> + <wsp:Policy> + <sp:RequireThumbprintReference/> + <sp:WssX509V3Token10/> + <!-- sp:WssX509V3Token10/ --> + </wsp:Policy> + </sp:X509Token> + </wsp:Policy> + </sp:InitiatorToken> + <sp:RecipientToken> + <wsp:Policy> + <sp:X509Token + sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never"> + <wsp:Policy> + <sp:RequireThumbprintReference/> + <sp:WssX509V3Token10/> + <!-- sp:WssX509V3Token10/ --> + </wsp:Policy> + </sp:X509Token> + </wsp:Policy> + </sp:RecipientToken> + <sp:AlgorithmSuite> + <wsp:Policy> + <sp:Basic256/> + </wsp:Policy> + </sp:AlgorithmSuite> + <sp:Layout> + <wsp:Policy> + <sp:Strict/> + </wsp:Policy> + </sp:Layout> + <sp:IncludeTimestamp/> + <sp:OnlySignEntireHeadersAndBody/> + </wsp:Policy> + + </sp:AsymmetricBinding> + <sp:Wss10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:MustSupportRefKeyIdentifier/> + <sp:MustSupportRefIssuerSerial/> + </wsp:Policy> + </sp:Wss10> + <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <sp:Body/> + </sp:SignedParts> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> Index: org.wso2.bps.bpel.taftests/src/test/resources/artifacts/policy/securityWithService.xml =================================================================== --- org.wso2.bps.bpel.taftests/src/test/resources/artifacts/policy/securityWithService.xml (revision 0) +++ org.wso2.bps.bpel.taftests/src/test/resources/artifacts/policy/securityWithService.xml (working copy) @@ -0,0 +1,85 @@ +<!-- + ~ Copyright 2005-2007 WSO2, Inc. (http://wso2.com) + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> +<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" + xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" + wsu:Id="UTOverTransport"> + <wsp:ExactlyOne> + <wsp:All> + <sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:TransportToken> + <wsp:Policy> + <sp:HttpsToken RequireClientCertificate="false"/> + </wsp:Policy> + </sp:TransportToken> + <sp:AlgorithmSuite> + <wsp:Policy> + <sp:Basic256/> + </wsp:Policy> + </sp:AlgorithmSuite> + <sp:Layout> + <wsp:Policy> + <sp:Lax/> + </wsp:Policy> + </sp:Layout> + <sp:IncludeTimestamp/> + </wsp:Policy> + </sp:TransportBinding> + <sp:SupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:UsernameToken + sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/> + </wsp:Policy> + </sp:SupportingTokens> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> + + <!--wsp:Policy wsu:Id="UTOverTransport" + xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" + xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"> + <wsp:ExactlyOne> + <wsp:All> + <sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:TransportToken> + <wsp:Policy> + <sp:HttpsToken RequireClientCertificate="false"/> + </wsp:Policy> + </sp:TransportToken> + <sp:AlgorithmSuite> + <wsp:Policy> + <sp:Basic256/> + </wsp:Policy> + </sp:AlgorithmSuite> + <sp:Layout> + <wsp:Policy> + <sp:Lax/> + </wsp:Policy> + </sp:Layout> + <sp:IncludeTimestamp/> + </wsp:Policy> + </sp:TransportBinding> + <sp:SignedSupportingTokens + xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:UsernameToken + sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/> + </wsp:Policy> + </sp:SignedSupportingTokens> + </wsp:All> + </wsp:ExactlyOne> + </wsp:Policy--> Index: org.wso2.bps.bpel.taftests/src/test/resources/testng.xml =================================================================== --- org.wso2.bps.bpel.taftests/src/test/resources/testng.xml (revision 195350) +++ org.wso2.bps.bpel.taftests/src/test/resources/testng.xml (working copy) @@ -33,10 +33,11 @@ </test> <test name="BPEL Test" preserve-order="true" verbose="2"> <packages> - <package name="org.wso2.carbon.bps.uploadscenarios"/> + <!--<package name="org.wso2.carbon.bps.uploadscenarios"/> <package name="org.wso2.carbon.bps.bpelactivities"/> <package name="org.wso2.carbon.bps.managescenarios"/> - <package name="org.wso2.carbon.bps.mgtstructuredactivities"/> + <package name="org.wso2.carbon.bps.mgtstructuredactivities"/>--> + <package name="org.wso2.carbon.bps.security"/> </packages> </test> Index: org.wso2.bps.integration.core/src/main/java/org/wso2/bps/integration/core/BPSTestConstants.java =================================================================== --- org.wso2.bps.integration.core/src/main/java/org/wso2/bps/integration/core/BPSTestConstants.java (revision 195190) +++ org.wso2.bps.integration.core/src/main/java/org/wso2/bps/integration/core/BPSTestConstants.java (working copy) @@ -25,6 +25,7 @@ public final static String DIR_HUMAN_TASK = "humantask"; public final static String DIR_BPEL= "bpel"; + public final static String DIR_POLICY= "policy"; public final static String DIR_SCENARIOS = "scenarios"; public final static String DIR_CONFIG = "config";
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
