Skip to content

Commit

Permalink
Update functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
osulzhenko committed Aug 19, 2024
1 parent 06e4b21 commit 719d40d
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,13 @@ class ImpRequestSpec extends BaseSpec {
bidderName << [WILDCARD, UNKNOWN]
}

def "PBS shouldn't update imp fields without warning when imp.ext.prebid.imp contain not applicable bidder"() {
def "PBS shouldn't update imp fields and without warning when imp.ext.prebid.imp contain not applicable bidder"() {
given: "Default basic BidRequest"
def notApplicableBidder = RUBICON
def impPmp = Pmp.defaultPmp
def bidRequest = BidRequest.defaultBidRequest.tap {
imp.first.tap {
pmp = impPmp
ext.prebid.imp = [(notApplicableBidder): new Imp(pmp: Pmp.defaultPmp)]
ext.prebid.imp = [(RUBICON): new Imp(pmp: Pmp.defaultPmp)]
}
}

Expand All @@ -174,7 +173,7 @@ class ImpRequestSpec extends BaseSpec {
then: "Bid response should not contain warning"
assert !response?.ext?.warnings

and: "BidderRequest shouldn't update imp information based on imp.ext.prebid.imp value"
and: "BidderRequest should contain pmp from original imp"
def bidderRequest = bidder.getBidderRequest(bidRequest.id)
assert bidderRequest.imp.pmp == [impPmp]

Expand Down

0 comments on commit 719d40d

Please sign in to comment.