Skip to content

Commit 14e599a

Browse files
author
Oleksii Sokol
committed
test
1 parent a649673 commit 14e599a

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

.github/workflows/dotnet.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,6 @@ jobs:
1414

1515
build-and-test:
1616
runs-on: ubuntu-latest
17-
services:
18-
cosmos:
19-
image: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator
20-
container_name: cosmos
21-
ports:
22-
- 8081:8081
23-
- 10251:10251
24-
- 10252:10252
25-
- 10253:10253
26-
- 10254:10254
27-
expose:
28-
- "8081"
29-
- "10251-10255"
30-
environment:
31-
- AZURE_COSMOS_EMULATOR_PARTITION_COUNT=6
32-
- AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE=false
33-
- AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE=127.0.0.1
3417
steps:
3518
- uses: actions/checkout@v3
3619
- name: Setup .NET

ManagedCode.Database.Tests/TestContainers/CosmosTestContainer.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class CosmosTestContainer : ITestContainer<string, TestCosmosItem>,
2828

2929
public CosmosTestContainer()
3030
{
31-
/*_cosmosTestContainer = new TestcontainersBuilder<TestcontainersContainer>()
31+
_cosmosTestContainer = new TestcontainersBuilder<TestcontainersContainer>()
3232
.WithImage("mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator")
3333
.WithName(containerName)
3434
.WithExposedPort(8081)
@@ -50,7 +50,7 @@ public CosmosTestContainer()
5050
.UntilPortIsAvailable(privatePort))
5151
.Build();
5252

53-
_dockerClient = new DockerClientConfiguration().CreateClient();*/
53+
_dockerClient = new DockerClientConfiguration().CreateClient();
5454
}
5555

5656
public IDatabaseCollection<string, TestCosmosItem> Collection =>
@@ -63,7 +63,7 @@ public string GenerateId()
6363

6464
public async Task InitializeAsync()
6565
{
66-
/*ushort publicPort = privatePort;
66+
ushort publicPort = privatePort;
6767

6868
try
6969
{
@@ -93,7 +93,7 @@ public async Task InitializeAsync()
9393

9494
containerId = containerListResponse.ID;
9595
}
96-
}*/
96+
}
9797

9898
var httpMessageHandler = new HttpClientHandler()
9999
{

0 commit comments

Comments
 (0)