-
Notifications
You must be signed in to change notification settings - Fork 224
Test: Add a warning for when targeting attributes are truncated #4192
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: Add a warning for when targeting attributes are truncated #4192
Conversation
src/test/groovy/org/prebid/server/functional/testcontainers/PbsConfig.groovy
Show resolved
Hide resolved
| private static final Integer SUBORDINATE_RANK = 2 | ||
| private static final Integer DEFAULT_TRUNCATE_CHARS = 20 | ||
| private static final Integer EXTENDED_TRUNCATE_CHARS = PbsConfig.targetingConfig.get('settings.targeting.truncate-attr-chars').toInteger() | ||
| private static final Map<String, String> DEFAULT_TARGETING_CONFIG = ['settings.targeting.truncate-attr-chars': null] as Map |
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 double quotes or single quotes
It isn't default, rather empty or undefined
| def ampResponse = pbsWithDefaultTargetingLength.sendAmpRequest(ampRequest) | ||
|
|
||
| then: "Amp response should contain warning" | ||
| assert ampResponse.ext?.warnings[TARGETING]*.message == ["Key prefix value is dropped to default. " + |
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 constant with placeholder
| def accountConfig = new AccountConfig(status: ACTIVE, auction: accountAuctionConfig) | ||
| def pbsService = pbsServiceFactory.getService( | ||
| ["settings.default-account-config": encode(accountConfig)]) | ||
| def pbsConfig = ["settings.default-account-config": encode(accountConfig)] |
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.
Add and block between creating of account and creating pbs container
🔧 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