Skip to content

Tests: Functional tests for OpenRTB battr strict logic #3523

Merged
osulzhenko merged 4 commits into
bugfix/update-openrtb-blocking-battr-logicfrom
functional-tests/strict-media-type
Nov 7, 2024
Merged

Tests: Functional tests for OpenRTB battr strict logic #3523
osulzhenko merged 4 commits into
bugfix/update-openrtb-blocking-battr-logicfrom
functional-tests/strict-media-type

Conversation

@osulzhenko
Copy link
Copy Markdown
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 requested a review from marki1an October 22, 2024 16:12
@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 requested a review from marki1an November 5, 2024 08:43
@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
Copy Markdown
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

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
Copy Markdown
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
Copy Markdown
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 requested a review from marki1an November 5, 2024 09:40
@osulzhenko osulzhenko removed the do not merge Not the time for merging yet label Nov 5, 2024
@osulzhenko osulzhenko merged commit 765a0ba into bugfix/update-openrtb-blocking-battr-logic Nov 7, 2024
@osulzhenko osulzhenko deleted the functional-tests/strict-media-type branch November 7, 2024 11:13
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