Skip to content
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: Functional tests for OpenRTB battr strict logic #3523

Open
wants to merge 4 commits into
base: bugfix/update-openrtb-blocking-battr-logic
Choose a base branch
from

Conversation

osulzhenko
Copy link
Collaborator

@osulzhenko osulzhenko commented Oct 22, 2024

… module

🔧 Type of changes

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

✨ 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?

🧪 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 Oct 22, 2024
@osulzhenko osulzhenko self-assigned this Oct 22, 2024
@osulzhenko osulzhenko added the do not merge Not the time for merging yet label Oct 28, 2024
@osulzhenko osulzhenko changed the base branch from master to bugfix/update-openrtb-blocking-battr-logic November 5, 2024 08:23
@osulzhenko osulzhenko changed the title Add functional tests for strict media type check Add functional tests for OpenRTB battr strict logic Nov 5, 2024
@osulzhenko osulzhenko changed the title Add functional tests for OpenRTB battr strict logic Tests: Functional tests for OpenRTB battr strict logic Nov 5, 2024
BidRequest.defaultBidRequest | AUDIO_BATTR
}

def "PBS shouldn't be able to send original battr ortb2 attribute when default preferred media type specified at request level"() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

when the preferred media type doesn't match with attribute type

@@ -131,6 +134,134 @@ class Ortb2BlockingSpec extends ModuleBaseSpec {
PBSUtils.randomNumber | BTYPE
}

def "PBS shouldn't be able to send original battr ortb2 attribute when original bidder doesn't contain such type impression"() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

when bid request imps type doesn't match with attribute type

BANNER | AUDIO_BATTR
}

def "PBS shouldn't be able to send original battr ortb2 attribute when default preferred media type specified at account level"() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

when account level preferred media type doesn't match with attribute type

@osulzhenko osulzhenko removed the do not merge Not the time for merging yet label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Functional or other tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants