Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"moby": true
},
"ghcr.io/devcontainers/features/dotnet:2.2.2": {
"ghcr.io/devcontainers/features/dotnet:2.4.0": {
"version": "9.0",
"installUsingApt": false
}
Expand Down
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@
<PackageVersion Include="RavenDB.Client" Version="5.4.100"/>
<PackageVersion Include="Selenium.WebDriver" Version="4.8.1"/>
<PackageVersion Include="StackExchange.Redis" Version="2.6.90"/>
<PackageVersion Include="Toxiproxy.Net" Version="2.0.1"/>
<PackageVersion Include="ToxiproxyNetCore" Version="1.0.40"/>
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions Testcontainers.dic
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ testcontainer
testcontainers
tlsverify
toml
toxiproxy
vstest
weaviate
1 change: 1 addition & 0 deletions Testcontainers.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<s:Boolean x:Key="/Default/UserDictionary/Words/=testcontainers/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=tlsverify/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=toml/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=toxiproxy/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=vstest/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=weaviate/@EntryIndexedValue">True</s:Boolean>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=CheckNamespace/@EntryIndexedValue">DO_NOT_SHOW</s:String>
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/playwright.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ To execute the tests, use the command `dotnet test` from a terminal.
The Playwright container is configured with a network that can be shared with other containers. This is useful when testing applications that need to communicate with other services. Use the `GetNetwork()` method to access the container's network:

```csharp
var helloWorldContainer = new ContainerBuilder()
.WithNetwork(playwrightContainer.GetNetwork())
IContainer helloWorldContainer = new ContainerBuilder()
.WithNetwork(_playwrightContainer.GetNetwork())
.Build();
```
2 changes: 1 addition & 1 deletion src/Testcontainers.Mosquitto/MosquittoBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Testcontainers.Mosquitto;
namespace Testcontainers.Mosquitto;

/// <inheritdoc cref="ContainerBuilder{TBuilderEntity, TContainerEntity, TConfigurationEntity}" />
[PublicAPI]
Expand Down
2 changes: 1 addition & 1 deletion src/Testcontainers.Mosquitto/MosquittoConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Testcontainers.Mosquitto;
namespace Testcontainers.Mosquitto;

/// <inheritdoc cref="ContainerConfiguration" />
[PublicAPI]
Expand Down
2 changes: 1 addition & 1 deletion src/Testcontainers.Mosquitto/MosquittoContainer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Testcontainers.Mosquitto;
namespace Testcontainers.Mosquitto;

/// <inheritdoc cref="DockerContainer" />
[PublicAPI]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0;net9.0;netstandard2.0;netstandard2.1</TargetFrameworks>
<LangVersion>latest</LangVersion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net9.0</TargetFrameworks>
<IsPackable>false</IsPackable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PackageReference Include="coverlet.collector"/>
<PackageReference Include="xunit.runner.visualstudio"/>
<PackageReference Include="xunit.v3"/>
<PackageReference Include="Toxiproxy.Net"/>
<PackageReference Include="ToxiproxyNetCore"/>
<PackageReference Include="StackExchange.Redis"/>
<!-- -8<- [end:PackageReferences] -->
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ public async Task LatencyToxicIncreasesResponseTime()
proxy.Enabled = true;
proxy.Listen = "0.0.0.0:" + redisProxyPort;
proxy.Upstream = RedisNetworkAlias + ":6379";
var redisProxy = client.Add(proxy);

var redisProxy = await client.AddAsync(proxy)
.ConfigureAwait(true);
// # --8<-- [end:ProxyConfiguration]

// Don't establish a connection directly to the Redis container.
Expand Down Expand Up @@ -104,7 +106,9 @@ await db.StringSetAsync(key, value)
latencyToxic.Toxicity = 1;
latencyToxic.Attributes.Latency = 1100;
latencyToxic.Attributes.Jitter = 100;
redisProxy.Add(latencyToxic);

await redisProxy.AddAsync(latencyToxic)
.ConfigureAwait(true);
// # --8<-- [end:ToxicConfiguration]

var latencyWithToxic = await MeasureLatencyAsync(db, key, value)
Expand Down