Remove references to dropped request test (#3238)
This commit is contained in:
parent
1cc893b009
commit
e93ff4d419
|
@ -87,7 +87,6 @@ class Netty38ClientTest extends HttpClientTest<Request> implements AgentTestTrai
|
||||||
String expectedClientSpanName(URI uri, String method) {
|
String expectedClientSpanName(URI uri, String method) {
|
||||||
switch (uri.toString()) {
|
switch (uri.toString()) {
|
||||||
case "http://localhost:61/": // unopened port
|
case "http://localhost:61/": // unopened port
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
return "CONNECT"
|
return "CONNECT"
|
||||||
default:
|
default:
|
||||||
|
@ -101,7 +100,6 @@ class Netty38ClientTest extends HttpClientTest<Request> implements AgentTestTrai
|
||||||
case "http://localhost:61/": // unopened port
|
case "http://localhost:61/": // unopened port
|
||||||
exception = exception.getCause() != null ? exception.getCause() : new ConnectException("Connection refused: localhost/127.0.0.1:61")
|
exception = exception.getCause() != null ? exception.getCause() : new ConnectException("Connection refused: localhost/127.0.0.1:61")
|
||||||
break
|
break
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
exception = exception.getCause() != null ? exception.getCause() : new ClosedChannelException()
|
exception = exception.getCause() != null ? exception.getCause() : new ClosedChannelException()
|
||||||
}
|
}
|
||||||
|
@ -112,7 +110,6 @@ class Netty38ClientTest extends HttpClientTest<Request> implements AgentTestTrai
|
||||||
Set<AttributeKey<?>> httpAttributes(URI uri) {
|
Set<AttributeKey<?>> httpAttributes(URI uri) {
|
||||||
switch (uri.toString()) {
|
switch (uri.toString()) {
|
||||||
case "http://localhost:61/": // unopened port
|
case "http://localhost:61/": // unopened port
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,6 @@ class Netty40ClientTest extends HttpClientTest<DefaultFullHttpRequest> implement
|
||||||
String expectedClientSpanName(URI uri, String method) {
|
String expectedClientSpanName(URI uri, String method) {
|
||||||
switch (uri.toString()) {
|
switch (uri.toString()) {
|
||||||
case "http://localhost:61/": // unopened port
|
case "http://localhost:61/": // unopened port
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
return "CONNECT"
|
return "CONNECT"
|
||||||
default:
|
default:
|
||||||
|
@ -96,7 +95,6 @@ class Netty40ClientTest extends HttpClientTest<DefaultFullHttpRequest> implement
|
||||||
Set<AttributeKey<?>> httpAttributes(URI uri) {
|
Set<AttributeKey<?>> httpAttributes(URI uri) {
|
||||||
switch (uri.toString()) {
|
switch (uri.toString()) {
|
||||||
case "http://localhost:61/": // unopened port
|
case "http://localhost:61/": // unopened port
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,7 +102,6 @@ class Netty41ClientTest extends HttpClientTest<DefaultFullHttpRequest> implement
|
||||||
String expectedClientSpanName(URI uri, String method) {
|
String expectedClientSpanName(URI uri, String method) {
|
||||||
switch (uri.toString()) {
|
switch (uri.toString()) {
|
||||||
case "http://localhost:61/": // unopened port
|
case "http://localhost:61/": // unopened port
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
return "CONNECT"
|
return "CONNECT"
|
||||||
default:
|
default:
|
||||||
|
@ -114,7 +113,6 @@ class Netty41ClientTest extends HttpClientTest<DefaultFullHttpRequest> implement
|
||||||
Set<AttributeKey<?>> httpAttributes(URI uri) {
|
Set<AttributeKey<?>> httpAttributes(URI uri) {
|
||||||
switch (uri.toString()) {
|
switch (uri.toString()) {
|
||||||
case "http://localhost:61/": // unopened port
|
case "http://localhost:61/": // unopened port
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,7 +111,6 @@ class RatpackHttpClientTest extends HttpClientTest<Void> implements AgentTestTra
|
||||||
String expectedClientSpanName(URI uri, String method) {
|
String expectedClientSpanName(URI uri, String method) {
|
||||||
switch (uri.toString()) {
|
switch (uri.toString()) {
|
||||||
case "http://localhost:61/": // unopened port
|
case "http://localhost:61/": // unopened port
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
return "CONNECT"
|
return "CONNECT"
|
||||||
default:
|
default:
|
||||||
|
@ -122,7 +121,6 @@ class RatpackHttpClientTest extends HttpClientTest<Void> implements AgentTestTra
|
||||||
@Override
|
@Override
|
||||||
void assertClientSpanErrorEvent(SpanAssert spanAssert, URI uri, Throwable exception) {
|
void assertClientSpanErrorEvent(SpanAssert spanAssert, URI uri, Throwable exception) {
|
||||||
switch (uri.toString()) {
|
switch (uri.toString()) {
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
spanAssert.errorEvent(ConnectTimeoutException, ~/connection timed out:/)
|
spanAssert.errorEvent(ConnectTimeoutException, ~/connection timed out:/)
|
||||||
return
|
return
|
||||||
|
@ -134,7 +132,6 @@ class RatpackHttpClientTest extends HttpClientTest<Void> implements AgentTestTra
|
||||||
Set<AttributeKey<?>> httpAttributes(URI uri) {
|
Set<AttributeKey<?>> httpAttributes(URI uri) {
|
||||||
switch (uri.toString()) {
|
switch (uri.toString()) {
|
||||||
case "http://localhost:61/": // unopened port
|
case "http://localhost:61/": // unopened port
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,6 @@ abstract class AbstractReactorNettyHttpClientTest extends HttpClientTest<HttpCli
|
||||||
String expectedClientSpanName(URI uri, String method) {
|
String expectedClientSpanName(URI uri, String method) {
|
||||||
switch (uri.toString()) {
|
switch (uri.toString()) {
|
||||||
case "http://localhost:61/": // unopened port
|
case "http://localhost:61/": // unopened port
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
return "CONNECT"
|
return "CONNECT"
|
||||||
default:
|
default:
|
||||||
|
@ -86,7 +85,6 @@ abstract class AbstractReactorNettyHttpClientTest extends HttpClientTest<HttpCli
|
||||||
if (exception.class.getName().endsWith("ReactiveException")) {
|
if (exception.class.getName().endsWith("ReactiveException")) {
|
||||||
switch (uri.toString()) {
|
switch (uri.toString()) {
|
||||||
case "http://localhost:61/": // unopened port
|
case "http://localhost:61/": // unopened port
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
exception = exception.getCause()
|
exception = exception.getCause()
|
||||||
}
|
}
|
||||||
|
@ -98,7 +96,6 @@ abstract class AbstractReactorNettyHttpClientTest extends HttpClientTest<HttpCli
|
||||||
Set<AttributeKey<?>> httpAttributes(URI uri) {
|
Set<AttributeKey<?>> httpAttributes(URI uri) {
|
||||||
switch (uri.toString()) {
|
switch (uri.toString()) {
|
||||||
case "http://localhost:61/": // unopened port
|
case "http://localhost:61/": // unopened port
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,6 @@ abstract class AbstractReactorNettyHttpClientTest extends HttpClientTest<HttpCli
|
||||||
String expectedClientSpanName(URI uri, String method) {
|
String expectedClientSpanName(URI uri, String method) {
|
||||||
switch (uri.toString()) {
|
switch (uri.toString()) {
|
||||||
case "http://localhost:61/": // unopened port
|
case "http://localhost:61/": // unopened port
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
return "CONNECT"
|
return "CONNECT"
|
||||||
default:
|
default:
|
||||||
|
@ -91,7 +90,6 @@ abstract class AbstractReactorNettyHttpClientTest extends HttpClientTest<HttpCli
|
||||||
if (exception.class.getName().endsWith("ReactiveException")) {
|
if (exception.class.getName().endsWith("ReactiveException")) {
|
||||||
switch (uri.toString()) {
|
switch (uri.toString()) {
|
||||||
case "http://localhost:61/": // unopened port
|
case "http://localhost:61/": // unopened port
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
exception = exception.getCause()
|
exception = exception.getCause()
|
||||||
}
|
}
|
||||||
|
@ -103,7 +101,6 @@ abstract class AbstractReactorNettyHttpClientTest extends HttpClientTest<HttpCli
|
||||||
Set<AttributeKey<?>> httpAttributes(URI uri) {
|
Set<AttributeKey<?>> httpAttributes(URI uri) {
|
||||||
switch (uri.toString()) {
|
switch (uri.toString()) {
|
||||||
case "http://localhost:61/": // unopened port
|
case "http://localhost:61/": // unopened port
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,6 @@ class SpringWebfluxHttpClientTest extends HttpClientTest<WebClient.RequestBodySp
|
||||||
exception = exception.getCause()
|
exception = exception.getCause()
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
exception = exception.getCause()
|
exception = exception.getCause()
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,6 @@ class VertxRxWebClientTest extends HttpClientTest<HttpRequest<Buffer>> implement
|
||||||
if (exception.class == RuntimeException) {
|
if (exception.class == RuntimeException) {
|
||||||
switch (uri.toString()) {
|
switch (uri.toString()) {
|
||||||
case "http://localhost:61/": // unopened port
|
case "http://localhost:61/": // unopened port
|
||||||
case "http://www.google.com:81/": // dropped request
|
|
||||||
case "https://192.0.2.1/": // non routable address
|
case "https://192.0.2.1/": // non routable address
|
||||||
exception = exception.getCause()
|
exception = exception.getCause()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue