-
Notifications
You must be signed in to change notification settings - Fork 224
Tests: Bidder Usersync Skipwhen Config #4028
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
Tests: Bidder Usersync Skipwhen Config #4028
Conversation
| private static final Map<String, String> GENERIC_WITH_SKIP_CONFIG = [ | ||
| "adapters.${GENERIC.value}.meta-info.vendor-id" : GENERIC_VENDOR_ID as String, | ||
| "adapters.${GENERIC.value}.usersync.${USER_SYNC_TYPE.value}.url" : "$networkServiceContainer.rootUri/generic-usersync&redir={{redirect_url}}".toString(), | ||
| "adapters.${GENERIC.value}.usersync.skipwhen.gdpr" : 'true', |
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.
What about the case when gdpr: false?
| given: "Default CookieSyncRequest with gdpr config" | ||
| def cookieSyncRequest = CookieSyncRequest.defaultCookieSyncRequest.tap { | ||
| it.gppSid = TCF_EU_V2.intValue | ||
| it.gpp = null |
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.
gpp by default null
Same for other
| def "PBS should emit proper error message when alias request contain gdpr config and global skip gdpr config for adapter"() { | ||
| given: "Default CookieSyncRequest with gdpr config" | ||
| def cookieSyncRequest = CookieSyncRequest.defaultCookieSyncRequest.tap { | ||
| it.bidders = [BidderName.ALIAS] |
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.
- Can be just
ALIAS - Add config for
ALIAS, since for now it's unsupported bidder - Should be
response.getBidderUserSync(ALIAS)
src/test/groovy/org/prebid/server/functional/tests/privacy/GppCookieSyncSpec.groovy
Show resolved
Hide resolved
| assert HttpUtil.findUrlParameterValue(bidderStatus.userSync?.url, "gpp") == "" | ||
| assert HttpUtil.findUrlParameterValue(bidderStatus.userSync?.url, "gpp_sid") == gppSid.value | ||
|
|
||
| and: "Shouldn't contains any error" |
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.
"Response shouldn't contains any error""
🔧 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