-
Notifications
You must be signed in to change notification settings - Fork 200
Test: Multiple biddercode support
#3687
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: Multiple biddercode support
#3687
Conversation
…ltiple-biddercode-support # Conflicts: # src/test/groovy/org/prebid/server/functional/model/request/auction/Prebid.groovy # src/test/groovy/org/prebid/server/functional/tests/BidderParamsSpec.groovy
…es' into qaa/multiple-biddercode-support # Conflicts: # src/test/groovy/org/prebid/server/functional/tests/BidderParamsSpec.groovy
…es' into qaa/multiple-biddercode-support
…es' into qaa/multiple-biddercode-support
src/test/groovy/org/prebid/server/functional/model/bidder/GeneralBidderAdapter.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/AlternateBidderCodeSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/AlternateBidderCodeSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/AlternateBidderCodeSpec.groovy
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/AlternateBidderCodeSpec.groovy
Outdated
Show resolved
Hide resolved
given: "Default bid request with alternate bidder codes" | ||
def bidRequest = bidRequestWithAmxBidderAndAlternateBidderCode().tap { | ||
ext.prebid.alternateBidderCodes = requestedAlternateBidderCodes | ||
setAccountId(PBSUtils.randomString) |
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.
why do we need it?
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.
Actual
src/test/groovy/org/prebid/server/functional/tests/AlternateBidderCodeSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/AlternateBidderCodeSpec.groovy
Show resolved
Hide resolved
…es' into qaa/multiple-biddercode-support
…es' into qaa/multiple-biddercode-support
…es' into qaa/multiple-biddercode-support
…es' into qaa/multiple-biddercode-support
src/test/groovy/org/prebid/server/functional/model/bidder/GeneralBidderAdapter.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/AlternateBidderCodeSpec.groovy
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/AlternateBidderCodeSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/AlternateBidderCodeSpec.groovy
Show resolved
Hide resolved
given: "Default bid request with alternate bidder codes" | ||
def bidRequest = bidRequestWithAmxBidderAndAlternateBidderCode().tap { | ||
ext.prebid.alternateBidderCodes = requestedAlternateBidderCodes | ||
setAccountId(PBSUtils.randomString) |
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.
Actual
src/test/groovy/org/prebid/server/functional/tests/AlternateBidderCodeSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/AlternateBidderCodeSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/AlternateBidderCodeSpec.groovy
Outdated
Show resolved
Hide resolved
def bidAdjustment = randomDecimal | ||
def mediaTypeBidAdjustment = bidAdjustmentFactor |
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.
redundant variables
def "PBS shouldn't discard bid when alternate bidder code allows bidder codes fully configured with different case"() { | ||
given: "Default bid request with amx bidder" | ||
def bidRequest = bidRequestWithAmxBidder().tap { | ||
setAccountId(PBSUtils.randomString) |
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.
why do we need it?
imp[0].ext.prebid.bidder.generic = null | ||
it.ext.prebid.aliases = [(ALIAS.value): GENERIC] | ||
it.ext.prebid.alternateBidderCodes.bidders = [(ALIAS): new BidderConfig(enabled: true, allowedBidderCodesLowerCase: [GENERIC])] | ||
it.ext.prebid.targeting = new Targeting() |
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.
included by bidRequestWithAmxBidderAndAlternateBidderCode
amx = null | ||
alias = new Generic() | ||
} | ||
ext.prebid.targeting = new Targeting() |
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.
included by bidRequestWithAmxBidderAndAlternateBidderCode
} | ||
} | ||
|
||
private static BidRequest bidRequestWithAmxBidder() { |
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.
Methods should be verbs, in mixed case with the first letter lowercase, with the first letter of each internal word capitalized. Same for others
https://www.oracle.com/java/technologies/javase/codeconventions-namingconventions.html
so should be getBidRequestWithAmxBidder
or maybe getAmxBidRequest
🔧 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