Azure-Samples / chat-with-your-data-solution-accelerator

A Solution Accelerator for the RAG pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences. This includes most common requirements and best practices.
https://azure.microsoft.com/products/search
MIT License
624 stars 294 forks source link

Add Stubbed Functional test suite for backend API #420

Closed adamdougal closed 2 months ago

adamdougal commented 2 months ago

Motivation

To have ultimate confidence that changes are non-breaking, a stubbed functional test suite should be added. This would reduce the manual testing burden when reviewing PR's, especially dependabot. The benefits of having this in addition to the E2E test suite (https://github.com/Azure-Samples/chat-with-your-data-solution-accelerator/issues/419) are:

How would you feel if this feature request was implemented?

reacting

Requirements

Tasks

cecheta commented 2 months ago

For local storage we can look at using Azurite

adamdougal commented 2 months ago

I've unfortunately run into some issues implementing a test against the /api/conversation/custom endpoint.

adamdougal commented 2 months ago

21st March 2024 Update: I managed to fix the SSL issue. I was wrong when I stated that we needed a .crt file. I was incorrectly generating the .pem file which is why it was invalid.

I have now raised a PR testing the /conversation/custom endpoint. I will now work on verifying the downstream responses that have been made. It's not currently supported by the mock library but I have raised an issue for it https://github.com/csernazs/pytest-httpserver/issues/293.

adamdougal commented 2 months ago

22nd March 2024 Update

reechamishra commented 2 months ago

Based on feedback from team , moving it to DONE status