Commit ce57ab9
feat(test): add comprehensive test coverage for OpenSearch 3 client (#15)
* feat(test): add comprehensive test coverage for OpenSearch 3 client
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
* fix(action): correct OpenSearch 3 compatibility issues in HTTP actions 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>
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 524dac4 commit ce57ab9
4 files changed
Lines changed: 678 additions & 9 deletions
File tree
- src
- main/java/org/codelibs/fesen/client/action
- test/java/org/codelibs/fesen/client
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
| 72 | + | |
75 | 73 | | |
76 | 74 | | |
77 | 75 | | |
Lines changed: 25 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
71 | 93 | | |
72 | 94 | | |
73 | 95 | | |
| |||
0 commit comments