-
Notifications
You must be signed in to change notification settings - Fork 224
Test: Invalid GPP string for request handling #3958
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
Test: Invalid GPP string for request handling #3958
Conversation
…hile-creating-activity-infrastructure' into functional-tests/Invalid-GPP
| then: "Generic bidder request should have data in EIDS fields" | ||
| def genericBidderRequest = bidder.getBidderRequest(ampStoredRequest.id) | ||
| assert genericBidderRequest.user.eids[0].source == ampStoredRequest.user.eids[0].source | ||
|
|
||
| and: "Generic bidder request should have data in EIDS fields" | ||
| assert genericBidderRequest.user.eids == ampStoredRequest.user.eids |
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.
You can leave only last one assert
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.
Meaning just:
and: "Generic bidder request should have data in EIDS fields"
assert genericBidderRequest.user.eids == ampStoredRequest.user.eids
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.
And also please check other cases
| def accountId = PBSUtils.randomNumber as String | ||
| def ampStoredRequest = getBidRequestWithPersonalData(accountId) | ||
|
|
||
| and: "amp request with link to account" |
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.
| and: "amp request with link to account" | |
| and: "Default amp request with link to account" |
| ] | ||
| } | ||
|
|
||
| def "PBS amp call when regs.gpp empty in request should leave EIDS fields in request"() { |
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.
What about metrics when the transmit activity proceeds?
| assert metrics[ALERT_GENERAL.getValue()] == 1 | ||
|
|
||
| and: "Generic bidder request should have data in UFPD fields" | ||
| def bidderRequest = bidder.getBidderRequest(ampStoredRequest.id) |
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.
What about bidderRequest.user.eids?
6c49d73
into
handle-exceptions-while-creating-activity-infrastructure
🔧 Type of changes
✨ What's the context?
What's the context for the changes?
🧠 Rationale behind the change
Why did you choose to make these changes? Were there any trade-offs you had to consider?
🔎 New Bid Adapter Checklist
🧪 Test plan
How do you know the changes are safe to ship to production?
🏎 Quality check