File tree Expand file tree Collapse file tree
src/test/groovy/org/prebid/server/functional
testcontainers/scaffolding
tests/module/optabletargeting Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class CacheProperties {
1515 static CacheProperties getDefault () {
1616 new CacheProperties (). tap {
1717 enabled = true
18- ttlSeconds = PBSUtils . randomNumber
18+ ttlSeconds = PBSUtils . getRandomNumber( 0 , 1000 )
1919 }
2020 }
2121}
Original file line number Diff line number Diff line change @@ -112,7 +112,8 @@ class StoredCache extends NetworkScaffolding {
112112 " &gdpr=${ gdpr ? 1 : 0} " ,
113113 regs?. gpp ? " &gpp=${ regs.gpp} " : null ,
114114 regs?. gppSid ? " &gpp_sid=${ regs.gppSid.first()} " : null ,
115- config?. timeout ? " &timeout=${ config.timeout} ms" : null ]. findAll(). join(' ' )
115+ config?. timeout ? " &timeout=${ config.timeout} ms" : null ,
116+ " &osdk=prebid-server" ]. findAll(). join(' ' )
116117 }
117118 }
118119}
Original file line number Diff line number Diff line change 11package org.prebid.server.functional.tests.module.optabletargeting
22
3- import org.apache.commons.codec.binary.Base64
43import org.prebid.server.functional.model.config.AccountConfig
54import org.prebid.server.functional.model.config.AccountHooksConfiguration
65import org.prebid.server.functional.model.config.IdentifierType
@@ -134,8 +133,8 @@ class CacheStorageSpec extends ModuleBaseSpec {
134133 then : " PBS should update metrics for new saved text storage cache"
135134 def metrics = prebidServerStoredCacheService. sendCollectedMetricsRequest()
136135 assert metrics[METRIC_CREATIVE_SIZE_TEXT ] == new String (encodeBase64(encode(targetingResult). bytes)). size()
137- assert metrics[METRIC_CREATIVE_TTL_TEXT ] == targetingConfig. cache. ttlSeconds
138136 assert metrics[METRIC_CREATIVE_WRITE_OK ] == 1
137+ assert metrics[METRIC_CREATIVE_TTL_TEXT ] == targetingConfig. cache. ttlSeconds
139138 }
140139
141140 def " PBS should update metrics for stored cached requests cache when proper record present" () {
You can’t perform that action at this time.
0 commit comments