Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 81993 invoked from network); 31 May 2010 13:53:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 May 2010 13:53:04 -0000 Received: (qmail 64613 invoked by uid 500); 31 May 2010 13:53:04 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 64544 invoked by uid 500); 31 May 2010 13:53:04 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 64489 invoked by uid 99); 31 May 2010 13:53:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 May 2010 13:53:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 May 2010 13:53:02 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4VDqe36005123 for ; Mon, 31 May 2010 13:52:40 GMT Message-ID: <26226077.87841275313960397.JavaMail.jira@thor> Date: Mon, 31 May 2010 09:52:40 -0400 (EDT) From: "Kiran Ayyagari (JIRA)" To: dev@directory.apache.org Subject: [jira] Closed: (DIRSERVER-1480) Generalize test framework and test suites to use different partition implementations In-Reply-To: <773436329.285321268726067209.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSERVER-1480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kiran Ayyagari closed DIRSERVER-1480. ------------------------------------- Resolution: Fixed Support for custom partition initialization in tests except for schema and config partitions has been added. > Generalize test framework and test suites to use different partition implementations > ------------------------------------------------------------------------------------ > > Key: DIRSERVER-1480 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1480 > Project: Directory ApacheDS > Issue Type: Improvement > Reporter: Stefan Seelmann > Assignee: Stefan Seelmann > Fix For: 2.0.0-RC1 > > > With the new test framework it is possible to use annotations to define different partition implementations to use for the tests. Howerver such a test then only uses one particular partition type. Additional, when using the DefaultDirectoryServiceFactory the system partition is always a JDBM partition and the schema partition is always a LDIF partition. > It would be nice if the core-integ and server-integ tests can be configured to use any partition implementations. This way they can be used as test suite for existing and new partition implementations. > To achieve this I propose the following changes: > - create a new PartionFactory interface that creates partitions and appropriate indices > - create PartionFactory implmentations for Jdbm, Ldif, Avl, and HBase > - use the PartitionFactory within DefaultDirectoryServiceFactory and the DSAnnotationProcessor to create partition instances > - use a system property (-Dapacheds.partition.factory) to configure the PartitionFactory implementation to use. This way is is possible to select the partition implementation in the maven build. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.