Java: AzureCognitiveSearchMemoryStoreTests does not adequately mock Azure Cognitive Search Service REST API
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu với AzureCognitiveSearchMemoryStoreTests và kiểm tra cách HttpPipeline tùy chỉnh của nó xử lý các yêu cầu cho SearchIndexAsyncClient. Truy vết các phương thức REST và endpoint được gọi, sau đó cập nhật phần xử lý kiểm thử để các kiểm thử riêng lẻ có thể cung cấp các phản hồi dành riêng cho endpoint, khớp với api-version=2023-07-01-Preview và được deserialize thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 276
- Fork
- 56
- Merge trung bình
- 17 giờ 45 phút
- Pull request đã merge (30 ngày)
- 4
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/semantic-kernel-java
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
microsoft/semantic-kernel-java#334 · 1 bình luận ·
-
Feature Parity Inquiry: Multi-Agent Orchestration and Roadmap Alignment with Python/.NET Versions Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
microsoft/semantic-kernel-java#331 · 7 bình luận ·
-
bug triage
microsoft/semantic-kernel-java#330 · 3 bình luận · 1 người được giao ·
-
agents without chatcompletion ? Đang mởbug triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
microsoft/semantic-kernel-java#328 · 1 bình luận ·
-
Java: Remove SK planners Đang mở
microsoft/semantic-kernel-java#323 · 1 reaction · 2 người được giao ·
Tất cả issue của microsoft/semantic-kernel-java
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
elastic/gradle-plugins#157 ·
-
enhancement Tools
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
apache/rocketmq-dashboard#5008 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
DETECT_PARAMETER_NAMES=false silently disables @ConstructorProperties-based Creator detection too Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
FasterXML/jackson-databind#6229 ·