Skip to content

Commit 5a1b5e3

Browse files
authored
nuget updates, readme file update
* HttpMethodsWhitelist and GeneralContains request filters added * nuget updates, readme file update
1 parent 4a6ccd9 commit 5a1b5e3

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed

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>

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![CodeQL](https://github.com/qatoolkit/qatoolkit-source-swagger-net/workflows/CodeQL%20Analyze/badge.svg)](https://github.com/qatoolkit/qatoolkit-source-swagger-net/security/code-scanning)
44
[![Sonarcloud Quality gate](https://github.com/qatoolkit/qatoolkit-source-swagger-net/workflows/Sonarqube%20Analyze/badge.svg)](https://sonarcloud.io/dashboard?id=qatoolkit_qatoolkit-source-swagger-net)
55
[![NuGet package](https://img.shields.io/nuget/v/QAToolKit.Source.Swagger?label=QAToolKit.Source.Swagger)](https://www.nuget.org/packages/QAToolKit.Source.Swagger/)
6+
[![Discord](https://img.shields.io/discord/787220825127780354?color=%23267CB9&label=Discord%20chat)](https://discord.com/invite/tu3WDV5Z?utm_source=Discord%20Widget&utm_medium=Connect)
67

78
## Description
89
`QAToolKit.Source.Swagger` is a .NET library, which generates `IEnumerable<HttpRequest>` object that is the input for other components.
@@ -16,16 +17,19 @@ Major features:
1617
- access swagger.json from URL, which is protected by `basic authentication`,
1718
- control which swagger endpoints are returned by specifying `request filters` (check below)
1819

20+
Get in touch with me on:
21+
22+
[![Discord](https://img.shields.io/discord/787220825127780354?color=%23267CB9&label=Discord%20chat)](https://discord.com/invite/tu3WDV5Z?utm_source=Discord%20Widget&utm_medium=Connect)
23+
1924
## Video material
2025

2126
1. Introduction to Swagger Library
2227

23-
[![Swagger Library part 1](https://i9.ytimg.com/vi/EhQQMNZbwVY/mq2.jpg?sqp=CIirif4F&rs=AOn4CLCVs7LUGLQ63wZWNnLb8XAr3CShtA)](https://youtu.be/EhQQMNZbwVY "Swagger Library part 1")
24-
25-
2. Swagger RequestFilter explained
28+
[![Start with Swagger Library](https://i9.ytimg.com/vi/EhQQMNZbwVY/maxresdefault.jpg?time=1607952000000&sqp=CIDN3f4F&rs=AOn4CLDcqo7vQ9jLTzLgCj2YdrPFPdVqZQ)](https://www.youtube.com/watch?v=EhQQMNZbwVY "Start with Swagger Library")
2629

30+
2. Swagger library request filters explained
2731

28-
3. Generate a CSV report
32+
[![Swagger library request filters](https://i9.ytimg.com/vi/-1hBRJLZcjY/maxresdefault.jpg?time=1607952000000&sqp=CIDN3f4F&rs=AOn4CLCJYrFjyO44DFjlTY1v6MlGe_hJRw)](https://www.youtube.com/watch?v=-1hBRJLZcjY "Swagger library request filters")
2933

3034
## Sample
3135

src/QAToolKit.Source.Swagger.Test/QAToolKit.Source.Swagger.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<PackageReference Include="ExpectedObjects" Version="2.3.6" />
1515
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0" />
1616
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="5.0.0" />
17-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" />
17+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
1818
<PackageReference Include="xunit" Version="2.4.1" />
1919
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
2020
<PrivateAssets>all</PrivateAssets>

src/QAToolKit.Source.Swagger.Test/SwaggerRequestFilterTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public async Task SwaggerRequestFilterOnlyAuthTypeTest_Success()
5252
new Uri("https://qatoolkitapi.azurewebsites.net/swagger/v2/swagger.json")
5353
});
5454

55-
Assert.Equal(3, requests.Count());
55+
Assert.Equal(5, requests.Count());
5656
}
5757

5858
[Fact]
@@ -72,7 +72,7 @@ public async Task SwaggerRequestFilterOnlyTestTypeTest_Success()
7272
new Uri("https://qatoolkitapi.azurewebsites.net/swagger/v2/swagger.json")
7373
});
7474

75-
Assert.Equal(5, requests.Count());
75+
Assert.Equal(7, requests.Count());
7676
}
7777

7878
[Fact]
@@ -93,7 +93,7 @@ public async Task SwaggerRequestFilterTestAndAuthTypeTest_Success()
9393
new Uri("https://qatoolkitapi.azurewebsites.net/swagger/v2/swagger.json")
9494
});
9595

96-
Assert.Equal(3, requests.Count());
96+
Assert.Equal(5, requests.Count());
9797
}
9898

9999
[Fact]
@@ -223,7 +223,7 @@ public async Task SwaggerRequestFilterTestTypeAlternativeWithMethodTestV2_Succes
223223
new Uri("https://qatoolkitapi.azurewebsites.net/swagger/v2/swagger.json")
224224
});
225225

226-
Assert.Equal(4, requests.Count());
226+
Assert.Equal(6, requests.Count());
227227
}
228228

229229
[Fact]
@@ -267,7 +267,7 @@ public async Task SwaggerRequestFilterAuthTypeAndTestTypeAlternativeWithGeneralC
267267
new Uri("https://qatoolkitapi.azurewebsites.net/swagger/v2/swagger.json")
268268
});
269269

270-
Assert.Equal(3, requests.Count());
270+
Assert.Equal(5, requests.Count());
271271
}
272272

273273
[Fact]
@@ -288,7 +288,7 @@ public async Task SwaggerRequestFilterTestTypeAlternativeWithGeneralContainsTagT
288288
new Uri("https://qatoolkitapi.azurewebsites.net/swagger/v2/swagger.json")
289289
});
290290

291-
Assert.Equal(5, requests.Count());
291+
Assert.Equal(7, requests.Count());
292292
}
293293

294294
[Fact]

src/QAToolKit.Source.Swagger/QAToolKit.Source.Swagger.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<PackageReference Include="Microsoft.OpenApi" Version="1.2.3" />
3838
<PackageReference Include="Microsoft.OpenApi.Readers" Version="1.2.3" />
3939
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
40-
<PackageReference Include="QAToolKit.Core" Version="0.3.4" />
40+
<PackageReference Include="QAToolKit.Core" Version="0.3.6" />
4141
</ItemGroup>
4242

4343
</Project>

0 commit comments

Comments
 (0)