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

GPP4: Functional tests for full GPP support #2405

Merged
merged 26 commits into from
Aug 2, 2023

Conversation

osulzhenko
Copy link
Collaborator

No description provided.

@osulzhenko osulzhenko added work in progress Signals not finished work tests Functional or other tests labels Jun 2, 2023
@osulzhenko osulzhenko marked this pull request as draft June 2, 2023 08:41
@osulzhenko osulzhenko marked this pull request as ready for review June 9, 2023 13:02
@osulzhenko osulzhenko changed the title WIP: Functional tests for full GPP support GPP4: Functional tests for full GPP support Jun 9, 2023
@osulzhenko osulzhenko removed the work in progress Signals not finished work label Jun 12, 2023
@osulzhenko osulzhenko changed the title GPP4: Functional tests for full GPP support GPP4: Functional tests for full GPP support Jun 14, 2023
# Conflicts:
#	src/test/groovy/org/prebid/server/functional/tests/privacy/GppFetchBidActivitiesSpec.groovy
#	src/test/groovy/org/prebid/server/functional/tests/privacy/GppSyncUserActivitiesSpec.groovy
#	src/test/groovy/org/prebid/server/functional/tests/privacy/GppTransmitPreciseGeoActivitiesSpec.groovy
#	src/test/groovy/org/prebid/server/functional/tests/privacy/GppTransmitUfpdActivitiesSpec.groovy
# Conflicts:
#	src/test/groovy/org/prebid/server/functional/tests/privacy/GppFetchBidActivitiesSpec.groovy
#	src/test/groovy/org/prebid/server/functional/tests/privacy/GppSyncUserActivitiesSpec.groovy
#	src/test/groovy/org/prebid/server/functional/tests/privacy/GppTransmitPreciseGeoActivitiesSpec.groovy
#	src/test/groovy/org/prebid/server/functional/tests/privacy/GppTransmitUfpdActivitiesSpec.groovy
@osulzhenko osulzhenko changed the base branch from master to add-usnat-privacy-module July 26, 2023 13:45
Comment on lines 15 to 20
static AccountGppConfig getDefaultAccountGppConfig(PrivacyModule code, List<GppSectionId> skipSids = [], Boolean isEnabled = true) {
new AccountGppConfig().tap {
it.code = code
it.config = new SidsConfig().tap { it.skipSids = skipSids }
it.enabled = isEnabled
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need List<GppSectionId> skipSids = [] this one parameter and this it.config = new SidsConfig().tap { it.skipSids = skipSids }? Looks like redundat.

Comment on lines 613 to 618
new UspNatV1Consent.Builder().setMspaServiceProviderMode(1).build() | USP_NAT_V1
new UspCaV1Consent.Builder().setMspaServiceProviderMode(1).build() | USP_CA_V1
new UspVaV1Consent.Builder().setMspaServiceProviderMode(1).build() | USP_VA_V1
new UspCoV1Consent.Builder().setMspaServiceProviderMode(1).build() | USP_CO_V1
new UspUtV1Consent.Builder().setMspaServiceProviderMode(1).build() | USP_UT_V1
new UspCtV1Consent.Builder().setMspaServiceProviderMode(1).build() | USP_CT_V1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can be new UspNatV1Consent.Builder().build() because setMspaServiceProviderMode field don't effect at this spec, and check other cases

Comment on lines 592 to 596
regsGpp << [
"",
new UspNatV1Consent.Builder().build(),
new UspNatV1Consent.Builder().setGpc(false).build()
]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can be in 1 line, and check other cases

def ampRequest = AmpRequest.defaultAmpRequest.tap {
it.account = accountId
it.gppSid = USP_NAT_V1.value
it.consentString = SIMPLE_GPC_DISALLOW_LOGIC
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same does not true for this spec, check other similar cases

@SerhiiNahornyi SerhiiNahornyi merged commit 8fed4e8 into add-usnat-privacy-module Aug 2, 2023
@SerhiiNahornyi SerhiiNahornyi deleted the tests-gpp-full-support branch August 2, 2023 08:31
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.

3 participants