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

HSEARCH-3467 Add tests for all the attributes validated by the Elasticsearch schema validator #1953

Merged
merged 6 commits into from
Apr 26, 2019

Conversation

fax4ever
Copy link
Contributor

@fax4ever fax4ever commented Apr 15, 2019

https://hibernate.atlassian.net/browse/HSEARCH-3467

Still in preview, since several attributes have not been tested yet: done

  1. Property type attributes: boots removed!, store, null_value, fielddata, doc_values, normalizer done!.
  2. Normalizer definition attributes: char_filter, token_filter. already exists
  3. Analyzer definition attributes: char_filter, token_filter, tokenizer. already exists

@coveralls
Copy link

coveralls commented Apr 15, 2019

Pull Request Test Coverage Report for Build 7

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 5 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.003%) to 88.588%

Files with Coverage Reduction New Missed Lines %
backend/elasticsearch/src/main/java/org/hibernate/search/backend/elasticsearch/index/admin/impl/ElasticsearchSchemaValidatorImpl.java 5 85.56%
Totals Coverage Status
Change from base Build 219: 0.003%
Covered Lines: 16970
Relevant Lines: 19156

💛 - Coveralls

@fax4ever fax4ever changed the title 3467 test es schema validator HSEARCH-3467 Add tests for all the attributes validated by the Elasticsearch schema validator Apr 15, 2019
Copy link
Member

@yrodiere yrodiere left a comment

Choose a reason for hiding this comment

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

Looks good so far. I don't really understand why you changed the structure of the tests, but I guess you have your reasons.

Be careful about validation of analysis definitions, though: some (all?) of it is already addressed in separate tests:

  • org.hibernate.search.integrationtest.backend.elasticsearch.management.ElasticsearchNormalizerDefinitionValidationIT
  • org.hibernate.search.integrationtest.backend.elasticsearch.management.ElasticsearchAnalyzerDefinitionValidationIT

@fax4ever
Copy link
Contributor Author

@yrodiere thank you for the review.
I ran this build: http://ci.hibernate.org/view/Search/job/hibernate-search/job/PR-1953/5/parameters/
to check the behavior for all supported ES versions.

Copy link
Member

@yrodiere yrodiere left a comment

Choose a reason for hiding this comment

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

I added a few comments; most of them are just nitpicking so feel free to ignore if you disagree, but the ones about fielddata and docvalues are, I think, important.

@fax4ever fax4ever force-pushed the 3467-test-es-schema-validator branch from b02927d to 504d785 Compare April 26, 2019 09:17
@fax4ever
Copy link
Contributor Author

Thanks @yrodiere. I think I've addressed the points here.
I started an new full built: http://ci.hibernate.org/job/hibernate-search/view/change-requests/job/PR-1953/7.

@yrodiere yrodiere merged commit 53f25eb into hibernate:master Apr 26, 2019
@yrodiere
Copy link
Member

Merged, thanks!

@fax4ever
Copy link
Contributor Author

Thanks @yrodiere. I'm reviewing yours.

@fax4ever fax4ever deleted the 3467-test-es-schema-validator branch April 26, 2019 11:16
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.

3 participants