-
-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial support for converting the mappings to a Pact(flow) json file (…
…#748) * WithDescription * WithConsumer / WithProvider * x * . * . * . * . * fix * pact * nullable * ficx * . * fix
- Loading branch information
Showing
93 changed files
with
1,899 additions
and
1,088 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 22 additions & 23 deletions
45
src/WireMock.Net.Abstractions/Admin/Mappings/CookieModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
using System.Collections.Generic; | ||
using System.Collections.Generic; | ||
|
||
namespace WireMock.Admin.Mappings | ||
namespace WireMock.Admin.Mappings; | ||
|
||
/// <summary> | ||
/// Cookie Model | ||
/// </summary> | ||
[FluentBuilder.AutoGenerateBuilder] | ||
public class CookieModel | ||
{ | ||
/// <summary> | ||
/// Cookie Model | ||
/// Gets or sets the name. | ||
/// </summary> | ||
[FluentBuilder.AutoGenerateBuilder] | ||
public class CookieModel | ||
{ | ||
/// <summary> | ||
/// Gets or sets the name. | ||
/// </summary> | ||
public string Name { get; set; } | ||
public string Name { get; set; } = null!; | ||
|
||
/// <summary> | ||
/// Gets or sets the matchers. | ||
/// </summary> | ||
public IList<MatcherModel> Matchers { get; set; } | ||
/// <summary> | ||
/// Gets or sets the matchers. | ||
/// </summary> | ||
public IList<MatcherModel>? Matchers { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the ignore case. | ||
/// </summary> | ||
public bool? IgnoreCase { get; set; } | ||
/// <summary> | ||
/// Gets or sets the ignore case. | ||
/// </summary> | ||
public bool? IgnoreCase { get; set; } | ||
|
||
/// <summary> | ||
/// Reject on match. | ||
/// </summary> | ||
public bool? RejectOnMatch { get; set; } | ||
} | ||
/// <summary> | ||
/// Reject on match. | ||
/// </summary> | ||
public bool? RejectOnMatch { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 17 additions & 18 deletions
35
src/WireMock.Net.Abstractions/Admin/Mappings/ParamModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
namespace WireMock.Admin.Mappings | ||
namespace WireMock.Admin.Mappings; | ||
|
||
/// <summary> | ||
/// Param Model | ||
/// </summary> | ||
[FluentBuilder.AutoGenerateBuilder] | ||
public class ParamModel | ||
{ | ||
/// <summary> | ||
/// Param Model | ||
/// Gets or sets the name. | ||
/// </summary> | ||
[FluentBuilder.AutoGenerateBuilder] | ||
public class ParamModel | ||
{ | ||
/// <summary> | ||
/// Gets or sets the name. | ||
/// </summary> | ||
public string Name { get; set; } | ||
public string Name { get; set; } = null!; | ||
|
||
/// <summary> | ||
/// Defines if the key should be matched using case-ignore. | ||
/// </summary> | ||
public bool? IgnoreCase { get; set; } | ||
/// <summary> | ||
/// Defines if the key should be matched using case-ignore. | ||
/// </summary> | ||
public bool? IgnoreCase { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the matchers. | ||
/// </summary> | ||
public MatcherModel[] Matchers { get; set; } | ||
} | ||
/// <summary> | ||
/// Gets or sets the matchers. | ||
/// </summary> | ||
public MatcherModel[]? Matchers { get; set; } | ||
} |
91 changes: 45 additions & 46 deletions
91
src/WireMock.Net.Abstractions/Admin/Mappings/RequestModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,50 @@ | ||
using System.Collections.Generic; | ||
using System.Collections.Generic; | ||
|
||
namespace WireMock.Admin.Mappings | ||
namespace WireMock.Admin.Mappings; | ||
|
||
/// <summary> | ||
/// RequestModel | ||
/// </summary> | ||
[FluentBuilder.AutoGenerateBuilder] | ||
public class RequestModel | ||
{ | ||
/// <summary> | ||
/// RequestModel | ||
/// </summary> | ||
[FluentBuilder.AutoGenerateBuilder] | ||
public class RequestModel | ||
{ | ||
/// <summary> | ||
/// Gets or sets the ClientIP. (Can be a string or a ClientIPModel) | ||
/// </summary> | ||
public object ClientIP { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Path. (Can be a string or a PathModel) | ||
/// </summary> | ||
public object Path { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Url. (Can be a string or a UrlModel) | ||
/// </summary> | ||
public object Url { get; set; } | ||
|
||
/// <summary> | ||
/// The methods | ||
/// </summary> | ||
public string[] Methods { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Headers. | ||
/// </summary> | ||
public IList<HeaderModel> Headers { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Cookies. | ||
/// </summary> | ||
public IList<CookieModel> Cookies { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Params. | ||
/// </summary> | ||
public IList<ParamModel> Params { get; set; } | ||
/// Gets or sets the ClientIP. (Can be a string or a ClientIPModel) | ||
/// </summary> | ||
public object? ClientIP { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Path. (Can be a string or a PathModel) | ||
/// </summary> | ||
public object? Path { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Url. (Can be a string or a UrlModel) | ||
/// </summary> | ||
public object? Url { get; set; } | ||
|
||
/// <summary> | ||
/// The methods | ||
/// </summary> | ||
public string[]? Methods { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Headers. | ||
/// </summary> | ||
public IList<HeaderModel>? Headers { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Cookies. | ||
/// </summary> | ||
public IList<CookieModel>? Cookies { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Params. | ||
/// </summary> | ||
public IList<ParamModel>? Params { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the body. | ||
/// </summary> | ||
public BodyModel Body { get; set; } | ||
} | ||
/// <summary> | ||
/// Gets or sets the body. | ||
/// </summary> | ||
public BodyModel? Body { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.