From 3c26118af36359930000e236ed364215c253355f Mon Sep 17 00:00:00 2001 From: Hien To Date: Mon, 15 Jul 2024 17:54:12 +0700 Subject: [PATCH 1/2] Test endpoint /v1 --- .github/workflows/cortex-js-openai-coverage.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cortex-js-openai-coverage.yml b/.github/workflows/cortex-js-openai-coverage.yml index 6007cfd9a..fa6421d21 100644 --- a/.github/workflows/cortex-js-openai-coverage.yml +++ b/.github/workflows/cortex-js-openai-coverage.yml @@ -63,12 +63,13 @@ jobs: cat ../coverage/pytest.ini >> pytest.ini echo "rp_api_key = ${{ secrets.RP_API_KEY }}" >> pytest.ini echo "rp_endpoint = ${{ secrets.RP_ENDPOINT }}" >> pytest.ini - + pytest --endpoint "$ENDPOINTS" --reportportal --html=report.html -v || true kill $cortex_pid deactivate env: ENDPOINTS: ${{ github.event.inputs.endpoints }} + TEST_API_BASE_URL: http://127.0.0.1:4010/v1 - name: Collect RP artifacts From b93cd8a9e69f7e813ef453aed57ad24ee0eb91a9 Mon Sep 17 00:00:00 2001 From: Van Pham <64197333+Van-QA@users.noreply.github.com> Date: Mon, 15 Jul 2024 18:11:34 +0700 Subject: [PATCH 2/2] Update test_embeddings.py --- coverage/endpoint_mapping.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coverage/endpoint_mapping.json b/coverage/endpoint_mapping.json index b0b572dff..14e3e92cd 100644 --- a/coverage/endpoint_mapping.json +++ b/coverage/endpoint_mapping.json @@ -1,6 +1,6 @@ { "/embeddings": [ - "test_embedding.py" + "test_embeddings.py" ], "/audio/translations": [ "test_translations.py" @@ -72,4 +72,4 @@ "test_azure.py", "test_deepcopy.py" ] - } \ No newline at end of file + }