Skip to content

Fix test failure related to change in core to add content-encoding to response headers#5897

Merged
DarshitChanpura merged 3 commits intoopensearch-project:mainfrom
cwperks:add-content-encoding
Jan 5, 2026
Merged

Fix test failure related to change in core to add content-encoding to response headers#5897
DarshitChanpura merged 3 commits intoopensearch-project:mainfrom
cwperks:add-content-encoding

Conversation

@cwperks
Copy link
Copy Markdown
Member

@cwperks cwperks commented Jan 5, 2026

Description

Fix test failure related to change in core to add content-encoding to response headers

TBD will link to related change in core

  • Category (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)

Test fix

Check List

  • New functionality includes testing
  • New functionality has been documented
  • New Roles/Permissions have a corresponding security dashboards plugin PR
  • API changes companion pull request created
  • Commits are signed per the DCO using --signoff

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.

… response headers

Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
reta
reta previously approved these changes Jan 5, 2026
@cwperks
Copy link
Copy Markdown
Member Author

cwperks commented Jan 5, 2026

Looks related to opensearch-project/OpenSearch#20358 based on the tests that were changed in HttpCompressionIT.

@cwperks
Copy link
Copy Markdown
Member Author

cwperks commented Jan 5, 2026

Pushing a fix to resolve remaining failures:

Tests with failures:
 - org.opensearch.security.dlic.dlsfls.DlsFlsCrossClusterSearchTest.testCcsDifferentConfigBoth
 - org.opensearch.security.dlic.dlsfls.DlsFlsCrossClusterSearchTest.testCcs
 - org.opensearch.security.dlic.dlsfls.DlsFlsCrossClusterSearchTest.testCcsDifferentConfig
 - org.opensearch.security.dlic.dlsfls.DlsFlsCrossClusterMinimalRoundtripSearchTests.testCcsDifferentConfigBoth
 - org.opensearch.security.dlic.dlsfls.DlsFlsCrossClusterMinimalRoundtripSearchTests.testCcs
 - org.opensearch.security.dlic.dlsfls.DlsFlsCrossClusterMinimalRoundtripSearchTests.testCcsDifferentConfig

Signed-off-by: Craig Perkins <cwperx@amazon.com>
@cwperks
Copy link
Copy Markdown
Member Author

cwperks commented Jan 5, 2026

Took this opportunity to also refactor with TextBlocks for readability.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.70%. Comparing base (7f168b1) to head (1c8935e).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5897      +/-   ##
==========================================
+ Coverage   73.68%   73.70%   +0.02%     
==========================================
  Files         438      438              
  Lines       26649    26656       +7     
  Branches     3939     3943       +4     
==========================================
+ Hits        19635    19648      +13     
+ Misses       5141     5136       -5     
+ Partials     1873     1872       -1     

see 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@DarshitChanpura DarshitChanpura merged commit bc4c80b into opensearch-project:main Jan 5, 2026
112 of 113 checks passed
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