Skip to content

Conversation

@osulzhenko
Copy link
Collaborator

@osulzhenko osulzhenko commented Jan 6, 2025

🔧 Type of changes

  • new bid adapter
  • bid adapter update
  • new feature
  • new analytics adapter
  • new module
  • module update
  • bugfix
  • documentation
  • configuration
  • dependency update
  • tech debt (test coverage, refactorings, etc.)

✨ 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

  • verify email contact works
  • NO fully dynamic hostnames
  • geographic host parameters are NOT required
  • direct use of HTTP is prohibited - implement an existing Bidder interface that will do all the job
  • if the ORTB is just forwarded to the endpoint, use the generic adapter - define the new adapter as the alias of the generic adapter
  • cover an adapter configuration with an integration test

🧪 Test plan

How do you know the changes are safe to ship to production?

🏎 Quality check

  • Are your changes following our code style guidelines?
  • Are there any breaking changes in your code?
  • Does your test coverage exceed 90%?
  • Are there any erroneous console logs, debuggers or leftover code in your changes?

@osulzhenko osulzhenko added the tests Functional or other tests label Jan 6, 2025
@osulzhenko osulzhenko requested a review from marki1an January 6, 2025 08:07
@osulzhenko osulzhenko self-assigned this Jan 6, 2025
@osulzhenko osulzhenko marked this pull request as draft January 8, 2025 12:28
@osulzhenko osulzhenko force-pushed the refactoring-functional-tests branch from 6ad3b09 to 26f38ea Compare January 13, 2025 10:17
@osulzhenko osulzhenko force-pushed the refactoring-functional-tests branch from 26f38ea to c6ddf01 Compare January 14, 2025 09:36
# Conflicts:
#	src/test/groovy/org/prebid/server/functional/tests/AmpFpdSpec.groovy
@osulzhenko osulzhenko marked this pull request as ready for review January 14, 2025 09:38
@osulzhenko
Copy link
Collaborator Author

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
@osulzhenko osulzhenko requested a review from marki1an February 24, 2025 13:54
@osulzhenko osulzhenko changed the title Refactoring functional tests Tests: Refactoring functional tests Feb 28, 2025
# Conflicts:
#	src/test/groovy/org/prebid/server/functional/tests/privacy/GppTransmitUfpdActivitiesSpec.groovy
private static PrebidServerService pbsServiceWithEnabledMediaFilter
private static PrebidServerService pbsServiceWithEnabledMediaFilterAndDifferentCaseStrategy


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty line

@osulzhenko osulzhenko requested a review from marki1an April 11, 2025 06:00
# 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
@osulzhenko osulzhenko removed the blocked label Nov 7, 2025
private static final PrebidServerService disabledDebugPbsService = pbsServiceFactory.getService("adapters.generic.debug.allow": "false")

def cleanupSpec() {
pbsServiceFactory.removeContainer("adapters.generic.debug.allow": "true")
Copy link
Collaborator

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 = [
Copy link
Collaborator

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)
Copy link
Collaborator

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)
Copy link
Collaborator

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

Comment on lines +26 to +27
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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird naming

Copy link
Collaborator

@marki1an marki1an left a 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

@osulzhenko
Copy link
Collaborator Author

WIP

@github-actions
Copy link

github-actions bot commented Dec 3, 2025

TestsPassed ✅Skipped ⚠️Failed
JUnit Test Report9058 ran9056 passed2 skipped0 failed

@osulzhenko osulzhenko added blocked work in progress Signals not finished work and removed blocked labels Dec 12, 2025
@marki1an marki1an self-requested a review December 22, 2025 10:23
…nal-tests

# Conflicts:
#	src/test/groovy/org/prebid/server/functional/testcontainers/Dependencies.groovy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not port tests Functional or other tests work in progress Signals not finished work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants