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

Add additional checks for only remove the transaction id from source obj if not present #2863

Conversation

osulzhenko
Copy link
Collaborator

No description provided.

@osulzhenko osulzhenko added the tests Functional or other tests label Dec 22, 2023
@@ -646,6 +694,9 @@ class GppTransmitTidActivitiesSpec extends PrivacyBaseSpec {
!bidderRequest.imp[0].ext.tid
!bidderRequest.source.tid
}

and: "Don’t affect source.schain if it was present"
bidderRequest.source.schain == sourceWithSchainAndTid.schain
Copy link
Collaborator

Choose a reason for hiding this comment

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

Place assert before comparison, and at other places

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done, thanks

SerhiiNahornyi and others added 3 commits January 5, 2024 15:03
…transaction-id-from-source-obj-if-not-present
…emove-the-transaction-id-from-source-obj-if-not-present' into functional-tests/S2S-1474-only-remove-the-transaction-id-from-source-obj-if-not-present
@osulzhenko osulzhenko requested a review from marki1an January 5, 2024 14:30
marki1an
marki1an previously approved these changes Jan 8, 2024
}

def "PBS amp should remove bidRequest.(source/imp[0].ext).tid when ext.prebid.createTids=null and defaultAction=false"() {
def "PBS amp should remove bidRequest.(source/imp[0].ext).tid but don't change schain in request when ext.prebid.createTids=#createTid and defaultAction=false"() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

#createTid still static, meaning null
PBS amp should remove bidRequest.(source/imp[0].ext).tid and don't change schain in request when ext.prebid.createTids=#createTid and defaultAction=false and schain specified in request

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated

where:
createTid << [true, null]
}

def "PBS auction should remove bidRequest.(source/imp[0].ext).tid when ext.prebid.createTids=null and activity disallowed"() {
given: "Bid requests with TID fields and account id"
def "PBS auction should remove bidRequest.(source/imp[0].ext).tid but don't change schain in request when ext.prebid.createTids=null and activity disallowed"() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

PBS auction should remove bidRequest.(source/imp[0].ext).tid and don't change schain in request when ext.prebid.createTids=null and activity disallowed

Please check other places.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated

@marki1an marki1an requested a review from Net-burst January 11, 2024 11:30
@SerhiiNahornyi SerhiiNahornyi merged commit 99afd4a into master Jan 11, 2024
2 checks passed
@SerhiiNahornyi SerhiiNahornyi deleted the functional-tests/S2S-1474-only-remove-the-transaction-id-from-source-obj-if-not-present branch January 11, 2024 12:45
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.

4 participants