Java: AzureCognitiveSearchMemoryStoreTests does not adequately mock Azure Cognitive Search Service REST API
還沒有人認領這個 Issue。
評估
研究方向
從 AzureCognitiveSearchMemoryStoreTests 開始,檢查其自訂 HttpPipeline 如何處理針對 SearchIndexAsyncClient 的要求。追蹤呼叫的 REST 方法和端點,然後更新測試處理方式,讓個別測試能夠提供符合 api-version=2023-07-01-Preview 且可成功反序列化的端點特定回應。
由索引模型根據 Issue 內容生成。
描述
AzureCognitiveSearchMemoryStoreTests works by creating its own HttpPipeline for the SearchIndexAsyncClient. The individual tests can supply their own HttpResponse body, but this is not enough since there may be other REST APIs called from SearchIndexAsyncClient that the unit test does not handle. Additionally, the response bodies do not conform to the current API (api-version=2023-07-01-Preview) so the SearchIndexAsyncClient cannot deserialize the responses.
So, what I think needs to be done is to have broader handling of the requests, allowing the individual test to provide specific responses (as required) for the HTTP method and REST endpoint being invoked.
Was:
AzureCognitiveSearchMemory needs better unit test coverage, including negative tests, i.e., response is something other than HTTP 200.
- 主要語言
- Java
- 星號
- 276
- 分支
- 57
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoft/semantic-kernel-java 的其他 Issue
-
難度 5/5 一週以上 新手友好度 20/100
microsoft/semantic-kernel-java#334 · 1 則留言 ·
-
Feature Parity Inquiry: Multi-Agent Orchestration and Roadmap Alignment with Python/.NET Versions未關閉
難度 5/5 一週以上 新手友好度 25/100
microsoft/semantic-kernel-java#331 · 7 則留言 ·
-
Bug: HTTP 404 Error When Using OpenAI-Compatible Endpoint with Semantic Kernel 1.4.4-RC1可能重新可做 @johnoliver 於 428 天前認領,目前沒有進行中的 PR。 未關閉bug triage
microsoft/semantic-kernel-java#330 · 3 則留言 · 已指派 1 人 ·
-
bug triage
難度 5/5 一週以上 新手友好度 20/100
microsoft/semantic-kernel-java#328 · 1 則留言 ·
-
Java: Remove SK planners可能已有人在做 @johnoliver 於 482 天前認領。 未關閉
microsoft/semantic-kernel-java#323 · 1 個 reaction · 已指派 2 人 ·
查看 microsoft/semantic-kernel-java 的全部 Issue
相似的 Issue
-
Mend: dependency security vulnerability
難度 2/5 1-3 小時 新手友好度 62/100
opfab/operatorfabric-core#10653 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
-
GeminiUtil placeholder user turn ("Continue output. DO NOT look at this line ...") is flagged by prompt injection filters可能已有人在做 @innoprej 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 78/100
salesforce/multicloudj#667 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 2 天內回覆