-
Notifications
You must be signed in to change notification settings - Fork 223
Tests: Refactoring functional tests #3657
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
base: master
Are you sure you want to change the base?
Conversation
6ad3b09 to
26f38ea
Compare
26f38ea to
c6ddf01
Compare
# Conflicts: # src/test/groovy/org/prebid/server/functional/tests/AmpFpdSpec.groovy
|
review is postponed |
# Conflicts: # src/test/groovy/org/prebid/server/functional/tests/module/AbTestingModuleSpec.groovy # src/test/groovy/org/prebid/server/functional/tests/module/GeneralModuleSpec.groovy # src/test/groovy/org/prebid/server/functional/tests/module/analyticstag/AnalyticsTagsModuleSpec.groovy # src/test/groovy/org/prebid/server/functional/tests/module/ortb2blocking/Ortb2BlockingSpec.groovy # src/test/groovy/org/prebid/server/functional/tests/module/pbrequestcorrection/PbRequestCorrectionSpec.groovy # src/test/groovy/org/prebid/server/functional/tests/module/richmedia/RichMediaFilterSpec.groovy
# Conflicts: # src/test/groovy/org/prebid/server/functional/tests/privacy/ActivityTraceLogSpec.groovy
src/test/groovy/org/prebid/server/functional/model/request/auction/UserExtData.groovy
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/model/response/auction/AnalyticResult.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/model/config/Stage.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/UUIDSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/module/ModuleBaseSpec.groovy
Show resolved
Hide resolved
# Conflicts: # src/test/groovy/org/prebid/server/functional/tests/privacy/GppTransmitUfpdActivitiesSpec.groovy
| private static PrebidServerService pbsServiceWithEnabledMediaFilter | ||
| private static PrebidServerService pbsServiceWithEnabledMediaFilterAndDifferentCaseStrategy | ||
|
|
||
|
|
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.
Empty line
# Conflicts: # src/test/groovy/org/prebid/server/functional/testcontainers/scaffolding/Bidder.groovy # src/test/groovy/org/prebid/server/functional/tests/CacheSpec.groovy # src/test/groovy/org/prebid/server/functional/tests/CurrencySpec.groovy # src/test/groovy/org/prebid/server/functional/tests/module/responsecorrenction/ResponseCorrectionSpec.groovy
# Conflicts: # src/test/groovy/org/prebid/server/functional/model/response/auction/AnalyticResult.groovy # src/test/groovy/org/prebid/server/functional/model/response/auction/ModuleValue.groovy # src/test/groovy/org/prebid/server/functional/tests/TargetingSpec.groovy # src/test/groovy/org/prebid/server/functional/tests/module/AbTestingModuleSpec.groovy # src/test/groovy/org/prebid/server/functional/tests/module/ModuleBaseSpec.groovy # src/test/groovy/org/prebid/server/functional/tests/module/richmedia/RichMediaFilterSpec.groovy
src/test/groovy/org/prebid/server/functional/model/request/auction/UserExtData.groovy
Show resolved
Hide resolved
| private static final PrebidServerService disabledDebugPbsService = pbsServiceFactory.getService("adapters.generic.debug.allow": "false") | ||
|
|
||
| def cleanupSpec() { | ||
| pbsServiceFactory.removeContainer("adapters.generic.debug.allow": "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.
Please extract into a separate const variable "adapters.generic.debug.allow": "true"
| "adapter-defaults.ortb.multiformat-supported": "true") | ||
| private static final Map<String, String> ENABLED_MULTI_FORMAT = ["adapter-defaults.ortb.multiformat-supported": "true"] | ||
| private static final Map<String, String> DISABLED_MULTI_FORMAT = ["adapter-defaults.ortb.multiformat-supported": "false"] | ||
| private static final Map<String, String> DISABLED_MULTI_FORMAT_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.
Please format according to the usual format
| "adapters.generic.ortb.multiformat-supported": "false" | ||
| ] | ||
|
|
||
| private static def enabledMultiFormatPbsService = pbsServiceFactory.getService(ENABLED_MULTI_FORMAT) |
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 change ''def'' to the right object
| PrebidServerService prebidServerService = pbsServiceFactory.getService(SCHAIN_NODE_CONFIG) | ||
| @Shared | ||
| PrebidServerService prebidServerService = pbsServiceFactory.getService(["auction.host-schain-node": encode(GLOBAL_SUPPLY_SCHAIN_NODE)]) | ||
| PrebidServerService prebidServerServiceWithElderOrtb = pbsServiceFactory.getService(ORTB_2_5_CONFIG) |
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 add private static final
| private static final PrebidServerService storedRequestIdGenEnabledService = pbsServiceFactory.getService(STORED_REQUEST_ID_GEN_ENABLED_CONFIG) | ||
| private static final PrebidServerService storedRequestIdGenDisabledService = pbsServiceFactory.getService(STORED_REQUEST_ID_GEN_DISABLED_CONFIG) |
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.
Weird naming
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 please take a look at:
GppCookieSyncSpec.PBS shouldn't emit error message when request doesn't contain gdpr config and global skip gdpr config for adapter
|
WIP |
…nal-tests # Conflicts: # src/test/groovy/org/prebid/server/functional/tests/privacy/GppCookieSyncSpec.groovy
|
…nal-tests # Conflicts: # src/test/groovy/org/prebid/server/functional/testcontainers/Dependencies.groovy
🔧 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