#1115 find available ports to use in acceptance tests

This commit is contained in:
jlukawska
2020-03-06 10:18:21 +01:00
parent 0af49617ee
commit 263f26ed51
37 changed files with 653 additions and 381 deletions

View File

@ -23,7 +23,7 @@ namespace Ocelot.AcceptanceTests
[Fact]
public void should_return_response_200_with_simple_url_and_hosts_match()
{
int port = 64905;
int port = RandomPortFinder.GetRandomPort();
var configuration = new FileConfiguration
{
@ -60,7 +60,7 @@ namespace Ocelot.AcceptanceTests
[Fact]
public void should_return_response_200_with_simple_url_and_hosts_match_multiple_re_routes()
{
int port = 64904;
int port = RandomPortFinder.GetRandomPort();
var configuration = new FileConfiguration
{
@ -113,7 +113,7 @@ namespace Ocelot.AcceptanceTests
[Fact]
public void should_return_response_200_with_simple_url_and_hosts_match_multiple_re_routes_reversed()
{
int port = 64903;
int port = RandomPortFinder.GetRandomPort();
var configuration = new FileConfiguration
{
@ -166,7 +166,7 @@ namespace Ocelot.AcceptanceTests
[Fact]
public void should_return_response_200_with_simple_url_and_hosts_match_multiple_re_routes_reversed_with_no_host_first()
{
int port = 64902;
int port = RandomPortFinder.GetRandomPort();
var configuration = new FileConfiguration
{
@ -218,7 +218,7 @@ namespace Ocelot.AcceptanceTests
[Fact]
public void should_return_response_404_with_simple_url_and_hosts_dont_match()
{
int port = 64901;
int port = RandomPortFinder.GetRandomPort();
var configuration = new FileConfiguration
{