-
Notifications
You must be signed in to change notification settings - Fork 224
Tests: Enforce Random Bid Id Feature #3879
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
Tests: Enforce Random Bid Id Feature #3879
Conversation
marki1an
left a comment
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.
Please update tests with the Events object to check if the bid is properly populated
event?t=win&b=${bid.id}
| def pbsConfig = ['auction.enforce-random-bid-id': 'true'] | ||
| def pbsService = pbsServiceFactory.getService(pbsConfig) | ||
|
|
||
| and: "Default big 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.
Typo: "Default bid request"
| and: "BidResponse should contain bid.id equals to generated pr-bid-id" | ||
| assert response.seatbid.bid.id.flatten().sort() != [originalBidId] | ||
|
|
||
| and: "Bidder request should contain generated pb-bid-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.
| and: "Bidder request should contain generated pb-bid-id" | |
| and: "Bid request should contain generated pb-bid-id" |
| } | ||
|
|
||
| def "PBS should override short bid.id with random uuid when enforce-random-bid-id is enabled"() { | ||
| given: "PBS with disabled generate-bid-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.
| given: "PBS with disabled generate-bid-id" | |
| given: "PBS with enabled generate-bid-id" |
| def pbsConfig = ["auction.enforce-random-bid-id": enforceRandomBidId] | ||
| def pbsService = pbsServiceFactory.getService(pbsConfig) | ||
|
|
||
| and: "Default big 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.
Same here
| } | ||
|
|
||
| def "PBS shouldn't override long enough bid.id with random uuid when enforce-random-bid-id is enabled"() { | ||
| given: "PBS with disabled generate-bid-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.
| given: "PBS with disabled generate-bid-id" | |
| given: "PBS with enabled generate-bid-id" |
| // cleanup: "Stop and remove pbs container" | ||
| // pbsServiceFactory.removeContainer(pbsConfig) |
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.
?
🔧 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