Skip to content

[Fix] Make HTTP status assertion protocol-independent - #5623

Merged
penghuo merged 1 commit into
opensearch-project:mainfrom
ahkcs:fix/issue-5620-http-status-assertion
Jul 14, 2026
Merged

[Fix] Make HTTP status assertion protocol-independent#5623
penghuo merged 1 commit into
opensearch-project:mainfrom
ahkcs:fix/issue-5620-http-status-assertion

Conversation

@ahkcs

@ahkcs ahkcs commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Description

Replace the protocol-specific ResponseException message check with an assertion on the numeric HTTP status code. Security-enabled clusters can negotiate HTTP/2, which caused this test to fail despite correctly receiving HTTP 400.

Related Issues

Resolves #5620

Testing

  • ./gradlew :integ-test:spotlessJavaCheck :integ-test:compileTestJava
  • ./gradlew :integ-test:integTest -Dsecurity.enabled=true --tests org.opensearch.sql.calcite.remote.CalcitePPLCaseFunctionIT.testCaseWithIncompatibleBranchTypesRejectsCleanly

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • New functionality has javadoc added.
  • New functionality has a user manual doc added.
  • New PPL command checklist all confirmed.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff or -s.
  • Public documentation issue/PR created.

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.

Signed-off-by: Kai Huang <ahkcs@amazon.com>
@github-actions

Copy link
Copy Markdown
Contributor

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🧪 No relevant tests
🔒 No security concerns identified
✅ No TODO sections
🔀 No multiple PR themes
⚡ No major issues detected

@ahkcs ahkcs added the testing Related to improving software testing label Jul 14, 2026
@penghuo
penghuo merged commit bf2111b into opensearch-project:main Jul 14, 2026
43 of 44 checks passed
asifabashar pushed a commit to asifabashar/sql that referenced this pull request Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Related to improving software testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AUTOCUT] Integration Test Failed for sql-3.8.0

2 participants