Skip to content

Commit 01cb117

Browse files
committed
update code
1 parent e5b182e commit 01cb117

4 files changed

Lines changed: 4 additions & 11 deletions

File tree

pom.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -345,13 +345,6 @@
345345
<artifactId>influxdb</artifactId>
346346
<scope>test</scope>
347347
</dependency>
348-
<!-- Source: https://mvnrepository.com/artifact/org.wiremock/wiremock -->
349-
<dependency>
350-
<groupId>org.wiremock</groupId>
351-
<artifactId>wiremock</artifactId>
352-
<version>3.13.1</version>
353-
<scope>test</scope>
354-
</dependency>
355348
<dependency>
356349
<groupId>org.influxdb</groupId>
357350
<artifactId>influxdb-java</artifactId>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ class Bidder extends NetworkScaffolding {
5454

5555
@Override
5656
protected RequestPatternBuilder getRequest(String bidRequestId) {
57-
postRequestedFor(urlMatching("^$endpoint(\\?.*)?\$"))
57+
postRequestedFor(urlPathEqualTo(endpoint))
5858
.withRequestBody(matchingJsonPath("\$.id", equalTo(bidRequestId)))
5959
}
6060

6161
RequestPattern getRequest(String bidRequestId, String requestMatchPath) {
62-
postRequestedFor(urlMatching("^${endpoint}(\\?.*)?\$"))
62+
postRequestedFor(urlPathEqualTo(endpoint))
6363
.withRequestBody(matchingJsonPath("\$[?(@.${requestMatchPath} == '${bidRequestId}')]"))
6464
.build()
6565
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class FloorsProvider extends NetworkScaffolding {
2828

2929
@Override
3030
protected RequestPatternBuilder getRequest(String accountId) {
31-
getRequestedFor(urlEqualTo(FLOORS_ENDPOINT + accountId))
31+
getRequestedFor(urlEqualTo("$FLOORS_ENDPOINT$accountId"))
3232
}
3333

3434
@Override

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class HttpSettings extends NetworkScaffolding {
3030
@Override
3131
protected RequestPatternBuilder getRequest(String accountId) {
3232
getRequestedFor(urlPathEqualTo(endpoint))
33-
.withQueryParam("account-ids", equalTo("[\"" + accountId + "\"]"))
33+
.withQueryParam("account-ids", equalTo("""["$accountId"]"""))
3434
}
3535

3636
@Override

0 commit comments

Comments
 (0)