@@ -26,6 +26,8 @@ namespace SemanticKernel.IntegrationTests.Agents;
2626
2727public sealed class OpenAIResponseAgentTests ( ITestOutputHelper output )
2828{
29+ private const string TempOAIKeySkipReason = "Temporarily disabled until the OpenAI API key and credits are restored." ;
30+
2931 private readonly IConfigurationRoot _configuration = new ConfigurationBuilder ( )
3032 . AddJsonFile ( path : "testsettings.json" , optional : true , reloadOnChange : true )
3133 . AddJsonFile ( path : "testsettings.development.json" , optional : true , reloadOnChange : true )
@@ -37,8 +39,8 @@ public sealed class OpenAIResponseAgentTests(ITestOutputHelper output)
3739 /// Integration test for <see cref="OpenAIResponseAgent"/>.
3840 /// </summary>
3941 [ RetryTheory ( typeof ( HttpOperationException ) ) ]
40- [ InlineData ( "What is the capital of France?" , "Paris" , true , true ) ]
41- [ InlineData ( "What is the capital of France?" , "Paris" , true , false ) ]
42+ [ InlineData ( "What is the capital of France?" , "Paris" , true , true , Skip = TempOAIKeySkipReason ) ]
43+ [ InlineData ( "What is the capital of France?" , "Paris" , true , false , Skip = TempOAIKeySkipReason ) ]
4244 [ InlineData ( "What is the capital of France?" , "Paris" , false , true ) ]
4345 [ InlineData ( "What is the capital of France?" , "Paris" , false , false ) ]
4446 public async Task OpenAIResponseAgentInvokeAsync ( string input , string expectedAnswerContains , bool isOpenAI , bool storeEnabled )
@@ -57,8 +59,8 @@ await this.ExecuteAgentAsync(
5759 /// Integration test for <see cref="OpenAIResponseAgent"/> using a thread.
5860 /// </summary>
5961 [ RetryTheory ( typeof ( HttpOperationException ) ) ]
60- [ InlineData ( "What is the capital of France?" , "Paris" , true , true ) ]
61- [ InlineData ( "What is the capital of France?" , "Paris" , true , false ) ]
62+ [ InlineData ( "What is the capital of France?" , "Paris" , true , true , Skip = TempOAIKeySkipReason ) ]
63+ [ InlineData ( "What is the capital of France?" , "Paris" , true , false , Skip = TempOAIKeySkipReason ) ]
6264 [ InlineData ( "What is the capital of France?" , "Paris" , false , true ) ]
6365 [ InlineData ( "What is the capital of France?" , "Paris" , false , false ) ]
6466 public async Task OpenAIResponseAgentInvokeWithThreadAsync ( string input , string expectedAnswerContains , bool isOpenAI , bool storeEnabled )
@@ -106,8 +108,8 @@ public async Task OpenAIResponseAgentInvokeWithThreadAsync(string input, string
106108 /// Integration test for <see cref="OpenAIResponseAgent"/> using a function calling.
107109 /// </summary>
108110 [ RetryTheory ( typeof ( HttpOperationException ) ) ]
109- [ InlineData ( "What is the special soup and how much does it cost?" , "Clam Chowder" , true , true ) ]
110- [ InlineData ( "What is the special soup and how much does it cost?" , "Clam Chowder" , true , false ) ]
111+ [ InlineData ( "What is the special soup and how much does it cost?" , "Clam Chowder" , true , true , Skip = TempOAIKeySkipReason ) ]
112+ [ InlineData ( "What is the special soup and how much does it cost?" , "Clam Chowder" , true , false , Skip = TempOAIKeySkipReason ) ]
111113 [ InlineData ( "What is the special soup and how much does it cost?" , "Clam Chowder" , false , true ) ]
112114 [ InlineData ( "What is the special soup and how much does it cost?" , "Clam Chowder" , false , false ) ]
113115 public async Task OpenAIResponseAgentInvokeWithFunctionCallingAsync ( string input , string expectedAnswerContains , bool isOpenAI , bool storeEnabled )
@@ -156,8 +158,8 @@ public async Task OpenAIResponseAgentInvokeWithFunctionCallingAsync(string input
156158 /// Integration test for <see cref="OpenAIResponseAgent"/> using streaming.
157159 /// </summary>
158160 [ RetryTheory ( typeof ( HttpOperationException ) ) ]
159- [ InlineData ( "What is the capital of France?" , "Paris" , true , true ) ]
160- [ InlineData ( "What is the capital of France?" , "Paris" , true , false ) ]
161+ [ InlineData ( "What is the capital of France?" , "Paris" , true , true , Skip = TempOAIKeySkipReason ) ]
162+ [ InlineData ( "What is the capital of France?" , "Paris" , true , false , Skip = TempOAIKeySkipReason ) ]
161163 [ InlineData ( "What is the capital of France?" , "Paris" , false , true ) ]
162164 [ InlineData ( "What is the capital of France?" , "Paris" , false , false ) ]
163165 public async Task OpenAIResponseAgentInvokeStreamingAsync ( string input , string expectedAnswerContains , bool isOpenAI , bool storeEnabled )
@@ -176,8 +178,8 @@ await this.ExecuteStreamingAgentAsync(
176178 /// Integration test for <see cref="OpenAIResponseAgent"/> adding override instructions to a thread on invocation via custom options.
177179 /// </summary>
178180 [ RetryTheory ( typeof ( HttpOperationException ) ) ]
179- [ InlineData ( true , false ) ]
180- [ InlineData ( true , false ) ]
181+ [ InlineData ( true , false , Skip = TempOAIKeySkipReason ) ]
182+ [ InlineData ( true , false , Skip = TempOAIKeySkipReason ) ]
181183 [ InlineData ( false , true ) ]
182184 [ InlineData ( false , false ) ]
183185 public async Task OpenAIResponseAgentInvokeStreamingWithThreadAsync ( bool isOpenAI , bool storeEnabled )
@@ -224,8 +226,8 @@ public async Task OpenAIResponseAgentInvokeStreamingWithThreadAsync(bool isOpenA
224226 /// Integration test for <see cref="OpenAIResponseAgent"/> adding override instructions to a thread on invocation via custom options.
225227 /// </summary>
226228 [ RetryTheory ( typeof ( HttpOperationException ) ) ]
227- [ InlineData ( "What is the special soup and how much does it cost?" , "Clam Chowder" , true , true ) ]
228- [ InlineData ( "What is the special soup and how much does it cost?" , "Clam Chowder" , true , false ) ]
229+ [ InlineData ( "What is the special soup and how much does it cost?" , "Clam Chowder" , true , true , Skip = TempOAIKeySkipReason ) ]
230+ [ InlineData ( "What is the special soup and how much does it cost?" , "Clam Chowder" , true , false , Skip = TempOAIKeySkipReason ) ]
229231 [ InlineData ( "What is the special soup and how much does it cost?" , "Clam Chowder" , false , true ) ]
230232 [ InlineData ( "What is the special soup and how much does it cost?" , "Clam Chowder" , false , false ) ]
231233 public async Task OpenAIResponseAgentInvokeStreamingWithFunctionCallingAsync ( string input , string expectedAnswerContains , bool isOpenAI , bool storeEnabled )
0 commit comments