From 24f613bc684bf549492c1b6314641ef5d3a8b7b7 Mon Sep 17 00:00:00 2001 From: Stuart Ferguson Date: Thu, 25 Sep 2025 07:15:54 +0100 Subject: [PATCH 1/2] fix for issue 760 --- Shared.IntegrationTesting/BaseDockerHelper.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Shared.IntegrationTesting/BaseDockerHelper.cs b/Shared.IntegrationTesting/BaseDockerHelper.cs index a875b93..cd35b46 100644 --- a/Shared.IntegrationTesting/BaseDockerHelper.cs +++ b/Shared.IntegrationTesting/BaseDockerHelper.cs @@ -808,9 +808,9 @@ protected void Error(String message, Exception ex){ this.Logger.LogError($"{this.TestId}|{message}", ex); } } - - protected virtual String GenerateEventStoreConnectionString(){ - String eventStoreAddress = $"esdb://admin:changeit@{this.EventStoreContainerName}:{DockerPorts.EventStoreHttpDockerPort}?tls=false"; + + protected virtual String GenerateEventStoreConnectionString(String userName = "admin", String password = "changeit"){ + String eventStoreAddress = $"esdb://{userName}:{password}@{this.EventStoreContainerName}:{DockerPorts.EventStoreHttpDockerPort}?tls=false"; return eventStoreAddress; } From 163c226dcdf2d3161bcb62be13325825923b7c7e Mon Sep 17 00:00:00 2001 From: Stuart Ferguson Date: Thu, 25 Sep 2025 07:17:37 +0100 Subject: [PATCH 2/2] fix for issue 761 --- Shared.EventStoreContext.Tests/EventStoreDockerHelper.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Shared.EventStoreContext.Tests/EventStoreDockerHelper.cs b/Shared.EventStoreContext.Tests/EventStoreDockerHelper.cs index c676005..16d2671 100644 --- a/Shared.EventStoreContext.Tests/EventStoreDockerHelper.cs +++ b/Shared.EventStoreContext.Tests/EventStoreDockerHelper.cs @@ -93,12 +93,12 @@ await this.StartContainer2(SetupInsecureEventStoreContainerLocal, } - public EventStoreClientSettings CreateEventStoreClientSettings(Boolean secureEventStore, TimeSpan? deadline = null) + public EventStoreClientSettings CreateEventStoreClientSettings(Boolean secureEventStore, TimeSpan? deadline = null, String userName="admin", String password="changeit") { String connectionString = secureEventStore switch { - true => $"esdb://admin:changeit@127.0.0.1:{this.EventStoreSecureHttpPort}?tls=true&tlsVerifyCert=false", - _ => $"esdb://admin:changeit@127.0.0.1:{this.EventStoreHttpPort}?tls=false" + true => $"esdb://{userName}:{password}@127.0.0.1:{this.EventStoreSecureHttpPort}?tls=true&tlsVerifyCert=false", + _ => $"esdb://{userName}:{password}@127.0.0.1:{this.EventStoreHttpPort}?tls=false" }; EventStoreClientSettings settings = EventStoreClientSettings.Create(connectionString);