[dna-issues] [JBoss JIRA] Updated: (DNA-476) Add integration test that uses the file system connector

Brian Carothers (JIRA) jira-events at lists.jboss.org
Thu Jul 23 21:13:29 EDT 2009


     [ https://jira.jboss.org/jira/browse/DNA-476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Carothers updated DNA-476:
--------------------------------

    Attachment: DNA-476.patch


Attached patch that implements a read-only TCK test based on a filesystem connector.  This patch implements a few changes as described below:

- Minor JCR bug fixes around UUID properties for connectors that don't support UUID properties and binary handling in JcrValue and the document view exporter
- Minor tweaks to the TCK infrastructure code to support not importing test data into read-only repositories and having a test suite of just the read-only tests
- Less-minor tweaks to the filesystem connector to support a new way of specifying workspace names and locations as described in http://www.jboss.org/index.html?module=bb&op=viewtopic&t=158928.  This caused a fair amount of code shuffling within the FS connector classes.

There's also a somewhat dubious change to the filesystem connector that causes the root folder to be returned as type dna:root instead of nt:folder.  This is necessary if the root happens to be the root of a repository workspace, as it is in this test.  This is not appropriate under some projection scenarios (e.g. /foo => /).  This merits some more discussion and thought in the future.

It is also worth noting that our FS connector was modified to return a node with primary type nt:file and a child node of type dna:resource for each file instead of nt:file/nt:resource.  We cannot support nt:resource from our FS connector because nt:resource extends mix:referenceable.  Instead, we use a node type that is identical to nt:resource but without extending mix:referenceable.

> Add integration test that uses the file system connector
> --------------------------------------------------------
>
>                 Key: DNA-476
>                 URL: https://jira.jboss.org/jira/browse/DNA-476
>             Project: DNA
>          Issue Type: Sub-task
>          Components: Connectors, JCR
>    Affects Versions: 0.5
>            Reporter: Randall Hauch
>            Priority: Critical
>             Fix For: 0.6
>
>         Attachments: DNA-476.patch
>
>
> Add a test to use the file system connector.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the dna-issues mailing list