Skip to content

Commit 2a9b1f2

Browse files
increase live test timeout + fixes for GA version (#34861)
1 parent 4714399 commit 2a9b1f2

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

sdk/openai/azure-openai/tests/test_chat_completions.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -713,8 +713,11 @@ def test_chat_completion_byod(self, client, api_type, api_version, **kwargs):
713713
"type": "azure_search",
714714
"parameters": {
715715
"endpoint": os.environ[ENV_AZURE_OPENAI_SEARCH_ENDPOINT],
716-
"key": os.environ[ENV_AZURE_OPENAI_SEARCH_KEY],
717-
"index_name": os.environ[ENV_AZURE_OPENAI_SEARCH_INDEX]
716+
"index_name": os.environ[ENV_AZURE_OPENAI_SEARCH_INDEX],
717+
"authentication": {
718+
"type": "api_key",
719+
"key": os.environ[ENV_AZURE_OPENAI_SEARCH_KEY],
720+
}
718721
}
719722
}
720723
],
@@ -749,8 +752,11 @@ def test_streamed_chat_completions_byod(self, client, api_type, api_version, **k
749752
"type": "azure_search",
750753
"parameters": {
751754
"endpoint": os.environ[ENV_AZURE_OPENAI_SEARCH_ENDPOINT],
752-
"key": os.environ[ENV_AZURE_OPENAI_SEARCH_KEY],
753-
"index_name": os.environ[ENV_AZURE_OPENAI_SEARCH_INDEX]
755+
"index_name": os.environ[ENV_AZURE_OPENAI_SEARCH_INDEX],
756+
"authentication": {
757+
"type": "api_key",
758+
"key": os.environ[ENV_AZURE_OPENAI_SEARCH_KEY],
759+
}
754760
}
755761
}
756762
],

sdk/openai/azure-openai/tests/test_chat_completions_async.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,11 @@ async def test_chat_completion_byod(self, client_async, api_type, api_version, *
729729
"type": "azure_search",
730730
"parameters": {
731731
"endpoint": os.environ[ENV_AZURE_OPENAI_SEARCH_ENDPOINT],
732-
"key": os.environ[ENV_AZURE_OPENAI_SEARCH_KEY],
733-
"index_name": os.environ[ENV_AZURE_OPENAI_SEARCH_INDEX]
732+
"index_name": os.environ[ENV_AZURE_OPENAI_SEARCH_INDEX],
733+
"authentication": {
734+
"type": "api_key",
735+
"key": os.environ[ENV_AZURE_OPENAI_SEARCH_KEY],
736+
}
734737
}
735738
}
736739
],
@@ -766,8 +769,11 @@ async def test_streamed_chat_completions_byod(self, client_async, api_type, api_
766769
"type": "azure_search",
767770
"parameters": {
768771
"endpoint": os.environ[ENV_AZURE_OPENAI_SEARCH_ENDPOINT],
769-
"key": os.environ[ENV_AZURE_OPENAI_SEARCH_KEY],
770-
"index_name": os.environ[ENV_AZURE_OPENAI_SEARCH_INDEX]
772+
"index_name": os.environ[ENV_AZURE_OPENAI_SEARCH_INDEX],
773+
"authentication": {
774+
"type": "api_key",
775+
"key": os.environ[ENV_AZURE_OPENAI_SEARCH_KEY],
776+
}
771777
}
772778
}
773779
],

sdk/openai/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ extends:
44
template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml
55
parameters:
66
ServiceDirectory: openai
7+
TestTimeoutInMinutes: 200
78
ToxTestEnv: optional
89
MatrixFilters:
910
- PythonVersion=3.11.*

0 commit comments

Comments
 (0)