Skip to content

feat(test): add comprehensive test coverage for OpenSearch 3 client#15

Merged
marevol merged 2 commits into
mainfrom
claude/add-opensearch-3-tests-5PfwD
Mar 15, 2026
Merged

feat(test): add comprehensive test coverage for OpenSearch 3 client#15
marevol merged 2 commits into
mainfrom
claude/add-opensearch-3-tests-5PfwD

Conversation

@marevol
Copy link
Copy Markdown
Contributor

@marevol marevol commented Mar 14, 2026

Add 22 new integration tests to OpenSearch3ClientTest covering
previously untested HTTP action APIs and search query variations:

  • Cluster APIs: allocation explain, search shards, cluster state,
    cluster health with index, cluster stats sync
  • Indices APIs: segments, shard stores, recovery, indices stats sync
  • Document APIs: term vectors, multi term vectors, multi-get with
    source filtering, bulk with mixed operations
  • Search queries: source filtering, term/range queries, bool queries,
    exists query, prefix/wildcard queries, IDs query, pagination, sorting
  • Admin: simulate pipeline, index template CRUD

https://claude.ai/code/session_018yy83C9EeDpJPn3EXQS66L

claude and others added 2 commits March 14, 2026 09:45
Add 22 new integration tests to OpenSearch3ClientTest covering
previously untested HTTP action APIs and search query variations:

- Cluster APIs: allocation explain, search shards, cluster state,
  cluster health with index, cluster stats sync
- Indices APIs: segments, shard stores, recovery, indices stats sync
- Document APIs: term vectors, multi term vectors, multi-get with
  source filtering, bulk with mixed operations
- Search queries: source filtering, term/range queries, bool queries,
  exists query, prefix/wildcard queries, IDs query, pagination, sorting
- Admin: simulate pipeline, index template CRUD

https://claude.ai/code/session_018yy83C9EeDpJPn3EXQS66L
…s and tests

- Use writeVInt instead of writeInt for BroadcastResponse fields in HttpIndicesSegmentsAction
- Remove redundant index_pattern query param in HttpPutIndexTemplateAction (included in body)
- Implement shard counting in HttpRecoveryAction instead of returning zeros
- Update test API calls for OpenSearch 3 (setSelectedFields, setMapping signature)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@marevol marevol merged commit ce57ab9 into main Mar 15, 2026
1 check 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.

2 participants