aglinxinyuan opened a new pull request, #7156: URL: https://github.com/apache/texera/pull/7156
### What changes were proposed in this PR? Adds focused unit coverage for the OpenAI assistant handshake: a successful local `/models` response verifies the GET request and normalized bearer key, while non-success and malformed-URL paths verify the fallback result. ### Any related issues, documentation, discussions? Closes #7152 ### How was this PR tested? - `WorkflowExecutionService/testOnly org.apache.texera.web.resource.aiassistant.AiAssistantManagerSpec` — 3 succeeded. - `WorkflowExecutionService/Test/scalafmtCheck` and `WorkflowExecutionService/Test/scalafix --check`. Mutation proof: | Production mutation | Result | | --- | --- | | Changed the HTTP method from `GET` to `POST` | 1 test failed | | Reversed the `responseCode == 200` condition | 2 tests failed | | Returned `OpenAI` from the exception fallback | 1 test failed | Each mutation was reverted before the final green test run. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Codex (GPT-5) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
