Closed saimedhi closed 8 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 72.14%. Comparing base (
d36a882
) to head (9050fc6
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Verified that this PR is not causing additional test failures.
Better. When it's a regex, ignore spaces, otherwise match.
Description
Fixed YAML test runner for failing search/highlight/30_max_analyzed_offset[5] test in integration tests against an unreleased versions 2.x, main of OpenSearch.
Issues Resolved
Related to https://github.com/opensearch-project/opensearch-py/issues/686
Additional context
This test case asserts
match: {hits.hits.0.highlight.field1.0: "The <em>quick</em> "}
Yaml test runner is considering it as
match: {hits.hits.0.highlight.field1.0: "The <em>quick</em>"}
without space at the end because of value.strip() here.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.