Skip to content

Commit f503b66

Browse files
author
Oleksii Sokol
committed
test
1 parent 70186c4 commit f503b66

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ManagedCode.Database.Tests/TestContainers/CosmosTestContainer.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,17 @@ public CosmosTestContainer()
3232
.WithImage("mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator")
3333
.WithName(containerName)
3434
.WithExposedPort(8081)
35+
.WithExposedPort(10251)
36+
.WithExposedPort(10252)
37+
.WithExposedPort(10253)
38+
.WithExposedPort(10254)
39+
.WithExposedPort(10255)
3540
.WithPortBinding(8081, 8081)
36-
.WithEnvironment("AZURE_COSMOS_EMULATOR_PARTITION_COUNT", "1")
41+
.WithPortBinding(10251, 10251)
42+
.WithPortBinding(10252, 10252)
43+
.WithPortBinding(10253, 10253)
44+
.WithPortBinding(10254, 10254)
45+
.WithEnvironment("AZURE_COSMOS_EMULATOR_PARTITION_COUNT", "6")
3746
.WithEnvironment("AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE", "127.0.0.1")
3847
.WithEnvironment("AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE", "false")
3948
.WithCleanUp(false)

0 commit comments

Comments
 (0)