Skip to content

Commit

Permalink
Fix test: Should_merge_routes_custom_properties
Browse files Browse the repository at this point in the history
  • Loading branch information
raman-m committed Oct 12, 2023
1 parent fc9788a commit 18c3c20
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/Ocelot.AcceptanceTests/ConfigurationMergeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public class ConfigurationMergeTests
private TestServer _ocelotServer;

[Fact]
public void Should_merge_reroutes_custom_properties()
public void Should_merge_routes_custom_properties()
{
this.Given(x => GivenOcelotIsRunningWithMultipleConfigs())
.And(x => ThenConfigContentShouldBeMergedWithReRoutesCustomProperties())
.And(x => ThenConfigContentShouldBeMergedWithRoutesCustomProperties())
.BDDfy();
}

Expand Down Expand Up @@ -55,7 +55,7 @@ private void GivenOcelotIsRunningWithMultipleConfigs()
var ocelotClient = _ocelotServer.CreateClient();
}

private static void ThenConfigContentShouldBeMergedWithReRoutesCustomProperties()
private static void ThenConfigContentShouldBeMergedWithRoutesCustomProperties()
{
var mergedConfigFileName = "ocelot.json";
File.Exists(mergedConfigFileName).ShouldBeTrue();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ReRoutes": [
"Routes": [
{
"DownstreamPathTemplate": "/{global}",
"DownstreamScheme": "http",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ReRoutes": [
"Routes": [
{
"DownstreamPathTemplate": "/xservice.svc/serviceMethodA/byNumber/{number}",
"UpstreamPathTemplate": "/gw/serviceMethodA/byNumber/{number}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ReRoutes": [
"Routes": [
{
"DownstreamPathTemplate": "/b/{action}",
"DownstreamScheme": "http",
Expand Down

0 comments on commit 18c3c20

Please sign in to comment.