Skip to content

Commit 31bb147

Browse files
committed
Add Parameters:: on CI as empty strings
1 parent c775aaa commit 31bb147

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests-integration/Elastic.Assembler.IntegrationTests/AssembleFixture.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
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;
56
using Aspire.Hosting;
67
using Aspire.Hosting.ApplicationModel;
78
using Aspire.Hosting.Testing;
@@ -11,6 +12,7 @@
1112
using Microsoft.Extensions.DependencyInjection;
1213
using Microsoft.Extensions.Logging;
1314
using 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);

0 commit comments

Comments
 (0)