From 8d144177f2f27b1b778a0d483ca309c75f9cef8b Mon Sep 17 00:00:00 2001 From: Bruce Bujon Date: Thu, 28 Nov 2024 11:47:01 +0100 Subject: [PATCH] fix: Fix test name uniqueness --- .../src/test/groovy/IastHttpClientInstrumentationTest.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dd-java-agent/instrumentation/apache-httpclient-4/src/test/groovy/IastHttpClientInstrumentationTest.groovy b/dd-java-agent/instrumentation/apache-httpclient-4/src/test/groovy/IastHttpClientInstrumentationTest.groovy index e672e738000..597ca47ff20 100644 --- a/dd-java-agent/instrumentation/apache-httpclient-4/src/test/groovy/IastHttpClientInstrumentationTest.groovy +++ b/dd-java-agent/instrumentation/apache-httpclient-4/src/test/groovy/IastHttpClientInstrumentationTest.groovy @@ -1,4 +1,5 @@ import datadog.trace.agent.test.AgentTestRunner +import datadog.trace.agent.test.server.http.TestHttpServer import datadog.trace.api.iast.InstrumentationBridge import datadog.trace.api.iast.sink.SsrfModule import org.apache.http.HttpHost @@ -31,7 +32,7 @@ class IastHttpClientInstrumentationTest extends AgentTestRunner { } } - void 'test ssrf httpClient execute method with args #args expecting call module'() { + void 'test ssrf httpClient execute method expecting call module #iterationIndex'() { given: final ssrf = Mock(SsrfModule) InstrumentationBridge.registerIastModule(ssrf) @@ -68,7 +69,7 @@ class IastHttpClientInstrumentationTest extends AgentTestRunner { return new BasicHttpRequest("GET", server.address.toString()) } - private static HttpHost getHttpHost(final server){ + private static HttpHost getHttpHost(final TestHttpServer server){ return new HttpHost(server.address.host, server.address.port, server.address.scheme) } }