mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
IgnoreOnContinuousIntegrationFact
This commit is contained in:
@@ -40,7 +40,7 @@ public partial class WireMockServerTests
|
|||||||
{
|
{
|
||||||
_testOutputHelper = testOutputHelper;
|
_testOutputHelper = testOutputHelper;
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void WireMockServer_Start()
|
public void WireMockServer_Start()
|
||||||
{
|
{
|
||||||
@@ -209,8 +209,8 @@ public partial class WireMockServerTests
|
|||||||
.Select(addr => addr.Address.ToString())
|
.Select(addr => addr.Address.ToString())
|
||||||
.ToArray();
|
.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
[DockerIsRunningInLinuxContainerModeFact]
|
[IgnoreOnContinuousIntegrationFact]
|
||||||
public async Task WireMockServer_WithUrl0000_Should_Listen_On_All_IPs_IPv4()
|
public async Task WireMockServer_WithUrl0000_Should_Listen_On_All_IPs_IPv4()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
@@ -218,25 +218,23 @@ public partial class WireMockServerTests
|
|||||||
var IPv4 = GetIPAddressesByFamily(System.Net.Sockets.AddressFamily.InterNetwork);
|
var IPv4 = GetIPAddressesByFamily(System.Net.Sockets.AddressFamily.InterNetwork);
|
||||||
var settings = new WireMockServerSettings
|
var settings = new WireMockServerSettings
|
||||||
{
|
{
|
||||||
Urls = new string[] { "http://0.0.0.0:" + port },
|
Urls = ["http://0.0.0.0:" + port],
|
||||||
};
|
};
|
||||||
var server = WireMockServer.Start(settings);
|
using var server = WireMockServer.Start(settings);
|
||||||
|
|
||||||
server.Given(Request.Create().WithPath("/*")).RespondWith(Response.Create().WithBody("x"));
|
server.Given(Request.Create().WithPath("/*")).RespondWith(Response.Create().WithBody("x"));
|
||||||
|
|
||||||
foreach (var addr in IPv4)
|
foreach (var address in IPv4)
|
||||||
{
|
{
|
||||||
// Act
|
// Act
|
||||||
var response = await new HttpClient().GetStringAsync("http://" + addr + ":" + server.Ports[0] + "/foo").ConfigureAwait(false);
|
var response = await new HttpClient().GetStringAsync("http://" + address + ":" + server.Ports[0] + "/foo").ConfigureAwait(false);
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
response.Should().Be("x");
|
response.Should().Be("x");
|
||||||
}
|
}
|
||||||
|
|
||||||
server.Stop();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[DockerIsRunningInLinuxContainerModeFact]
|
[IgnoreOnContinuousIntegrationFact]
|
||||||
public async Task WireMockServer_WithUrl0000_Should_Listen_On_All_IPs_IPv6()
|
public async Task WireMockServer_WithUrl0000_Should_Listen_On_All_IPs_IPv6()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
@@ -244,25 +242,23 @@ public partial class WireMockServerTests
|
|||||||
var IPv6 = GetIPAddressesByFamily(System.Net.Sockets.AddressFamily.InterNetworkV6);
|
var IPv6 = GetIPAddressesByFamily(System.Net.Sockets.AddressFamily.InterNetworkV6);
|
||||||
var settings = new WireMockServerSettings
|
var settings = new WireMockServerSettings
|
||||||
{
|
{
|
||||||
Urls = new string[] { "http://0.0.0.0:" + port },
|
Urls = ["http://0.0.0.0:" + port],
|
||||||
};
|
};
|
||||||
var server = WireMockServer.Start(settings);
|
using var server = WireMockServer.Start(settings);
|
||||||
|
|
||||||
server.Given(Request.Create().WithPath("/*")).RespondWith(Response.Create().WithBody("x"));
|
server.Given(Request.Create().WithPath("/*")).RespondWith(Response.Create().WithBody("x"));
|
||||||
|
|
||||||
foreach (var addr in IPv6)
|
foreach (var address in IPv6)
|
||||||
{
|
{
|
||||||
// Act
|
// Act
|
||||||
var response = await new HttpClient().GetStringAsync("http://[" + addr + "]:" + server.Ports[0] + "/foo").ConfigureAwait(false);
|
var response = await new HttpClient().GetStringAsync("http://[" + address + "]:" + server.Ports[0] + "/foo").ConfigureAwait(false);
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
response.Should().Be("x");
|
response.Should().Be("x");
|
||||||
}
|
}
|
||||||
|
|
||||||
server.Stop();
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task WireMockServer_Should_respond_a_redirect_without_body()
|
public async Task WireMockServer_Should_respond_a_redirect_without_body()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user