Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 74042 invoked from network); 24 Sep 2006 04:37:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Sep 2006 04:37:36 -0000 Received: (qmail 34362 invoked by uid 500); 24 Sep 2006 04:37:30 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 34301 invoked by uid 500); 24 Sep 2006 04:37:30 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 34289 invoked by uid 99); 24 Sep 2006 04:37:30 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Sep 2006 21:37:30 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=ruchith.fernando@gmail.com; domainkeys=good Authentication-Results: idunn.apache.osuosl.org smtp.mail=ruchith.fernando@gmail.com; spf=pass X-ASF-Spam-Status: No, hits=0.5 required=5.0 tests=DNS_FROM_RFC_ABUSE Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 66.249.82.237 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [66.249.82.237] ([66.249.82.237:30997] helo=wx-out-0506.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 6E/52-06340-58B06154 for ; Sat, 23 Sep 2006 21:37:27 -0700 Received: by wx-out-0506.google.com with SMTP id s8so1399965wxc for ; Sat, 23 Sep 2006 21:37:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=M64lFdA1JWHX1pTH1iw+KYTuGHPAtLgOMZBIiAhtIRW43qRsQDYmL8IV17vB37hxzJKelwfF3ghqua3R5C917YJRv8zKkZ2LvESY1XOTwqEvRHxCRfiFMeWISXfK/ICEXEhhsWnQIuNqNlG6l04cyf2wg4ooolHk25kTPExR85g= Received: by 10.90.25.7 with SMTP id 7mr1073446agy; Sat, 23 Sep 2006 21:37:23 -0700 (PDT) Received: by 10.90.86.5 with HTTP; Sat, 23 Sep 2006 21:37:23 -0700 (PDT) Message-ID: <559c463d0609232137x7c17a70craa570e3874435347@mail.gmail.com> Date: Sun, 24 Sep 2006 10:07:23 +0530 From: "Ruchith Fernando" To: axis-dev@ws.apache.org, dims@apache.org Subject: Re: [Axis2] Conditional execution (Re: svn commit: r449291 - /webservices/axis2/trunk/java/modules/security/test/org/apache/rampart/AsymmetricBindingBuilderTest.java) In-Reply-To: <19e0530f0609231446v57dbb9a7jeb0d5030283983c2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <19e0530f0609231446v57dbb9a7jeb0d5030283983c2@mail.gmail.com> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Should be apossible ... let me give it a try. Thanks, Ruchith On 9/24/06, Davanum Srinivas wrote: > Ruchith, > > Is it possible to query programatically whether the BASIC 256 algo's > are present? And run the tests if they are present? We could log a > message (not an junit failure/exception) in the log files telling the > user to install unlimited strength jurisdiction. That way the tests > are run at least on our machines where we do have it installed. > > thanks, > -- dims > > On 9/23/06, ruchithf@apache.org wrote: > > Author: ruchithf > > Date: Sat Sep 23 12:17:03 2006 > > New Revision: 449291 > > > > URL: http://svn.apache.org/viewvc?view=rev&rev=449291 > > Log: > > Commenting out the tests that require Basic256 algo suite since they require the JRE to have unlimited strength jurisdiction policy > > > > Modified: > > webservices/axis2/trunk/java/modules/security/test/org/apache/rampart/AsymmetricBindingBuilderTest.java > > > > Modified: webservices/axis2/trunk/java/modules/security/test/org/apache/rampart/AsymmetricBindingBuilderTest.java > > URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/security/test/org/apache/rampart/AsymmetricBindingBuilderTest.java?view=diff&rev=449291&r1=449290&r2=449291 > > ============================================================================== > > --- webservices/axis2/trunk/java/modules/security/test/org/apache/rampart/AsymmetricBindingBuilderTest.java (original) > > +++ webservices/axis2/trunk/java/modules/security/test/org/apache/rampart/AsymmetricBindingBuilderTest.java Sat Sep 23 12:17:03 2006 > > @@ -26,173 +26,173 @@ > > import java.util.ArrayList; > > > > public class AsymmetricBindingBuilderTest extends MessageBuilderTestBase { > > - > > - public void testAsymmBinding() { > > - try { > > - MessageContext ctx = getMsgCtx(); > > - > > - String policyXml = "test-resources/policy/rampart-asymm-binding-1.xml"; > > - Policy policy = this.loadPolicy(policyXml); > > - > > - ctx.setProperty(RampartMessageData.KEY_RAMPART_POLICY, policy); > > - > > - MessageBuilder builder = new MessageBuilder(); > > - builder.build(ctx); > > - > > - ArrayList list = new ArrayList(); > > - > > - list.add(new QName(WSConstants.WSU_NS, WSConstants.TIMESTAMP_TOKEN_LN)); > > - list.add(new QName(WSConstants.ENC_NS, WSConstants.ENC_KEY_LN)); > > - list.add(new QName(WSConstants.SIG_NS, WSConstants.SIG_LN)); > > - > > - this.verifySecHeader(list.iterator(), ctx.getEnvelope()); > > - } catch (Exception e) { > > - e.printStackTrace(); > > - fail(e.getMessage()); > > - } > > - } > > - > > - public void testAsymmBindingServerSide() { > > - try { > > - MessageContext ctx = getMsgCtx(); > > - > > - ctx.setServerSide(true); > > - String policyXml = "test-resources/policy/rampart-asymm-binding-1.xml"; > > - Policy policy = this.loadPolicy(policyXml); > > - > > - ctx.setProperty(RampartMessageData.KEY_RAMPART_POLICY, policy); > > - > > - MessageBuilder builder = new MessageBuilder(); > > - builder.build(ctx); > > - > > - ArrayList list = new ArrayList(); > > - > > - list.add(new QName(WSConstants.WSU_NS, WSConstants.TIMESTAMP_TOKEN_LN)); > > - list.add(new QName(WSConstants.ENC_NS, WSConstants.ENC_KEY_LN)); > > - list.add(new QName(WSConstants.SIG_NS, WSConstants.SIG_LN)); > > - > > - this.verifySecHeader(list.iterator(), ctx.getEnvelope()); > > - } catch (Exception e) { > > - e.printStackTrace(); > > - fail(e.getMessage()); > > - } > > - } > > - > > - public void testAsymmBindingWithSigDK() { > > - try { > > - MessageContext ctx = getMsgCtx(); > > - > > - String policyXml = "test-resources/policy/rampart-asymm-binding-2-sig-dk.xml"; > > - Policy policy = this.loadPolicy(policyXml); > > - > > - ctx.setProperty(RampartMessageData.KEY_RAMPART_POLICY, policy); > > - > > - MessageBuilder builder = new MessageBuilder(); > > - builder.build(ctx); > > - > > - ArrayList list = new ArrayList(); > > - > > - list.add(new QName(WSConstants.WSU_NS, WSConstants.TIMESTAMP_TOKEN_LN)); > > - list.add(new QName(WSConstants.ENC_NS, WSConstants.ENC_KEY_LN)); > > - list.add(new QName(WSConstants.WSSE_NS, WSConstants.BINARY_TOKEN_LN)); > > - list.add(new QName(WSConstants.ENC_NS, WSConstants.ENC_KEY_LN)); > > - list.add(new QName(ConversationConstants.WSC_NS_05_02, ConversationConstants.DERIVED_KEY_TOKEN_LN)); > > - list.add(new QName(WSConstants.SIG_NS, WSConstants.SIG_LN)); > > - > > - this.verifySecHeader(list.iterator(), ctx.getEnvelope()); > > - > > - } catch (Exception e) { > > - e.printStackTrace(); > > - fail(e.getMessage()); > > - } > > - } > > - > > - public void testAsymmBindingWithDK() { > > - try { > > - MessageContext ctx = getMsgCtx(); > > - > > - String policyXml = "test-resources/policy/rampart-asymm-binding-3-dk.xml"; > > - Policy policy = this.loadPolicy(policyXml); > > - > > - ctx.setProperty(RampartMessageData.KEY_RAMPART_POLICY, policy); > > - > > - MessageBuilder builder = new MessageBuilder(); > > - builder.build(ctx); > > - > > - ArrayList list = new ArrayList(); > > - > > - list.add(new QName(WSConstants.WSU_NS, WSConstants.TIMESTAMP_TOKEN_LN)); > > - list.add(new QName(WSConstants.WSSE_NS, WSConstants.BINARY_TOKEN_LN)); > > - list.add(new QName(WSConstants.ENC_NS, WSConstants.ENC_KEY_LN)); > > - list.add(new QName(ConversationConstants.WSC_NS_05_02, ConversationConstants.DERIVED_KEY_TOKEN_LN)); > > - list.add(new QName(WSConstants.ENC_NS, WSConstants.REF_LIST_LN)); > > - list.add(new QName(ConversationConstants.WSC_NS_05_02, ConversationConstants.DERIVED_KEY_TOKEN_LN)); > > - list.add(new QName(WSConstants.SIG_NS, WSConstants.SIG_LN)); > > - > > - this.verifySecHeader(list.iterator(), ctx.getEnvelope()); > > - > > - } catch (Exception e) { > > - e.printStackTrace(); > > - fail(e.getMessage()); > > - } > > - } > > - > > - public void testAsymmBindingWithDKEncrBeforeSig() { > > - try { > > - MessageContext ctx = getMsgCtx(); > > - > > - String policyXml = "test-resources/policy/rampart-asymm-binding-4-dk-ebs.xml"; > > - Policy policy = this.loadPolicy(policyXml); > > - > > - ctx.setProperty(RampartMessageData.KEY_RAMPART_POLICY, policy); > > - > > - MessageBuilder builder = new MessageBuilder(); > > - builder.build(ctx); > > - > > - ArrayList list = new ArrayList(); > > - > > - list.add(new QName(WSConstants.WSU_NS, WSConstants.TIMESTAMP_TOKEN_LN)); > > - list.add(new QName(WSConstants.ENC_NS, WSConstants.ENC_KEY_LN)); > > - list.add(new QName(ConversationConstants.WSC_NS_05_02, ConversationConstants.DERIVED_KEY_TOKEN_LN)); > > - list.add(new QName(WSConstants.SIG_NS, WSConstants.SIG_LN)); > > - list.add(new QName(ConversationConstants.WSC_NS_05_02, ConversationConstants.DERIVED_KEY_TOKEN_LN)); > > - list.add(new QName(WSConstants.ENC_NS, WSConstants.REF_LIST_LN)); > > - > > - this.verifySecHeader(list.iterator(), ctx.getEnvelope()); > > - > > - } catch (Exception e) { > > - e.printStackTrace(); > > - fail(e.getMessage()); > > - } > > - } > > - > > - > > - public void testAsymmBindingEncrBeforeSig() { > > - try { > > - MessageContext ctx = getMsgCtx(); > > - > > - String policyXml = "test-resources/policy/rampart-asymm-binding-5-ebs.xml"; > > - Policy policy = this.loadPolicy(policyXml); > > - > > - ctx.setProperty(RampartMessageData.KEY_RAMPART_POLICY, policy); > > - > > - MessageBuilder builder = new MessageBuilder(); > > - builder.build(ctx); > > - > > - ArrayList list = new ArrayList(); > > - > > - list.add(new QName(WSConstants.WSU_NS, WSConstants.TIMESTAMP_TOKEN_LN)); > > - list.add(new QName(WSConstants.ENC_NS, WSConstants.ENC_KEY_LN)); > > - list.add(new QName(WSConstants.SIG_NS, WSConstants.SIG_LN)); > > - list.add(new QName(WSConstants.ENC_NS, WSConstants.REF_LIST_LN)); > > - > > - this.verifySecHeader(list.iterator(), ctx.getEnvelope()); > > - } catch (Exception e) { > > - e.printStackTrace(); > > - fail(e.getMessage()); > > - } > > - } > > - > > +// > > +// public void testAsymmBinding() { > > +// try { > > +// MessageContext ctx = getMsgCtx(); > > +// > > +// String policyXml = "test-resources/policy/rampart-asymm-binding-1.xml"; > > +// Policy policy = this.loadPolicy(policyXml); > > +// > > +// ctx.setProperty(RampartMessageData.KEY_RAMPART_POLICY, policy); > > +// > > +// MessageBuilder builder = new MessageBuilder(); > > +// builder.build(ctx); > > +// > > +// ArrayList list = new ArrayList(); > > +// > > +// list.add(new QName(WSConstants.WSU_NS, WSConstants.TIMESTAMP_TOKEN_LN)); > > +// list.add(new QName(WSConstants.ENC_NS, WSConstants.ENC_KEY_LN)); > > +// list.add(new QName(WSConstants.SIG_NS, WSConstants.SIG_LN)); > > +// > > +// this.verifySecHeader(list.iterator(), ctx.getEnvelope()); > > +// } catch (Exception e) { > > +// e.printStackTrace(); > > +// fail(e.getMessage()); > > +// } > > +// } > > +// > > +// public void testAsymmBindingServerSide() { > > +// try { > > +// MessageContext ctx = getMsgCtx(); > > +// > > +// ctx.setServerSide(true); > > +// String policyXml = "test-resources/policy/rampart-asymm-binding-1.xml"; > > +// Policy policy = this.loadPolicy(policyXml); > > +// > > +// ctx.setProperty(RampartMessageData.KEY_RAMPART_POLICY, policy); > > +// > > +// MessageBuilder builder = new MessageBuilder(); > > +// builder.build(ctx); > > +// > > +// ArrayList list = new ArrayList(); > > +// > > +// list.add(new QName(WSConstants.WSU_NS, WSConstants.TIMESTAMP_TOKEN_LN)); > > +// list.add(new QName(WSConstants.ENC_NS, WSConstants.ENC_KEY_LN)); > > +// list.add(new QName(WSConstants.SIG_NS, WSConstants.SIG_LN)); > > +// > > +// this.verifySecHeader(list.iterator(), ctx.getEnvelope()); > > +// } catch (Exception e) { > > +// e.printStackTrace(); > > +// fail(e.getMessage()); > > +// } > > +// } > > +// > > +// public void testAsymmBindingWithSigDK() { > > +// try { > > +// MessageContext ctx = getMsgCtx(); > > +// > > +// String policyXml = "test-resources/policy/rampart-asymm-binding-2-sig-dk.xml"; > > +// Policy policy = this.loadPolicy(policyXml); > > +// > > +// ctx.setProperty(RampartMessageData.KEY_RAMPART_POLICY, policy); > > +// > > +// MessageBuilder builder = new MessageBuilder(); > > +// builder.build(ctx); > > +// > > +// ArrayList list = new ArrayList(); > > +// > > +// list.add(new QName(WSConstants.WSU_NS, WSConstants.TIMESTAMP_TOKEN_LN)); > > +// list.add(new QName(WSConstants.ENC_NS, WSConstants.ENC_KEY_LN)); > > +// list.add(new QName(WSConstants.WSSE_NS, WSConstants.BINARY_TOKEN_LN)); > > +// list.add(new QName(WSConstants.ENC_NS, WSConstants.ENC_KEY_LN)); > > +// list.add(new QName(ConversationConstants.WSC_NS_05_02, ConversationConstants.DERIVED_KEY_TOKEN_LN)); > > +// list.add(new QName(WSConstants.SIG_NS, WSConstants.SIG_LN)); > > +// > > +// this.verifySecHeader(list.iterator(), ctx.getEnvelope()); > > +// > > +// } catch (Exception e) { > > +// e.printStackTrace(); > > +// fail(e.getMessage()); > > +// } > > +// } > > +// > > +// public void testAsymmBindingWithDK() { > > +// try { > > +// MessageContext ctx = getMsgCtx(); > > +// > > +// String policyXml = "test-resources/policy/rampart-asymm-binding-3-dk.xml"; > > +// Policy policy = this.loadPolicy(policyXml); > > +// > > +// ctx.setProperty(RampartMessageData.KEY_RAMPART_POLICY, policy); > > +// > > +// MessageBuilder builder = new MessageBuilder(); > > +// builder.build(ctx); > > +// > > +// ArrayList list = new ArrayList(); > > +// > > +// list.add(new QName(WSConstants.WSU_NS, WSConstants.TIMESTAMP_TOKEN_LN)); > > +// list.add(new QName(WSConstants.WSSE_NS, WSConstants.BINARY_TOKEN_LN)); > > +// list.add(new QName(WSConstants.ENC_NS, WSConstants.ENC_KEY_LN)); > > +// list.add(new QName(ConversationConstants.WSC_NS_05_02, ConversationConstants.DERIVED_KEY_TOKEN_LN)); > > +// list.add(new QName(WSConstants.ENC_NS, WSConstants.REF_LIST_LN)); > > +// list.add(new QName(ConversationConstants.WSC_NS_05_02, ConversationConstants.DERIVED_KEY_TOKEN_LN)); > > +// list.add(new QName(WSConstants.SIG_NS, WSConstants.SIG_LN)); > > +// > > +// this.verifySecHeader(list.iterator(), ctx.getEnvelope()); > > +// > > +// } catch (Exception e) { > > +// e.printStackTrace(); > > +// fail(e.getMessage()); > > +// } > > +// } > > +// > > +// public void testAsymmBindingWithDKEncrBeforeSig() { > > +// try { > > +// MessageContext ctx = getMsgCtx(); > > +// > > +// String policyXml = "test-resources/policy/rampart-asymm-binding-4-dk-ebs.xml"; > > +// Policy policy = this.loadPolicy(policyXml); > > +// > > +// ctx.setProperty(RampartMessageData.KEY_RAMPART_POLICY, policy); > > +// > > +// MessageBuilder builder = new MessageBuilder(); > > +// builder.build(ctx); > > +// > > +// ArrayList list = new ArrayList(); > > +// > > +// list.add(new QName(WSConstants.WSU_NS, WSConstants.TIMESTAMP_TOKEN_LN)); > > +// list.add(new QName(WSConstants.ENC_NS, WSConstants.ENC_KEY_LN)); > > +// list.add(new QName(ConversationConstants.WSC_NS_05_02, ConversationConstants.DERIVED_KEY_TOKEN_LN)); > > +// list.add(new QName(WSConstants.SIG_NS, WSConstants.SIG_LN)); > > +// list.add(new QName(ConversationConstants.WSC_NS_05_02, ConversationConstants.DERIVED_KEY_TOKEN_LN)); > > +// list.add(new QName(WSConstants.ENC_NS, WSConstants.REF_LIST_LN)); > > +// > > +// this.verifySecHeader(list.iterator(), ctx.getEnvelope()); > > +// > > +// } catch (Exception e) { > > +// e.printStackTrace(); > > +// fail(e.getMessage()); > > +// } > > +// } > > +// > > +// > > +// public void testAsymmBindingEncrBeforeSig() { > > +// try { > > +// MessageContext ctx = getMsgCtx(); > > +// > > +// String policyXml = "test-resources/policy/rampart-asymm-binding-5-ebs.xml"; > > +// Policy policy = this.loadPolicy(policyXml); > > +// > > +// ctx.setProperty(RampartMessageData.KEY_RAMPART_POLICY, policy); > > +// > > +// MessageBuilder builder = new MessageBuilder(); > > +// builder.build(ctx); > > +// > > +// ArrayList list = new ArrayList(); > > +// > > +// list.add(new QName(WSConstants.WSU_NS, WSConstants.TIMESTAMP_TOKEN_LN)); > > +// list.add(new QName(WSConstants.ENC_NS, WSConstants.ENC_KEY_LN)); > > +// list.add(new QName(WSConstants.SIG_NS, WSConstants.SIG_LN)); > > +// list.add(new QName(WSConstants.ENC_NS, WSConstants.REF_LIST_LN)); > > +// > > +// this.verifySecHeader(list.iterator(), ctx.getEnvelope()); > > +// } catch (Exception e) { > > +// e.printStackTrace(); > > +// fail(e.getMessage()); > > +// } > > +// } > > +// > > public void testAsymmBindingTripleDesRSA15() { > > try { > > MessageContext ctx = getMsgCtx(); > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-cvs-help@ws.apache.org > > > > > > > -- > Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-dev-help@ws.apache.org > > -- www.ruchith.org --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org