mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 09:48:16 +08:00
removed thing that checks if route is authorised cos we dont need it
This commit is contained in:
@ -38,7 +38,7 @@ namespace Ocelot.UnitTests.Configuration
|
||||
.When(x => x.WhenIInstanciateTheOcelotConfig())
|
||||
.Then(x => x.ThenTheReRoutesAre(new List<ReRoute>
|
||||
{
|
||||
new ReRoute("/products/{productId}","/api/products/{productId}", "Get", "/api/products/.*$", false)
|
||||
new ReRoute("/products/{productId}","/api/products/{productId}", "Get", "/api/products/.*$", false, "")
|
||||
}))
|
||||
.BDDfy();
|
||||
}
|
||||
@ -61,7 +61,7 @@ namespace Ocelot.UnitTests.Configuration
|
||||
.When(x => x.WhenIInstanciateTheOcelotConfig())
|
||||
.Then(x => x.ThenTheReRoutesAre(new List<ReRoute>
|
||||
{
|
||||
new ReRoute("/products/{productId}","/api/products/{productId}/variants/{variantId}", "Get", "/api/products/.*/variants/.*$", false)
|
||||
new ReRoute("/products/{productId}","/api/products/{productId}/variants/{variantId}", "Get", "/api/products/.*/variants/.*$", false, "")
|
||||
}))
|
||||
.BDDfy();
|
||||
}
|
||||
@ -84,7 +84,7 @@ namespace Ocelot.UnitTests.Configuration
|
||||
.When(x => x.WhenIInstanciateTheOcelotConfig())
|
||||
.Then(x => x.ThenTheReRoutesAre(new List<ReRoute>
|
||||
{
|
||||
new ReRoute("/products/{productId}","/api/products/{productId}/variants/{variantId}/", "Get", "/api/products/.*/variants/.*/$", false)
|
||||
new ReRoute("/products/{productId}","/api/products/{productId}/variants/{variantId}/", "Get", "/api/products/.*/variants/.*/$", false, "")
|
||||
}))
|
||||
.BDDfy();
|
||||
}
|
||||
@ -107,7 +107,7 @@ namespace Ocelot.UnitTests.Configuration
|
||||
.When(x => x.WhenIInstanciateTheOcelotConfig())
|
||||
.Then(x => x.ThenTheReRoutesAre(new List<ReRoute>
|
||||
{
|
||||
new ReRoute("/api/products/","/", "Get", "/$", false)
|
||||
new ReRoute("/api/products/","/", "Get", "/$", false, "")
|
||||
}))
|
||||
.BDDfy();
|
||||
}
|
||||
|
Reference in New Issue
Block a user