Skip to content

Commit c2ef269

Browse files
committed
swagger mapper allow all requests to be read and filtered later
1 parent 331c69e commit c2ef269

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/QAToolKit.Source.Swagger/SwaggerProcessor.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ namespace QAToolKit.Source.Swagger
99
{
1010
public class SwaggerProcessor
1111
{
12+
/// <summary>
13+
/// Map Swagger documents to a list of objects
14+
/// </summary>
15+
/// <param name="baseUri"></param>
16+
/// <param name="openApiDocument"></param>
17+
/// <param name="replacementValues"></param>
18+
/// <returns></returns>
1219
public IList<HttpTestRequest> MapFromOpenApiDocument(Uri baseUri, OpenApiDocument openApiDocument, ReplacementValue[] replacementValues)
1320
{
1421
var requests = new List<HttpTestRequest>();
@@ -21,14 +28,11 @@ public IList<HttpTestRequest> MapFromOpenApiDocument(Uri baseUri, OpenApiDocumen
2128
return requests;
2229
}
2330

24-
//Only testable endpoints
2531
private IList<HttpTestRequest> GetRestRequestsForPath(Uri baseUri, KeyValuePair<string, OpenApiPathItem> path, ReplacementValue[] replacementValues)
2632
{
2733
var requests = new List<HttpTestRequest>();
2834

29-
foreach (var operation in path.Value.Operations
30-
.Where(o => o.Value.Description.Contains(TestType.LoadTest.Value()) ||
31-
o.Value.Description.Contains(TestType.IntegrationTest.Value())))
35+
foreach (var operation in path.Value.Operations)
3236
{
3337
requests.Add(new HttpTestRequest()
3438
{

0 commit comments

Comments
 (0)