Skip to content

Commit

Permalink
Adding error checking
Browse files Browse the repository at this point in the history
  • Loading branch information
mtuchkova committed Feb 21, 2022
1 parent b9c7601 commit 143261f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,13 @@ class GdprAmpSpec extends PrivacyBaseSpec {
accountDao.save(account)

when: "PBS processes amp request"
privacyPbsService.sendAmpRequest(ampRequest)
def response = privacyPbsService.sendAmpRequest(ampRequest)

then: "Bidder request should contain masked values"
then: "Response should not contain errors"
assert !response.ext?.errors
assert !response.ext?.warnings

and: "Bidder request should contain masked values"
def bidderRequests = bidder.getBidderRequest(ampStoredRequest.id)
assert bidderRequests.device?.geo == maskGeo(ampStoredRequest)

Expand Down

0 comments on commit 143261f

Please sign in to comment.