Skip to content

Commit e771270

Browse files
authored
update to NET 6
1 parent cf76826 commit e771270

File tree

11 files changed

+23
-23
lines changed

11 files changed

+23
-23
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
uses: actions/setup-dotnet@v1
2323
with:
2424
dotnet-version: '3.1.x'
25-
- name: Setup .NET Core 5.0
25+
- name: Setup .NET Core 6.0
2626
uses: actions/setup-dotnet@v1
2727
with:
28-
dotnet-version: '5.0.x'
28+
dotnet-version: '6.0.x'
2929
- name: Initialize CodeQL
3030
uses: github/codeql-action/init@v1
3131
with:

.github/workflows/dotnet-core.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
uses: actions/setup-dotnet@v1
2121
with:
2222
dotnet-version: '3.1.x'
23-
- name: Setup .NET Core 5.0
23+
- name: Setup .NET Core 6.0
2424
uses: actions/setup-dotnet@v1
2525
with:
26-
dotnet-version: '5.0.x'
26+
dotnet-version: '6.0.x'
2727
- name: Install dependencies
2828
run: dotnet restore
2929
- name: Build
@@ -48,10 +48,10 @@ jobs:
4848
uses: actions/setup-dotnet@v1
4949
with:
5050
dotnet-version: '3.1.x'
51-
- name: Setup .NET Core 5.0
51+
- name: Setup .NET Core 6.0
5252
uses: actions/setup-dotnet@v1
5353
with:
54-
dotnet-version: '5.0.x'
54+
dotnet-version: '6.0.x'
5555
- name: Pack NuGet
5656
uses: brandedoutcast/publish-nuget@v2.5.5
5757
with:

.github/workflows/sonarqube-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
uses: actions/setup-dotnet@v1
1717
with:
1818
dotnet-version: '3.1.x'
19-
- name: Setup .NET Core 5.0
19+
- name: Setup .NET Core 6.0
2020
uses: actions/setup-dotnet@v1
2121
with:
22-
dotnet-version: '5.0.x'
22+
dotnet-version: '6.0.x'
2323
- name: SonarScanner for .NET Core with pull request decoration support
24-
uses: highbyte/sonarscan-dotnet@2.0
24+
uses: highbyte/sonarscan-dotnet@v2.1.2
2525
with:
2626
sonarProjectKey: qatoolkit_qatoolkit-engine-bombardier-net
2727
sonarProjectName: qatoolkit_qatoolkit-engine-bombardier-net

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>0.3.8</Version>
3+
<Version>0.3.9</Version>
44
</PropertyGroup>
55
</Project>

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020-2021 Miha Jakovac
3+
Copyright (c) 2020-2022 Miha Jakovac
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/QAToolKit.Engine.Bombardier.Test/Assets/AddBike.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{
3535
"Name": "Bicycle",
3636
"Required": false,
37-
"ContentType": 0,
37+
"ContentType": "application/json",
3838
"Properties": [
3939
{
4040
"Name": "id",

src/QAToolKit.Engine.Bombardier.Test/Assets/UpdateBike.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
{
4242
"Name": "Bicycle",
4343
"Required": false,
44-
"ContentType": 0,
44+
"ContentType": "application/json",
4545
"Properties": [
4646
{
4747
"Name": "id",

src/QAToolKit.Engine.Bombardier.Test/QAToolKit.Engine.Bombardier.Test.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="coverlet.msbuild" Version="2.9.0">
10+
<PackageReference Include="coverlet.msbuild" Version="3.1.0">
1111
<PrivateAssets>all</PrivateAssets>
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1313
</PackageReference>
14-
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0" />
15-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="5.0.0" />
16-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.0-preview-20201020-06" />
14+
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
15+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.0" />
16+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
1717
<PackageReference Include="xunit" Version="2.4.1" />
1818
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
1919
<PrivateAssets>all</PrivateAssets>
2020
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2121
</PackageReference>
22-
<PackageReference Include="coverlet.collector" Version="1.3.0">
22+
<PackageReference Include="coverlet.collector" Version="3.1.0">
2323
<PrivateAssets>all</PrivateAssets>
2424
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2525
</PackageReference>

src/QAToolKit.Engine.Bombardier/Helpers/ContentTypeHeaderHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ internal static string GenerateContentTypeHeader(HttpRequest request, ContentTyp
2424
}
2525
else
2626
{
27-
var contentType = request.RequestBodies.FirstOrDefault(content => content.ContentType == useContentType);
27+
var contentType = request.RequestBodies.FirstOrDefault(content => ContentType.ToEnum(content.ContentType) == useContentType);
2828

2929
if (contentType != null)
3030
{

src/QAToolKit.Engine.Bombardier/Helpers/HttpBodyHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ internal static string GenerateHttpRequestBody(HttpRequest request, ContentType.
3131
if (useContentType != ContentType.Enumeration.Json)
3232
useContentType = ContentType.Enumeration.Json;
3333

34-
var useRequest = request.RequestBodies.FirstOrDefault(content => content.ContentType == useContentType);
34+
var useRequest = request.RequestBodies.FirstOrDefault(content => ContentType.ToEnum(content.ContentType) == useContentType);
3535

3636
if (useRequest == null)
3737
return String.Empty;

0 commit comments

Comments
 (0)