Closed adamdougal closed 2 months ago
I've unfortunately run into some issues implementing a test against the /api/conversation/custom
endpoint.
azure.core.exceptions.ServiceRequestError: Bearer token authentication is not permitted for non-TLS protected (non-https) URLs
pytest_httpserver
does support running with https enabled https://pytest-httpserver.readthedocs.io/en/latest/howto.html#running-an-https-servertrustme
library only seems to provide us with .pem
files, not the .crt
files required. 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.
22nd March 2024 Update
Based on feedback from team , moving it to DONE status
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?
Requirements
Tasks
/api/config
(basic test framework) - https://github.com/Azure-Samples/chat-with-your-data-solution-accelerator/pull/438/api/conversation/custom
(downstream mock framework required) - https://github.com/Azure-Samples/chat-with-your-data-solution-accelerator/pull/504/api/conversation/custom
- https://github.com/Azure-Samples/chat-with-your-data-solution-accelerator/pull/520