Skip to content

Commit 86fc464

Browse files
committed
update code
1 parent 01cb117 commit 86fc464

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/test/groovy/org/prebid/server/functional/testcontainers/Dependencies.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ class Dependencies {
5858

5959
static void stop() {
6060
if (IS_LAUNCH_CONTAINERS) {
61-
[networkServiceContainer, mysqlContainer, localStackContainer,
62-
influxdbContainer].parallelStream()
61+
[networkServiceContainer, mysqlContainer, localStackContainer, influxdbContainer]
62+
.parallelStream()
6363
.forEach({ it.stop() })
6464
}
6565
}

src/test/groovy/org/prebid/server/functional/testcontainers/scaffolding/FloorsProvider.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import static com.github.tomakehurst.wiremock.client.WireMock.any
1010
import static com.github.tomakehurst.wiremock.client.WireMock.anyRequestedFor
1111
import static com.github.tomakehurst.wiremock.client.WireMock.getRequestedFor
1212
import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo
13-
import static com.github.tomakehurst.wiremock.client.WireMock.urlMatching
13+
import static com.github.tomakehurst.wiremock.client.WireMock.urlPathMatching
1414
import static org.apache.http.HttpStatus.SC_OK
1515

1616
class FloorsProvider extends NetworkScaffolding {
@@ -33,7 +33,7 @@ class FloorsProvider extends NetworkScaffolding {
3333

3434
@Override
3535
void setResponse() {
36-
wireMockClient.register(any(urlMatching("^.*$endpoint.*\$"))
36+
wireMockClient.register(any(urlPathMatching("${endpoint}.*"))
3737
.atPriority(Integer.MAX_VALUE)
3838
.willReturn(aResponse()
3939
.withStatus(SC_OK)

src/test/groovy/org/prebid/server/functional/testcontainers/scaffolding/PrebidCache.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class PrebidCache extends NetworkScaffolding {
4343
}
4444

4545
String getVTracGetRequestParams() {
46-
getRecordedRequestsQueryParameters(getRequestedFor(urlMatching("^/cache(\\?.*)?\$")))
46+
getRecordedRequestsQueryParameters(getRequestedFor(urlPathEqualTo(CACHE_ENDPOINT)))
4747
}
4848

4949
int getXmlRequestCount(String payload) {

0 commit comments

Comments
 (0)