Skip to content
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

Functional tests for bid.exp in response #3222

Merged
merged 5 commits into from
Jun 12, 2024

Conversation

osulzhenko
Copy link
Collaborator

No description provided.

@osulzhenko osulzhenko added the tests Functional or other tests label May 31, 2024
@osulzhenko osulzhenko self-assigned this May 31, 2024
}

def "PBS auction should resolve exp from request.ext.prebid.cache.vastxml when it have value"() {
given: "Default basic bid with ext.prebid.cache.bids"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ext.prebid.cache.vastXml

}

def "PBS auction should resolve exp from request.imp[].exp when it have value"() {
given: "Default basic bid with exp"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bid request

'cache.video-ttl-seconds' : hostVideoTtl as String])

def "PBS auction should resolve bid.exp from response that is set by the bidder’s adapter"() {
given: "Default basic bid with exp"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bid request

assert response.seatbid.bid.first.exp == [hostBannerTtl]
}

def "PBS auction should resolve exp from global video config for banner request"() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe for video request?

@osulzhenko osulzhenko requested a review from marki1an June 4, 2024 06:46
@osulzhenko osulzhenko force-pushed the functional-tests/populate-bid-exp branch from e05a48e to bec8214 Compare June 4, 2024 08:17
Comment on lines 76 to 78
and: "Set bidder response without exp"
def bidResponse = BidResponse.getDefaultBidResponse(bidRequest)
bidder.setResponse(bidRequest.id, bidResponse)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to see explicitly without exp, since in the future somebody can change the default bid response and add exp field. by default

assert response.seatbid.bid.first.exp == [bidRequestExp]
}

def "PBS auction should resolve exp from request.ext.prebid.cache for request when it have invalid type"() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe shouldn't resolve exp?

@osulzhenko osulzhenko requested a review from marki1an June 12, 2024 12:31
@SerhiiNahornyi SerhiiNahornyi merged commit 8e1ac02 into populate-bid-exp Jun 12, 2024
@SerhiiNahornyi SerhiiNahornyi deleted the functional-tests/populate-bid-exp branch June 12, 2024 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Functional or other tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants