You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Stefan Seelmann (JIRA)" <ji...@apache.org> on 2010/03/16 08:54:27 UTC

[jira] Created: (DIRSERVER-1480) Generalize test framework and test suites to use different partition implementations

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


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.


[jira] Updated: (DIRSERVER-1480) Generalize test framework and test suites to use different partition implementations

Posted by "Kiran Ayyagari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kiran Ayyagari updated DIRSERVER-1480:
--------------------------------------

    Fix Version/s:     (was: 1.5.7)
                   2.0.0-RC1

Postponed to release 2.0.0-RC1

> 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.


[jira] Closed: (DIRSERVER-1480) Generalize test framework and test suites to use different partition implementations

Posted by "Kiran Ayyagari (JIRA)" <ji...@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.


[jira] Commented: (DIRSERVER-1480) Generalize test framework and test suites to use different partition implementations

Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12847867#action_12847867 ] 

Stefan Seelmann commented on DIRSERVER-1480:
--------------------------------------------

The creation of system partition and custom partitons are now created by partition factories, the factory to use can be controlled with system property -Dapacheds.partition.factory:
  mvn clean install -Dapacheds.partition.factory=org.apache.directory.server.core.factory.JdbmPartitionFactory (this is the default)
  mvn clean install -Dapacheds.partition.factory=org.apache.directory.server.core.factory.AvlPartitionFactory
  mvn clean install -Dapacheds.partition.factory=org.apache.directory.server.core.factory.LdifPartitionFactory

Additional, core-integ and server-integ have a new profile that runs the tests for each partition (JDBM, AVL, LDIF), can be activated with system property -Dtest-all-partitions:
  mvn clean install -Dtest-all-partitions

Next step is to make the schema partition implementation configurable.


> 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: 1.5.7
>
>
> 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.


[jira] Updated: (DIRSERVER-1480) Generalize test framework and test suites to use different partition implementations

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated DIRSERVER-1480:
-----------------------------------------

    Fix Version/s: 1.5.7

> 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: 1.5.7
>
>
> 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.