Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions Shared.IntegrationTesting/Ductus/BaseDockerHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -670,13 +670,12 @@
}

protected virtual EventStoreClientSettings ConfigureEventStoreSettings(String username = "admin", String password="changeit"){
String connectionString = $"esdb://{username}:{password}@127.0.0.1:{this.EventStoreHttpPort}";

connectionString = this.IsSecureEventStore switch{
true => $"{connectionString}?tls=true&tlsVerifyCert=false",
_ => $"{connectionString}?tls=false&tlsVerifyCert=false"
String connectionString = this.IsSecureEventStore switch
{
true => $"esdb://{username}:{password}@127.0.0.1:{this.EventStoreHttpPort}?tls=true&tlsVerifyCert=false",
_ => $"esdb://127.0.0.1:{this.EventStoreHttpPort}?tls=false&tlsVerifyCert=false"
};

return EventStoreClientSettings.Create(connectionString);
}

Expand Down Expand Up @@ -805,9 +804,13 @@
}

protected virtual String GenerateEventStoreConnectionString(String userName = "admin", String password = "changeit"){
String eventStoreAddress = $"esdb://{userName}:{password}@{this.EventStoreContainerName}:{DockerPorts.EventStoreHttpDockerPort}?tls=false";
var connectionString = this.IsSecureEventStore switch
{
true => $"esdb://{userName}:{password}@{this.EventStoreContainerName}:{DockerPorts.EventStoreHttpDockerPort}?tls=true&tlsVerifyCert=false",
_ => $"esdb://{this.EventStoreContainerName}:{DockerPorts.EventStoreHttpDockerPort}?tls=false&tlsVerifyCert=false"
};

return eventStoreAddress;
return connectionString;
}

protected virtual Int32 GetSecurityServicePort(){
Expand Down Expand Up @@ -849,7 +852,7 @@
try{
await projectionClient.CreateContinuousAsync(projectionName, projection, trackEmittedStreams:true).ConfigureAwait(false);
}
catch (Exception ex) {

Check warning on line 855 in Shared.IntegrationTesting/Ductus/BaseDockerHelper.cs

View workflow job for this annotation

GitHub Actions / Build and Test Pull Requests - Linux

The variable 'ex' is declared but never used

Check warning on line 855 in Shared.IntegrationTesting/Ductus/BaseDockerHelper.cs

View workflow job for this annotation

GitHub Actions / Build and Test Pull Requests - Windows

The variable 'ex' is declared but never used
// ignored
}

Expand Down
Loading