-
Notifications
You must be signed in to change notification settings - Fork 224
Increase test coverage for GDPR enforcement when COPPA in scope #3559
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
Increase test coverage for GDPR enforcement when COPPA in scope #3559
Conversation
…ncrease-GDPR-test-coverage
…ncrease-GDPR-test-coverage
marki1an
left a comment
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.
All comments should be applied for auction spec
| then: "Bidder should be called" | ||
| assert !bidder.getBidderRequests(ampStoredRequest.id) |
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.
then: "Bidder shouldn't be called"
| assert metrics[TEMPLATE_REQUEST_DISALLOWED_COUNT.getValue(ampStoredRequest, FETCH_BIDS)] == 1 | ||
|
|
||
| where: | ||
| requestCountry | accountCountry | requestIpV4 | requestIpV6 | header |
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.
Please use accountCountry and header in your test
| and: "Flush metrics" | ||
| flushMetrics(privacyPbsService) | ||
|
|
||
| when: "PBS processes auction request" |
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.
when: "PBS processes amp request"
| and: "Save account config without eea countries into DB" | ||
| accountDao.save(getAccountWithGdpr(ampRequest.account, | ||
| new AccountGdprConfig(enabled: true, eeaCountries: PBSUtils.getRandomEnum(Country.class, [BULGARIA])))) |
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.
and: "Save account config with eea countries into DB"
def account = getAccountWithGdpr(ampRequest.account,
new AccountGdprConfig(enabled: true, eeaCountries: PBSUtils.getRandomEnum(Country.class, [BULGARIA])))
accountDao.save(account)
🔧 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