Skip to content

Commit 4d94f9e

Browse files
authored
Modernize unit test (#417)
* Modernize unit test * Refactor unit test fixture to use Testcontainer * Update CI/CD .NET SDK to 9.x * Update benchmark and sample projects
1 parent 3bf0948 commit 4d94f9e

File tree

15 files changed

+52
-431
lines changed

15 files changed

+52
-431
lines changed

build-system/azure-pipeline.template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
vmImage: ${{ parameters.vmImage }}
1313
steps:
1414
- task: UseDotNet@2
15-
displayName: 'Use .NET 7 SDK 7'
15+
displayName: 'Use .NET Core SDK 9'
1616
inputs:
17-
version: 7.x
17+
version: 9.x
1818
- task: UseDotNet@2 # to keep DocFx happy
1919
displayName: "Use .NET 6 runtime"
2020
inputs:

build-system/nightly-builds.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ variables:
2020

2121
steps:
2222
- task: UseDotNet@2
23-
displayName: 'Use .NET Core SDK 7'
23+
displayName: 'Use .NET Core SDK 9'
2424
inputs:
2525
packageType: sdk
26-
version: 7.x
26+
version: 9.x
2727
- task: BatchScript@1
2828
displayName: 'FAKE Build'
2929
inputs:

build-system/windows-pr-validation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
- template: azure-pipeline.template.yaml
1818
parameters:
1919
name: Windows
20-
vmImage: 'windows-2019'
20+
vmImage: 'windows-latest'
2121
scriptFileName: build.cmd
2222
scriptArgs: all

build-system/windows-release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ variables:
2323

2424
steps:
2525
- task: UseDotNet@2
26-
displayName: 'Use .NET 7 SDK 7.0'
26+
displayName: 'Use .NET Core SDK 7'
2727
inputs:
28-
version: 7.0.x
28+
version: 9.x
2929
- task: BatchScript@1
3030
displayName: 'FAKE Build'
3131
inputs:

examples/EventHub.Consumer/EventHub.Consumer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net6.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

examples/EventHub.Producer/EventHub.Producer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net6.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

examples/Kafka.Partitioned.Consumer/Kafka.Partitioned.Consumer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net6.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

examples/SimpleConsumer/SimpleConsumer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net6.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

examples/SimpleProducer/SimpleProducer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net6.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

src/Akka.Streams.Kafka.Cpu.Benchmark/Akka.Streams.Kafka.Cpu.Benchmark.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<ItemGroup>
99
<PackageReference Include="Docker.DotNet" />
1010
<PackageReference Include="NDesk.Options.Core" />
11+
<PackageReference Include="Testcontainers.Kafka" />
1112
<PackageReference Include="Tmds.ExecFunction" />
1213
<PackageReference Include="Universe.CpuUsage" />
1314
</ItemGroup>

0 commit comments

Comments
 (0)