File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
tests-integration/Elastic.Assembler.IntegrationTests Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 22// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
33// See the LICENSE file in the project root for more information
44
5+ using System . Configuration ;
56using Aspire . Hosting ;
67using Aspire . Hosting . ApplicationModel ;
78using Aspire . Hosting . Testing ;
1112using Microsoft . Extensions . DependencyInjection ;
1213using Microsoft . Extensions . Logging ;
1314using static Elastic . Documentation . Aspire . ResourceNames ;
15+ using ConfigurationManager = Microsoft . Extensions . Configuration . ConfigurationManager ;
1416
1517[ assembly: CaptureConsole , AssemblyFixture ( typeof ( Elastic . Assembler . IntegrationTests . DocumentationFixture ) ) ]
1618
@@ -32,6 +34,15 @@ public async ValueTask InitializeAsync()
3234 options . DisableDashboard = true ;
3335 options . AllowUnsecuredTransport = true ;
3436 options . EnableResourceLogging = true ;
37+ if ( ! string . IsNullOrEmpty ( Environment . GetEnvironmentVariable ( "CI" ) ) )
38+ {
39+ var config = new ConfigurationManager ( ) ;
40+ config [ "Parameters:DocumentationElasticUrl" ] = string . Empty ;
41+ config [ "Parameters:DocumentationElasticApiKey" ] = string . Empty ;
42+ config [ "Parameters:LlmGatewayUrl" ] = string . Empty ;
43+ config [ "Parameters:LlmGatewayServiceAccountPath" ] = string . Empty ;
44+ settings . Configuration = config ;
45+ }
3546 }
3647 ) ;
3748 _ = builder . Services . AddElasticDocumentationLogging ( LogLevel . Information ) ;
You can’t perform that action at this time.
0 commit comments