Skip to content

test: update health tests - #949

Merged
karel-rehor merged 6 commits into
masterfrom
chore/update-health-tests
Nov 26, 2026
Merged

karel-rehor merged 6 commits into
masterfrom
chore/update-health-tests

Conversation

@karel-rehor

Copy link
Copy Markdown
Contributor

Proposed Changes

Update Health and Authorization tests to match recent changes in influxdb 2.10 release

Checklist

  • [ ] CHANGELOG.md updated Mainly test updates
  • Rebased/mergeable
  • A test has been added if appropriate
  • mvn test completes successfully
  • Commit messages are conventional
  • Sign CLA (if not already signed)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unused imports in both integration test files violate the repository’s Checkstyle rule and need to be removed.

2 open issues
What changed in this PR

Updates client integration tests for InfluxDB 2.10 while retaining compatibility with earlier health responses.

Changes:

  • Accepts both legacy and new health messages across Java, reactive, Kotlin, and Scala clients.
  • Adjusts organization permissions and scraper test setup for updated server behavior.
  • Adds a Karaf version property.
File Description
pom.xml Defines karaf.version as 4.4.11.
client/​src/​test/​java/​com/​influxdb/​client/​ITWriteQueryApi.java Omits orgID from organization permission requests.
client/​src/​test/​java/​com/​influxdb/​client/​ITScraperTargetsApi.java Creates and cleans up a bucket belonging to the test organization.
client/​src/​test/​java/​com/​influxdb/​client/​ITInfluxDBClient.java Accepts both supported health messages.
client-scala/​src/​test/​scala/​com/​influxdb/​client/​scala/​ITInfluxDBClientScala.scala Updates Scala health-message assertions.
client-reactive/​src/​test/​java/​com/​influxdb/​client/​reactive/​ITInfluxDBReactiveClient.java Updates reactive health-message assertions.
client-kotlin/​src/​test/​kotlin/​com/​influxdb/​client/​kotlin/​ITInfluxDBClientKotlin.kt Updates Kotlin health-message assertions.

Review effort: Balanced

Comment on lines +32 to +33
import java.util.ArrayList;
import java.util.List;

@alespour alespour left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Unused imports a nit you can address or not.

@codecov-commenter

codecov-commenter commented Nov 26, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.17%. Comparing base (cf1d92d) to head (52873ca).
⚠️ Report is 1 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #949   +/-   ##
=========================================
  Coverage     88.17%   88.17%           
  Complexity      744      744           
=========================================
  Files           175      175           
  Lines          7402     7402           
  Branches        438      438           
=========================================
  Hits           6527     6527           
  Misses          737      737           
  Partials        138      138           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@karel-rehor
karel-rehor merged commit 680c895 into master Nov 26, 2026
10 checks passed
@karel-rehor
karel-rehor deleted the chore/update-health-tests branch November 26, 2026 13:05
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.

4 participants