-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix POST requests with Adhese adapter #1124
Conversation
src/main/java/org/prebid/server/bidder/adhese/model/AdheseRequestBody.java
Outdated
Show resolved
Hide resolved
src/main/java/org/prebid/server/bidder/adhese/AdheseBidder.java
Outdated
Show resolved
Hide resolved
src/main/java/org/prebid/server/bidder/adhese/AdheseBidder.java
Outdated
Show resolved
Hide resolved
.withHeader("Accept", WireMock.equalTo("application/json")) | ||
.withHeader("Content-Type", WireMock.equalTo("application/json;charset=UTF-8")) | ||
.withRequestBody(WireMock.absent()) | ||
.withRequestBody(WireMock.equalToJson("{\"slots\":[{\"slotname\":\"_adhese_prebid_demo_-leaderboard\"}],\"parameters\":{\"ag\":[\"55\"],\"ci\":[\"gent\",\"brussels\"],\"tl\":[\"all\"],\"xt\":[\"consentValue\"],\"xf\":[\"http://www.example.com\"],\"xz\":[\"ifaId\"]}}")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we create json file with this body?
.withRequestBody(WireMock.equalToJson(jsonFrom("openrtb2/adhese/adheese-request-body.json")))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sander-adhese Agree with the above?
src/main/java/org/prebid/server/bidder/adhese/AdheseBidder.java
Outdated
Show resolved
Hide resolved
src/main/java/org/prebid/server/bidder/adhese/AdheseBidder.java
Outdated
Show resolved
Hide resolved
src/main/java/org/prebid/server/bidder/adhese/model/AdheseRequestBody.java
Show resolved
Hide resolved
src/main/java/org/prebid/server/bidder/adhese/model/AdheseRequestBody.java
Outdated
Show resolved
Hide resolved
src/main/java/org/prebid/server/bidder/adhese/model/AdheseRequestBody.java
Outdated
Show resolved
Hide resolved
src/main/java/org/prebid/server/bidder/adhese/model/AdheseRequestBody.java
Show resolved
Hide resolved
src/main/java/org/prebid/server/bidder/adhese/model/AdheseRequestBody.java
Outdated
Show resolved
Hide resolved
src/test/java/org/prebid/server/bidder/adhese/AdheseBidderTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/prebid/server/bidder/adhese/AdheseBidderTest.java
Outdated
Show resolved
Hide resolved
.withHeader("Accept", WireMock.equalTo("application/json")) | ||
.withHeader("Content-Type", WireMock.equalTo("application/json;charset=UTF-8")) | ||
.withRequestBody(WireMock.absent()) | ||
.withRequestBody(WireMock.equalToJson("{\"slots\":[{\"slotname\":\"_adhese_prebid_demo_-leaderboard\"}],\"parameters\":{\"ag\":[\"55\"],\"ci\":[\"gent\",\"brussels\"],\"tl\":[\"all\"],\"xt\":[\"consentValue\"],\"xf\":[\"http://www.example.com\"],\"xz\":[\"ifaId\"]}}")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sander-adhese Agree with the above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job @sander-adhese ! Thanks.
* Use POST, preserve original user agent and user ip in the headers * Apply stash * Use obj serialization * Leave out unnecessary field * throw away unnecessary stuff * Comply with code style * Process feedback * Looks like this can't go * Process feedback * Process feedback * Replace literal JSON strings with AdheseRequestBody * fix over-sized line * Replace List.of with Arrays.asList * Replace the other Java 9 shorthands * Explicit typing
* Use POST, preserve original user agent and user ip in the headers * Apply stash * Use obj serialization * Leave out unnecessary field * throw away unnecessary stuff * Comply with code style * Process feedback * Looks like this can't go * Process feedback * Process feedback * Replace literal JSON strings with AdheseRequestBody * fix over-sized line * Replace List.of with Arrays.asList * Replace the other Java 9 shorthands * Explicit typing
* Use POST, preserve original user agent and user ip in the headers * Apply stash * Use obj serialization * Leave out unnecessary field * throw away unnecessary stuff * Comply with code style * Process feedback * Looks like this can't go * Process feedback * Process feedback * Replace literal JSON strings with AdheseRequestBody * fix over-sized line * Replace List.of with Arrays.asList * Replace the other Java 9 shorthands * Explicit typing
Send an actual body with data
Purge this data from the URL used