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

Rename integration to channel in account config tests #1605

Merged
merged 6 commits into from
Feb 21, 2022

Conversation

mtuchkova
Copy link
Contributor

@mtuchkova mtuchkova commented Nov 29, 2021

Tests for #1558

@mtuchkova mtuchkova added the tests Functional or other tests label Nov 29, 2021
@mtuchkova mtuchkova force-pushed the rename-integration-channel-config-tests branch 2 times, most recently from 459e658 to 00db932 Compare November 29, 2021 14:40
Copy link
Collaborator

@Net-burst Net-burst left a comment

Choose a reason for hiding this comment

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

First round


@ToString(includeNames = true, ignoreNulls = true)
@JsonNaming(PropertyNamingStrategies.KebabCaseStrategy)
class AccountCcpaConfig {

Boolean enabled
@JsonProperty("channel-enabled")
Map<ChannelType, Boolean> enabledForRequestType
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please rename the underlying field too.


@ToString(includeNames = true, ignoreNulls = true)
@JsonNaming(PropertyNamingStrategies.KebabCaseStrategy)
class AccountGdprConfig {

Boolean enabled
@JsonProperty("channel-enabled")
Map<ChannelType, Boolean> enabledForRequestType
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please rename the underlying property too.

@@ -29,14 +33,19 @@ class BidRequest {
Regs regs
BidRequestExt ext

static BidRequest getDefaultBidRequest() {
static BidRequest getDefaultBidRequest(ChannelType channelType = WEB) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

channelType -> channel

import org.testcontainers.containers.GenericContainer
import org.testcontainers.containers.MySQLContainer
import org.testcontainers.containers.wait.strategy.Wait

import static org.prebid.server.functional.util.privacy.TcfConsent.RUBICON_VENDOR_ID
Copy link
Collaborator

Choose a reason for hiding this comment

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

Bad place for this. This is only needed for Privacy tests. No point having it for everything.

"adapters.generic.endpoint" : "$host/auction" as String,
"adapters.generic.usersync.url" : "$host/generic-usersync" as String,
"adapters.generic.usersync.type": "redirect",
"adapters.generic.meta-info.vendor-id": RUBICON_VENDOR_ID as String
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same. Looks like this shouldn't be here.

@mtuchkova mtuchkova force-pushed the rename-integration-channel-config-tests branch from 00db932 to 206cf6e Compare December 20, 2021 17:05
@mtuchkova mtuchkova force-pushed the rename-integration-channel-config-tests branch from 206cf6e to e28faba Compare February 16, 2022 10:04
@mtuchkova mtuchkova requested a review from hupaloo February 16, 2022 10:23
hupaloo
hupaloo previously approved these changes Feb 16, 2022
Net-burst
Net-burst previously approved these changes Feb 16, 2022
Copy link
Collaborator

@Net-burst Net-burst left a comment

Choose a reason for hiding this comment

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

LGTM

@mtuchkova mtuchkova dismissed stale reviews from Net-burst and hupaloo via 143261f February 21, 2022 07:30
@mtuchkova mtuchkova force-pushed the rename-integration-channel-config-tests branch from 143261f to 37c162f Compare February 21, 2022 07:50
@mtuchkova mtuchkova force-pushed the rename-integration-channel-config-tests branch from 37c162f to 4c83e77 Compare February 21, 2022 08:24
Copy link
Collaborator

@Net-burst Net-burst left a comment

Choose a reason for hiding this comment

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

LGTM

@SerhiiNahornyi SerhiiNahornyi merged commit 3a0c16d into master Feb 21, 2022
@SerhiiNahornyi SerhiiNahornyi deleted the rename-integration-channel-config-tests branch February 21, 2022 08:58
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.

4 participants