You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2015/02/04 10:52:34 UTC

[jira] [Updated] (OAK-2296) Update sql2.txt test to account for name property presence in non test nodes

     [ https://issues.apache.org/jira/browse/OAK-2296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chetan Mehrotra updated OAK-2296:
---------------------------------
    Fix Version/s:     (was: 1.2)
                   1.1.6

> Update sql2.txt test to account for name property presence in non test nodes
> ----------------------------------------------------------------------------
>
>                 Key: OAK-2296
>                 URL: https://issues.apache.org/jira/browse/OAK-2296
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: query
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.1.6
>
>         Attachments: OAK-2296.patch
>
>
> Test executed from sql2.txt [1] fail for some cases if property names used in test data are also used in non test data. For example when running with oak-lucene where the index definition also uses {{name}} property then test case fails as Lucene search also includes index related nodes.
> As a fix testcase should be modified to include testdata path restriction
> {noformat}
> select [jcr:path]
>   from [nt:base]
>   where [name] is not null union all select [jcr:path]
>   from [nt:base]
>   where [name] is not null
> /oak:index/test-index/indexRules/nt:base/properties/allProps
> /oak:index/test-index/indexRules/nt:base/properties/allProps
> /oak:index/test-index/indexRules/nt:base/properties/prop1
> /oak:index/test-index/indexRules/nt:base/properties/prop1
> /test/a
> /test/a
> /test/b
> /test/b
> {noformat}
> [1] https://svn.apache.org/repos/asf/jackrabbit/oak/trunk/oak-core/src/test/resources/org/apache/jackrabbit/oak/query/sql2.txt



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)