Skip to content

test: update health tests - #738

Merged
karel-rehor merged 2 commits into
masterfrom
chore/update_health_tests
Nov 23, 2026
Merged

karel-rehor merged 2 commits into
masterfrom
chore/update_health_tests

Conversation

@karel-rehor

Copy link
Copy Markdown
Contributor

Proposed Changes

The recent influxdbv2 2.10 release introduces changes to the health response message and tightens authorization checks when creating permissions for buckets in an organization.

These changes:

  1. updates assertions in tests/test_health.py
  2. ensures the bucket created in the create authorization bucket test belongs to the same organization used in the permission request object.

Checklist

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

@karel-rehor
karel-rehor requested review from NguyenHoangSon96, alespour and bednar and a balanced review from Copilot November 23, 2026 13:40
@karel-rehor karel-rehor changed the title tests: update health tests test: update health tests Nov 23, 2026

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.

🟢 Approval recommended

No active review issues remain for the integration-test compatibility updates.

No open issues 🎉

What changed in this PR

Updates integration tests to accommodate InfluxDB v2.10 health responses and stricter bucket authorization checks without changing client behavior.

Changes:

  • Accepts both "healthy" and "ready for queries and writes" as valid health messages.
  • Creates the authorization test bucket in the same organization referenced by its permissions.
File Description
tests/​test_health.py Accepts both supported health messages while retaining status and name checks.
tests/​test_AuthorizationApi.py Aligns bucket ownership with the organization used in the permission request.

Review effort: Balanced

@karel-rehor
karel-rehor merged commit 9a0910f into master Nov 23, 2026
15 of 16 checks passed
@karel-rehor
karel-rehor deleted the chore/update_health_tests branch November 23, 2026 13:48
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