-
Notifications
You must be signed in to change notification settings - Fork 179
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: consented_providers_settings
#3577
base: master
Are you sure you want to change the base?
Conversation
…for-consented_providers_settings-field
assert bidderRequest.user.ext.consentedProvidersSettings.consentedProviders == randomAddtlConsent | ||
} | ||
|
||
def "PBS should leave requested user.ext.{consented_providers_settings/ConsentedProvidersSettings}.consented_providers as is"() { |
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.
PBS should process original user.ext.{consented_providers_settings/ConsentedProvidersSettings}.consented_providers when ampRequest doesn't contain addtl_consent
@@ -11,6 +15,9 @@ class UserExt { | |||
UserTime time | |||
UserExtData data | |||
UserExtPrebid prebid | |||
ConsentedProvidersSettings consentedProvidersSettings | |||
@JsonProperty("ConsentedProvidersSettings") | |||
ConsentedProvidersSettings consentedProvidersSettingsKebabCase |
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.
ConsentedProvidersSettings consentedProvidersSettingsCamelCase
assert bidderRequest.user.ext.consentedProvidersSettings.consentedProviders == consentProviders | ||
} | ||
|
||
def "PBS shouldn't pass addtl_consent to user.ext.{consented_providers_settings/ConsentedProvidersSettings}.consented_providers"() { |
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.
PBS should left user.ext.{consented_providers_settings/ConsentedProvidersSettings}.consented_providers empty when addtl_consent and original fields are empty
🔧 Type of changes
✨ What's the context?
What's the context for the changes? Are there any
🧠 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