Skip to content

Commit 3822542

Browse files
committed
Override parameters on CI
1 parent 31bb147 commit 3822542

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ public async ValueTask InitializeAsync()
4848
_ = builder.Services.AddElasticDocumentationLogging(LogLevel.Information);
4949
_ = builder.Services.AddLogging(c => c.AddXUnit());
5050
_ = builder.Services.AddLogging(c => c.AddInMemory());
51+
if (!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("CI")))
52+
{
53+
_ = builder.AddParameter("LlmGatewayUrl", value: string.Empty);
54+
_ = builder.AddParameter("LlmGatewayServiceAccountPath", value: string.Empty);
55+
_ = builder.AddParameter("DocumentationElasticUrl", value: string.Empty);
56+
_ = builder.AddParameter("DocumentationElasticApiKey", value: string.Empty);
57+
}
58+
59+
5160
DistributedApplication = await builder.BuildAsync();
5261
InMemoryLogger = DistributedApplication.Services.GetService<InMemoryLogger>()!;
5362
_ = DistributedApplication.StartAsync().WaitAsync(TimeSpan.FromMinutes(5), TestContext.Current.CancellationToken);

0 commit comments

Comments
 (0)