@@ -39,6 +39,7 @@ import org.prebid.server.functional.service.PrebidServerService
3939import org.prebid.server.functional.testcontainers.PbsConfig
4040import org.prebid.server.functional.testcontainers.scaffolding.Bidder
4141import org.prebid.server.functional.util.PBSUtils
42+ import spock.lang.IgnoreRest
4243
4344import java.math.RoundingMode
4445import java.nio.charset.StandardCharsets
@@ -1908,7 +1909,8 @@ class TargetingSpec extends BaseSpec {
19081909 ]
19091910 }
19101911
1911- def " PBS amp shouldn't emit error for targeting when site is invalid array" () {
1912+ @IgnoreRest
1913+ def " PBS amp should emit error for targeting when site is invalid array" () {
19121914 given : " Create targeting with array of site"
19131915 def anyRandomValue = PBSUtils . randomString
19141916 def targeting = [" site" : siteValue, " any" : anyRandomValue]
@@ -1936,10 +1938,10 @@ class TargetingSpec extends BaseSpec {
19361938 assert bidderRequest. imp[0 ]. ext. data. any == anyRandomValue
19371939
19381940 and : " Amp response shouldn't contain any errors"
1939- assert ! ampResponse. ext. errors
1941+ assert ampResponse. ext. errors == [ ' WARNING: targeting.site field invalid ' ]
19401942
19411943 where :
1942- siteValue << [null , [], [PBSUtils . randomString], [Site . configFPDSite, PBSUtils . randomString],
1944+ siteValue << [[PBSUtils . randomString], [Site . configFPDSite, PBSUtils . randomString],
19431945 [PBSUtils . randomString, Site . configFPDSite], [App . defaultApp, Site . configFPDSite]]
19441946 }
19451947
@@ -1974,7 +1976,7 @@ class TargetingSpec extends BaseSpec {
19741976 assert ! ampResponse. ext. errors
19751977
19761978 where :
1977- siteValue << [Site . configFPDSite, [Site . configFPDSite], [Site . configFPDSite, Site . configFPDSite]]
1979+ siteValue << [null , [], Site . configFPDSite, [Site . configFPDSite], [Site . configFPDSite, Site . configFPDSite]]
19781980 }
19791981
19801982 private static Account createAccountWithPriceGranularity(String accountId, PriceGranularityType priceGranularity) {
0 commit comments