Skip to content
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

Merged
merged 17 commits into from
Apr 28, 2021

Conversation

sander-adhese
Copy link
Contributor

Send an actual body with data
Purge this data from the URL used

@rpanchyk rpanchyk requested a review from DGarbar February 1, 2021 09:40
.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\"]}}"))
Copy link
Collaborator

@SerhiiNahornyi SerhiiNahornyi Feb 10, 2021

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")))

Copy link
Contributor

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?

.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\"]}}"))
Copy link
Contributor

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?

Copy link
Contributor

@rpanchyk rpanchyk left a 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.

@rpanchyk rpanchyk removed the request for review from DGarbar April 28, 2021 10:14
@rpanchyk rpanchyk merged commit c4058b4 into prebid:master Apr 28, 2021
nickluck9 pushed a commit that referenced this pull request Aug 9, 2021
* 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
nickluck9 pushed a commit that referenced this pull request Aug 10, 2021
* 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
nickluck9 pushed a commit that referenced this pull request Aug 10, 2021
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants