File tree Expand file tree Collapse file tree
src/test/groovy/org/prebid/server/functional/tests/module/optabletargeting Expand file tree Collapse file tree 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
34import org.prebid.server.functional.model.config.AccountConfig
45import org.prebid.server.functional.model.config.AccountHooksConfiguration
56import org.prebid.server.functional.model.config.IdentifierType
@@ -132,7 +133,7 @@ class CacheStorageSpec extends ModuleBaseSpec {
132133
133134 then : " PBS should update metrics for new saved text storage cache"
134135 def metrics = prebidServerStoredCacheService. sendCollectedMetricsRequest()
135- assert metrics[METRIC_CREATIVE_SIZE_TEXT ] == encodeBase64(encode(targetingResult). bytes). size()
136+ assert metrics[METRIC_CREATIVE_SIZE_TEXT ] == new String ( encodeBase64(encode(targetingResult). bytes) ). size()
136137 assert metrics[METRIC_CREATIVE_TTL_TEXT ] == targetingConfig. cache. ttlSeconds
137138 assert metrics[METRIC_CREATIVE_WRITE_OK ] == 1
138139 }
@@ -186,6 +187,7 @@ class CacheStorageSpec extends ModuleBaseSpec {
186187 it. device = new Device (geo : Geo.FPDGeo ,
187188 ip : PBSUtils . getRandomEnum(PublicCountryIp . class). v4,
188189 ifa : ifa,
190+ ua : PBSUtils . randomString,
189191 os : os)
190192 }
191193 }
You can’t perform that action at this time.
0 commit comments