-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fix #1833, Default timeout(90s) of downstream requests is broken * Fix test Should_log_warning_if_downstream_service_returns_internal_server_error * Add unit tests * Recover mixed line endings. Add docs * Unit tests for HttpClientBuilder * Add issue info * Acceptance test * Just formatting --------- Co-authored-by: alvin huang <[email protected]> Co-authored-by: Raman Maksimchuk <[email protected]>
- Loading branch information
1 parent
6740f50
commit ab79b01
Showing
5 changed files
with
110 additions
and
26 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
36 changes: 36 additions & 0 deletions
36
test/Ocelot.UnitTests/Configuration/FileModels/FileQoSOptionsTests.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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using Ocelot.Configuration.File; | ||
|
||
namespace Ocelot.UnitTests.Configuration.FileModels; | ||
|
||
public class FileQoSOptionsTests | ||
{ | ||
[Fact(DisplayName = "1833: Default constructor must assign zero to the TimeoutValue property")] | ||
public void Cstor_Default_AssignedZeroToTimeoutValue() | ||
{ | ||
// Arrange, Act | ||
var actual = new FileQoSOptions(); | ||
|
||
// Assert | ||
Assert.Equal(0, actual.TimeoutValue); | ||
} | ||
|
||
[Fact] | ||
public void Cstor_Default_AssignedZeroToExceptionsAllowedBeforeBreaking() | ||
{ | ||
// Arrange, Act | ||
var actual = new FileQoSOptions(); | ||
|
||
// Assert | ||
Assert.Equal(0, actual.ExceptionsAllowedBeforeBreaking); | ||
} | ||
|
||
[Fact] | ||
public void Cstor_Default_AssignedOneToDurationOfBreak() | ||
{ | ||
// Arrange, Act | ||
var actual = new FileQoSOptions(); | ||
|
||
// Assert | ||
Assert.Equal(1, actual.DurationOfBreak); | ||
} | ||
} |
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