Skip to content

Commit a494a84

Browse files
Housekeeping: Update 3rd party dependencies (#3786)
1 parent 4ada1ae commit a494a84

5 files changed

Lines changed: 55 additions & 23 deletions

File tree

extra/modules/greenbids-real-time-data/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
<groupId>com.google.cloud</groupId>
3030
<artifactId>google-cloud-storage</artifactId>
3131
<version>2.41.0</version>
32+
<exclusions>
33+
<exclusion>
34+
<groupId>commons-logging</groupId>
35+
<artifactId>commons-logging</artifactId>
36+
</exclusion>
37+
</exclusions>
3238
</dependency>
3339
</dependencies>
3440

extra/pom.xml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141
<httpclient.version>4.5.14</httpclient.version>
4242
<ipaddress.version>5.3.1</ipaddress.version>
4343
<oshi.version>6.4.5</oshi.version>
44-
<json-schema-validator.version>1.0.76</json-schema-validator.version>
44+
<json-schema-validator.version>1.4.0</json-schema-validator.version>
4545
<jsonpatch.version>1.13</jsonpatch.version>
4646
<psl.version>2.2.0</psl.version>
4747
<metrics-influxdb.version>1.2.2</metrics-influxdb.version>
4848
<vertx.prometheus.version>0.16.0</vertx.prometheus.version>
4949
<iabtcf.version>2.0.10</iabtcf.version>
5050
<gpp-encoder.version>3.2.0</gpp-encoder.version>
51-
<maxmind-client.version>2.12.0</maxmind-client.version>
51+
<maxmind-client.version>2.17.0</maxmind-client.version>
5252
<protobuf.version>3.25.5</protobuf.version>
5353
<protoc.version>${protobuf.version}</protoc.version>
5454
<json-logic.version>1.0.7</json-logic.version>
@@ -130,6 +130,12 @@
130130
<groupId>org.apache.httpcomponents</groupId>
131131
<artifactId>httpclient</artifactId>
132132
<version>${httpclient.version}</version>
133+
<exclusions>
134+
<exclusion>
135+
<groupId>commons-logging</groupId>
136+
<artifactId>commons-logging</artifactId>
137+
</exclusion>
138+
</exclusions>
133139
</dependency>
134140
<dependency>
135141
<groupId>com.github.seancfoley</groupId>
@@ -248,6 +254,10 @@
248254
<groupId>com.google.code.findbugs</groupId>
249255
<artifactId>jsr305</artifactId>
250256
</exclusion>
257+
<exclusion>
258+
<groupId>commons-logging</groupId>
259+
<artifactId>commons-logging</artifactId>
260+
</exclusion>
251261
</exclusions>
252262
</dependency>
253263
</dependencies>

src/test/groovy/org/prebid/server/functional/tests/AliasSpec.groovy

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,12 @@ class AliasSpec extends BaseSpec {
228228
assert bidResponse.ext?.warnings[PREBID]*.message ==
229229
["WARNING: request.imp[0].ext.prebid.bidder.${APPNEXUS.value} was dropped with a reason: " +
230230
"request.imp[0].ext.prebid.bidder.${APPNEXUS.value} failed validation.\n" +
231-
"\$.placement_id: is missing but it is required\n" +
232-
"\$.member: is missing but it is required\n" +
233-
"\$.placementId: is missing but it is required\n" +
234-
"\$.inv_code: is missing but it is required\n" +
235-
"\$.invCode: is missing but it is required",
231+
"\$: must be valid to one and only one schema, but 0 are valid\n" +
232+
"\$: required property 'placement_id' not found\n" +
233+
"\$: required property 'inv_code' not found\n" +
234+
"\$: required property 'placementId' not found\n" +
235+
"\$: required property 'member' not found\n" +
236+
"\$: required property 'invCode' not found",
236237
"WARNING: request.imp[0].ext must contain at least one valid bidder"]
237238
}
238239

src/test/java/org/prebid/server/geolocation/MaxMindGeoLocationServiceTest.java

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import org.prebid.server.geolocation.model.GeoInfo;
1717

1818
import java.io.IOException;
19-
import java.util.ArrayList;
2019

2120
import static java.util.Collections.singletonList;
2221
import static java.util.Collections.singletonMap;
@@ -62,21 +61,37 @@ public void setDatabaseReaderShouldReturnFailedFutureIfDatabaseArchiveNotFound()
6261
public void lookupShouldReturnCountryIsoWhenDatabaseReaderWasSet() throws NoSuchFieldException, IOException,
6362
GeoIp2Exception, IllegalAccessException {
6463
// given
65-
final Country country = new Country(null, null, null, "fr", null);
66-
final Continent continent = new Continent(null, "eu", null, null);
67-
final City city = new City(singletonList("test"), null, null, singletonMap("test", "Paris"));
68-
final Location location = new Location(null, null, 48.8566, 2.3522,
69-
null, null, null);
70-
final ArrayList<Subdivision> subdivisions = new ArrayList<>();
71-
subdivisions.add(new Subdivision(null, null, null, "paris", null));
72-
final CityResponse cityResponse = new CityResponse(city, continent, country, location, null,
73-
null, null, null, subdivisions, null);
64+
final Country country = Mockito.mock(Country.class);
65+
Mockito.when(country.getIsoCode()).thenReturn("fr");
66+
67+
final Continent continent = Mockito.mock(Continent.class);
68+
Mockito.when(continent.getCode()).thenReturn("eu");
69+
70+
final City city = Mockito.mock(City.class);
71+
Mockito.when(city.getNames()).thenReturn(singletonMap("en", "Paris"));
72+
Mockito.when(city.getName()).thenReturn("Paris");
73+
74+
final Location location = Mockito.mock(Location.class);
75+
Mockito.when(location.getLatitude()).thenReturn(48.8566);
76+
Mockito.when(location.getLongitude()).thenReturn(2.3522);
77+
78+
final Subdivision subdivision = Mockito.mock(Subdivision.class);
79+
Mockito.when(subdivision.getIsoCode()).thenReturn("paris");
80+
81+
final CityResponse cityResponse = Mockito.mock(CityResponse.class);
82+
Mockito.when(cityResponse.getCountry()).thenReturn(country);
83+
Mockito.when(cityResponse.getContinent()).thenReturn(continent);
84+
Mockito.when(cityResponse.getCity()).thenReturn(city);
85+
Mockito.when(cityResponse.getLocation()).thenReturn(location);
86+
Mockito.when(cityResponse.getSubdivisions()).thenReturn(singletonList(subdivision));
7487

7588
final DatabaseReader databaseReader = Mockito.mock(DatabaseReader.class);
7689
given(databaseReader.city(any())).willReturn(cityResponse);
7790

78-
new ReflectionMemberAccessor().set(maxMindGeoLocationService.getClass().getDeclaredField("databaseReader"),
79-
maxMindGeoLocationService, databaseReader);
91+
new ReflectionMemberAccessor().set(
92+
maxMindGeoLocationService.getClass().getDeclaredField("databaseReader"),
93+
maxMindGeoLocationService,
94+
databaseReader);
8095

8196
// when
8297
final Future<GeoInfo> future = maxMindGeoLocationService.lookup(TEST_IP, null);

src/test/java/org/prebid/server/validation/BidderParamValidatorTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public void validateShouldReturnValidationMessagesWhenAppnexusImpExtNotValid() {
133133
final Set<String> messages = bidderParamValidator.validate(APPNEXUS, node);
134134

135135
// then
136-
assertThat(messages.size()).isEqualTo(4);
136+
assertThat(messages.size()).isEqualTo(5);
137137
}
138138

139139
@Test
@@ -161,7 +161,7 @@ public void validateShouldReturnValidationMessagesWhenAppnexusAliasImpExtNotVali
161161
final Set<String> messages = bidderParamValidator.validate(APPNEXUS_ALIAS, node);
162162

163163
// then
164-
assertThat(messages.size()).isEqualTo(4);
164+
assertThat(messages.size()).isEqualTo(5);
165165
}
166166

167167
@Test
@@ -201,7 +201,7 @@ public void validateShouldReturnValidationMessagesWhenSovrnExtNotValid() {
201201
final Set<String> messages = bidderParamValidator.validate(SOVRN, node);
202202

203203
// then
204-
assertThat(messages.size()).isEqualTo(2);
204+
assertThat(messages.size()).isEqualTo(3);
205205
}
206206

207207
@Test
@@ -339,7 +339,7 @@ public void validateShouldReturnValidationMessagesWhenBeachfrontExtNotValid() {
339339
final Set<String> messages = bidderParamValidator.validate(BEACHFRONT, node);
340340

341341
// then
342-
assertThat(messages.size()).isEqualTo(2);
342+
assertThat(messages.size()).isEqualTo(3);
343343
}
344344

345345
@Test

0 commit comments

Comments
 (0)