Skip to content
This repository has been archived by the owner on Jul 14, 2024. It is now read-only.

ResourceModelTest index test fails, should disable _aliasOf criteria #160

Open
mdutoo opened this issue Mar 9, 2016 · 0 comments
Open

Comments

@mdutoo
Copy link
Collaborator

mdutoo commented Mar 9, 2016

The new alias feature makes ResourceModelTest's index test fail in OW Jenkins (but not on my machine, probably because of having a different MongoDB version ?):

Tests run: 10, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.493 sec <<< FAILURE!
testImpactedModelAndIndexUpdate(org.oasis.datacore.rest.server.ResourceModelTest) Time elapsed: 0.938 sec <<< FAILURE!
java.lang.AssertionError: city should also have index on city:founded
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.oasis.datacore.rest.server.ResourceModelTest.testImpactedModelAndIndexUpdate(ResourceModelTest.java:418)

=> allow LdpEntityQueryImpl to disable criteria on _aliasOf, only in test (and devmode):
https://github.com/ozwillo/ozwillo-datacore/blob/master/ozwillo-datacore-rest-server/src/main/java/org/oasis/datacore/core/entity/query/ldp/LdpEntityQueryServiceImpl.java#L712

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant