-
Notifications
You must be signed in to change notification settings - Fork 187
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: Transition PAAPI parameters
#3634
base: feature/paa
Are you sure you want to change the base?
Conversation
Corresponding issue prebid/prebid-server#3536 |
src/test/groovy/org/prebid/server/functional/tests/BidderParamsSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/model/config/AccountAuctionConfig.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/model/request/auction/AuctionEnvironment.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/model/request/auction/ImpExt.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/BidderParamsSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/bidder/openx/OpenxSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/bidder/openx/OpenxSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/bidder/openx/OpenxSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/bidder/openx/OpenxSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/bidder/openx/OpenxSpec.groovy
Outdated
Show resolved
Hide resolved
Required update |
…ests/transition-PAAPI-parameters
…transition-PAAPI-parameters
…ests/transition-PAAPI-parameters
…ests/transition-PAAPI-parameters
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.
we additionaly should verify:
- that aliases can request both original and iab formats.
- that if impId from configs and impId from the response are mismatched (including wildcards), nothing happens.
- that warnings are issued in debug mode, alert.general metrics are emitted.
- that interestGroupAuctionBuyer is ignored when provided by a bidder.
- that the server defaults to the original format if ext.prebid.paaformat is not set or is invalid.
- ensure that empty igs or igi arrays do not cause crashes or errors.
src/test/groovy/org/prebid/server/functional/tests/bidder/openx/OpenxSpec.groovy
Show resolved
Hide resolved
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.
we should also cover:
If there's no impid, then drop any igb objects from this entry. If any were dropped, mmit a warning in debug mode, log at N% sampling, and emit an alert.general metric.
and
Loop through the igb array
Add ext.bidder and ext.adapter to the igb entry
Add the igb entry to the global response entry
Rest is looking fine
def auctionConfigs = response.ext?.prebid?.fledge?.auctionConfigs | ||
assert auctionConfigs?.size() == 1 | ||
assert auctionConfigs[0].impId == impId | ||
assert auctionConfigs[0].bidder == bidResponse.seatbid[0].seat.value |
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.
Can we replace this with:
assert auctionConfigs[0].bidder == OPENX_ALIAS
Easier to identify :)
interestGroupAuctionSeller: [new InterestGroupAuctionSeller()], | ||
interestGroupAuctionBuyer: [new InterestGroupAuctionBuyer()] |
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.
can we also add [] option?
def interestGroupAuctionSeller = response.ext.interestGroupAuctionIntent[0].interestGroupAuctionSeller[0] | ||
assert interestGroupAuctionSeller.impId == impId | ||
assert interestGroupAuctionSeller.config == fledgeConfig | ||
assert interestGroupAuctionSeller.ext.bidder == bidResponse.seatbid[0].seat.value |
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.
assert interestGroupAuctionSeller.ext.bidder == OPENX_ALIAS
fledgeImpId << [PBSUtils.randomString, PBSUtils.randomNumber as String, WILDCARD.value] | ||
} | ||
|
||
def "PBS should log error and not populated fledge impId when bidder respond with empty config"() { |
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.
not an empty config, but an empty impid
🔧 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