Repository navigation
[ci] Use real OpenAI credencials for Lighspeed application tests - #150
malingatembo wants to merge 2 commits into
Conversation
Disabled the mock provider and use gpt-4o-mini throught the OpenAi end point. Instead of the dummy tocken, provider secrete created through the pre-run is used. Signed-off-by: malingatembo <tembomalinga@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: malingatembo The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
/ok-to-test |
|
We need to wait for this in order to be able to verify this PR -> #151 (currently in draft; once we confirm it is a valid fix, it gets opened). |
|
recheck |
lpiwowar
left a comment
There was a problem hiding this comment.
It looks like there is something wrong with the configuration or OpenStack Lightspeed can not reach OpenAI [1]. A bit of investigation is needed (maybe an autohold needed?):
<testcase classname="src.rhos_lightspeed_tests.tests.integration.test_okp_virtualization_filter.TestOKPVirtualizationFilter" name="test_query_excludes_openshift_virtualization_docs[What tools can I use to pause, resume, or stop a VM?]" time="17.318">
<failure message="assert 500 == 200 + where 500 = <Response [500]>.status_code">
src/rhos_lightspeed_tests/tests/integration/test_okp_virtualization_filter.py:36: in test_query_excludes_openshift_virtualization_docs assert response.status_code == 200 E assert 500 == 200 E + where 500 = <Response [500]>.status_code
</failure>
</testcase>
Trim surrounding whitespace from the token and disable ansibles automatic stdin /n. Signed-off-by: malingatembo <tembomalinga@gmail.com>
|
Thanks for the review @lpiwowar The Secret-creation task passes the key through stdin, and ansible adds a [1] Ansible official documentation: |
Disabled the mock provider and use gpt-4o-mini throught the OpenAi end point. Instead of the dummy tocken, provider secrete created through the pre-run is used.
Related-Issue: OSPRH-40297