Skip to content

Commit ebbf7fe

Browse files
Merge pull request #924 from TransactionProcessing/codacy/#760_fix
Codacy/#760 fix
2 parents a707d91 + 163c226 commit ebbf7fe

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Shared.EventStoreContext.Tests/EventStoreDockerHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ await this.StartContainer2(SetupInsecureEventStoreContainerLocal,
9393

9494
}
9595

96-
public EventStoreClientSettings CreateEventStoreClientSettings(Boolean secureEventStore, TimeSpan? deadline = null)
96+
public EventStoreClientSettings CreateEventStoreClientSettings(Boolean secureEventStore, TimeSpan? deadline = null, String userName="admin", String password="changeit")
9797
{
9898
String connectionString = secureEventStore switch
9999
{
100-
true => $"esdb://admin:changeit@127.0.0.1:{this.EventStoreSecureHttpPort}?tls=true&tlsVerifyCert=false",
101-
_ => $"esdb://admin:changeit@127.0.0.1:{this.EventStoreHttpPort}?tls=false"
100+
true => $"esdb://{userName}:{password}@127.0.0.1:{this.EventStoreSecureHttpPort}?tls=true&tlsVerifyCert=false",
101+
_ => $"esdb://{userName}:{password}@127.0.0.1:{this.EventStoreHttpPort}?tls=false"
102102
};
103103

104104
EventStoreClientSettings settings = EventStoreClientSettings.Create(connectionString);

Shared.IntegrationTesting/BaseDockerHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -808,9 +808,9 @@ protected void Error(String message, Exception ex){
808808
this.Logger.LogError($"{this.TestId}|{message}", ex);
809809
}
810810
}
811-
812-
protected virtual String GenerateEventStoreConnectionString(){
813-
String eventStoreAddress = $"esdb://admin:changeit@{this.EventStoreContainerName}:{DockerPorts.EventStoreHttpDockerPort}?tls=false";
811+
812+
protected virtual String GenerateEventStoreConnectionString(String userName = "admin", String password = "changeit"){
813+
String eventStoreAddress = $"esdb://{userName}:{password}@{this.EventStoreContainerName}:{DockerPorts.EventStoreHttpDockerPort}?tls=false";
814814

815815
return eventStoreAddress;
816816
}

0 commit comments

Comments
 (0)