-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Add functional tests for support testing label header (#2963)
- Loading branch information
1 parent
8d498ce
commit d3b1b89
Showing
9 changed files
with
397 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/test/groovy/org/prebid/server/functional/model/config/CookieDeprecation.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.prebid.server.functional.model.config | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty | ||
import com.fasterxml.jackson.databind.PropertyNamingStrategies | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming | ||
import groovy.transform.ToString | ||
import org.prebid.server.functional.util.PBSUtils | ||
|
||
@ToString(includeNames = true, ignoreNulls = true) | ||
@JsonNaming(PropertyNamingStrategies.LowerCaseStrategy) | ||
class CookieDeprecation { | ||
|
||
Boolean enabled | ||
@JsonProperty("ttlsec") | ||
Integer ttlSeconds | ||
|
||
static CookieDeprecation getDefaultCookieDeprecation(Boolean enabled = true, Integer ttlSeconds = PBSUtils.randomNumber) { | ||
new CookieDeprecation().tap { | ||
it.enabled = enabled | ||
it.ttlSeconds = ttlSeconds | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/test/groovy/org/prebid/server/functional/model/config/PrivacySandbox.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.prebid.server.functional.model.config | ||
|
||
import com.fasterxml.jackson.databind.PropertyNamingStrategies | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming | ||
import groovy.transform.ToString | ||
import org.prebid.server.functional.util.PBSUtils | ||
|
||
@ToString(includeNames = true, ignoreNulls = true) | ||
@JsonNaming(PropertyNamingStrategies.LowerCaseStrategy) | ||
class PrivacySandbox { | ||
|
||
CookieDeprecation cookieDeprecation | ||
|
||
static PrivacySandbox getDefaultPrivacySandbox(Boolean enabled = true, Integer ttlSeconds = PBSUtils.randomNumber) { | ||
new PrivacySandbox().tap { | ||
cookieDeprecation = CookieDeprecation.getDefaultCookieDeprecation(enabled, ttlSeconds) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ import groovy.transform.ToString | |
class DeviceExt { | ||
|
||
Atts atts | ||
String cdep | ||
|
||
enum Atts { | ||
|
||
|
10 changes: 10 additions & 0 deletions
10
...roovy/org/prebid/server/functional/model/response/cookiesync/RawCookieSyncResponse.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.prebid.server.functional.model.response.cookiesync | ||
|
||
import groovy.transform.ToString | ||
|
||
@ToString(includeNames = true, ignoreNulls = true) | ||
class RawCookieSyncResponse { | ||
|
||
String responseBody | ||
Map<String, String> headers | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.