Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix erroneous xpath #30

Merged
merged 1 commit into from Jun 3, 2015
Merged

fix erroneous xpath #30

merged 1 commit into from Jun 3, 2015

Conversation

acoburn
Copy link
Contributor

@acoburn acoburn commented Jun 2, 2015

@@ -94,7 +95,7 @@ public void configure() throws Exception {
.filter(not(or(header(IDENTIFIER).startsWith(simple("{{audit.container}}/")),
header(IDENTIFIER).isEqualTo(simple("{{audit.container}}")))))
.to("fcrepo:{{fcrepo.baseUrl}}?preferOmit=PreferContainment")
.setHeader(FCREPO_TRANSFORM).xpath(hasIndexingTransform, String.class, ns)
.setHeader(FCREPO_TRANSFORM).xpath(hasIndexingTransformation, String.class, ns)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have thought this would have been caught in an integration test.
Does one need to be added?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem was that the fixture used the same incorrect property, and there is already a unit test for this. Short of validating against the indexing ontology (which is where this is defined), I'm not sure that an additional integration test would do anything for us.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is to say, the property we're using here is completely arbitrary. It could just as well be ex:foo, but we're using the convention established in the fcrepo-message-consumer.

awoods pushed a commit that referenced this pull request Jun 3, 2015
@awoods awoods merged commit df820d5 into fcrepo-exts:master Jun 3, 2015
@acoburn acoburn deleted the fcrepo-1564 branch August 17, 2015 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants