Java: AzureCognitiveSearchMemoryStoreTests does not adequately mock Azure Cognitive Search Service REST API
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia con AzureCognitiveSearchMemoryStoreTests e analizza il modo in cui il suo HttpPipeline personalizzato gestisce le richieste per SearchIndexAsyncClient. Traccia i metodi REST e gli endpoint invocati, quindi aggiorna la gestione dei test in modo che i singoli test possano fornire risposte specifiche per endpoint che corrispondano a api-version=2023-07-01-Preview e vengano deserializzate correttamente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Java
- Stelle
- 276
- Fork
- 56
- Merge medio
- 17h 45m
- PR unite (30g)
- 4
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/semantic-kernel-java
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
microsoft/semantic-kernel-java#334 · 1 commento ·
-
Feature Parity Inquiry: Multi-Agent Orchestration and Roadmap Alignment with Python/.NET Versions Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
microsoft/semantic-kernel-java#331 · 7 commenti ·
-
bug triage
microsoft/semantic-kernel-java#330 · 3 commenti · 1 assegnatario ·
-
bug triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
microsoft/semantic-kernel-java#328 · 1 commento ·
-
Java: Remove SK planners Aperta
microsoft/semantic-kernel-java#323 · 1 reazione · 2 assegnatari ·