Repository navigation
test: update health tests - #949
Conversation
There was a problem hiding this comment.
🟡 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
| import java.util.ArrayList; | ||
| import java.util.List; |
alespour
left a comment
There was a problem hiding this comment.
LGTM. Unused imports a nit you can address or not.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|

Proposed Changes
Update Health and Authorization tests to match recent changes in influxdb 2.10 release
Checklist
[ ] CHANGELOG.md updatedMainly test updatesmvn testcompletes successfully