Commit bdd4332
authored
feat(action): implement View, Ingestion, Scale and RemoteStore APIs (#16)
* feat(action): implement View, Ingestion, Scale and RemoteStore APIs for OpenSearch 3
Add HTTP action implementations for OpenSearch 3 APIs that were previously
throwing UnsupportedOperationException:
- View API: create, get, delete, update, search, and list view names
- Streaming Ingestion API: pause, resume, and get ingestion state
- Scale Index API: search-only scaling support
- Remote Store Metadata API: cluster remote store metadata retrieval
- CreateIndex: add support for context parameter in OpenSearch 3
Includes comprehensive unit tests for all new actions and
ByteArrayStreamOutput.
* fix: address Codex review findings for response parsing and test quality
- HttpGetIngestionStateAction: fully parse ingestion_state per-shard data
and next_page_token instead of returning empty arrays
- HttpRemoteStoreMetadataAction: fully parse indices/shards metadata
instead of skipping the indices section
- HttpListViewNamesAction: remove trailing slash from /views/ endpoint
- HttpScaleIndexAction: add setAccessible for package-private class access
and document why reflection is required
- HttpCreateViewAction/HttpUpdateViewAction: extract buildRequestBody()
for testability
- HttpListViewNamesAction: extract parseViewNames() for testability
- Update all tests to exercise production code instead of duplicated
helpers, add payload parsing and URL encoding coverage1 parent ce57ab9 commit bdd4332
29 files changed
Lines changed: 2537 additions & 51 deletions
File tree
- src
- main/java/org/codelibs/fesen/client
- action
- io/stream
- test/java/org/codelibs/fesen/client
- action
- io/stream
Lines changed: 25 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
289 | 293 | | |
290 | 294 | | |
291 | 295 | | |
| |||
339 | 343 | | |
340 | 344 | | |
341 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
342 | 350 | | |
343 | 351 | | |
344 | 352 | | |
| |||
1521 | 1529 | | |
1522 | 1530 | | |
1523 | 1531 | | |
1524 | | - | |
| 1532 | + | |
1525 | 1533 | | |
1526 | 1534 | | |
1527 | 1535 | | |
1528 | 1536 | | |
1529 | 1537 | | |
1530 | | - | |
| 1538 | + | |
1531 | 1539 | | |
1532 | 1540 | | |
1533 | 1541 | | |
| |||
2087 | 2095 | | |
2088 | 2096 | | |
2089 | 2097 | | |
2090 | | - | |
| 2098 | + | |
2091 | 2099 | | |
2092 | 2100 | | |
2093 | 2101 | | |
2094 | 2102 | | |
2095 | 2103 | | |
2096 | | - | |
| 2104 | + | |
2097 | 2105 | | |
2098 | 2106 | | |
2099 | 2107 | | |
2100 | 2108 | | |
2101 | 2109 | | |
2102 | | - | |
| 2110 | + | |
2103 | 2111 | | |
2104 | 2112 | | |
2105 | 2113 | | |
2106 | 2114 | | |
2107 | 2115 | | |
2108 | | - | |
| 2116 | + | |
2109 | 2117 | | |
2110 | 2118 | | |
2111 | 2119 | | |
2112 | 2120 | | |
2113 | 2121 | | |
2114 | | - | |
| 2122 | + | |
2115 | 2123 | | |
2116 | 2124 | | |
2117 | 2125 | | |
2118 | 2126 | | |
2119 | | - | |
| 2127 | + | |
2120 | 2128 | | |
2121 | 2129 | | |
2122 | 2130 | | |
2123 | 2131 | | |
2124 | 2132 | | |
2125 | | - | |
| 2133 | + | |
2126 | 2134 | | |
2127 | 2135 | | |
2128 | 2136 | | |
2129 | 2137 | | |
2130 | 2138 | | |
2131 | | - | |
| 2139 | + | |
2132 | 2140 | | |
2133 | 2141 | | |
2134 | 2142 | | |
2135 | 2143 | | |
2136 | | - | |
| 2144 | + | |
2137 | 2145 | | |
2138 | 2146 | | |
2139 | 2147 | | |
2140 | 2148 | | |
2141 | | - | |
| 2149 | + | |
2142 | 2150 | | |
2143 | 2151 | | |
2144 | 2152 | | |
2145 | 2153 | | |
2146 | | - | |
| 2154 | + | |
2147 | 2155 | | |
2148 | 2156 | | |
2149 | 2157 | | |
2150 | 2158 | | |
2151 | | - | |
| 2159 | + | |
2152 | 2160 | | |
2153 | 2161 | | |
2154 | 2162 | | |
2155 | 2163 | | |
2156 | | - | |
| 2164 | + | |
2157 | 2165 | | |
2158 | 2166 | | |
2159 | 2167 | | |
2160 | 2168 | | |
2161 | | - | |
| 2169 | + | |
2162 | 2170 | | |
2163 | 2171 | | |
2164 | 2172 | | |
2165 | 2173 | | |
2166 | | - | |
| 2174 | + | |
2167 | 2175 | | |
2168 | 2176 | | |
2169 | 2177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
108 | 119 | | |
109 | 120 | | |
110 | 121 | | |
| |||
217 | 228 | | |
218 | 229 | | |
219 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
220 | 250 | | |
221 | 251 | | |
222 | 252 | | |
| |||
1018 | 1048 | | |
1019 | 1049 | | |
1020 | 1050 | | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
1021 | 1102 | | |
1022 | 1103 | | |
1023 | 1104 | | |
| |||
1288 | 1369 | | |
1289 | 1370 | | |
1290 | 1371 | | |
1291 | | - | |
| 1372 | + | |
1292 | 1373 | | |
1293 | 1374 | | |
1294 | 1375 | | |
1295 | 1376 | | |
1296 | | - | |
| 1377 | + | |
1297 | 1378 | | |
1298 | 1379 | | |
1299 | 1380 | | |
1300 | 1381 | | |
1301 | 1382 | | |
1302 | | - | |
| 1383 | + | |
1303 | 1384 | | |
1304 | 1385 | | |
1305 | 1386 | | |
1306 | 1387 | | |
1307 | 1388 | | |
1308 | | - | |
| 1389 | + | |
1309 | 1390 | | |
1310 | 1391 | | |
1311 | 1392 | | |
1312 | 1393 | | |
1313 | | - | |
| 1394 | + | |
1314 | 1395 | | |
1315 | 1396 | | |
1316 | 1397 | | |
0 commit comments