@@ -45,6 +45,8 @@ import static org.prebid.server.functional.util.privacy.TcfConsent.GENERIC_VENDO
4545abstract class RuleEngineBaseSpec extends ModuleBaseSpec {
4646
4747 protected static final List<BidderName > MULTI_BID_ADAPTERS = [GENERIC , OPENX , AMX ]. sort()
48+ protected static final Integer OPENX_VENDOR_ID = PBSUtils . getRandomNumber(0 , 65534 )
49+ protected static final Integer AMX_VENDOR_ID = PBSUtils . getRandomNumber(0 , 65534 )
4850 protected static final String APPLIED_FOR_ALL_IMPS = " *"
4951 protected static final String DEFAULT_CONDITIONS = " default"
5052 protected final static String CALL_METRIC = " modules.module.${ PB_RULE_ENGINE.code} .stage.${ PROCESSED_AUCTION_REQUEST.metricValue} .hook.${ PB_RULES_ENGINE_PROCESSED_AUCTION_REQUEST.code} .call"
@@ -75,10 +77,12 @@ abstract class RuleEngineBaseSpec extends ModuleBaseSpec {
7577 }
7678
7779 protected static final Map<String , String > ENABLED_DEBUG_LOG_MODE = [" logging.level.root" : " debug" ]
78- protected static final Map<String , String > OPENX_CONFIG = [" adapters.${ OPENX} .enabled" : " true" ,
79- " adapters.${ OPENX} .endpoint" : " $networkServiceContainer . rootUri /auction" . toString()]
80- protected static final Map<String , String > AMX_CONFIG = [" adapters.${ AMX} .enabled" : " true" ,
81- " adapters.${ AMX} .endpoint" : " $networkServiceContainer . rootUri /auction" . toString()]
80+ protected static final Map<String , String > OPENX_CONFIG = [" adapters.${ OPENX} .enabled" : " true" ,
81+ " adapters.${ OPENX} .endpoint" : " $networkServiceContainer . rootUri /auction" . toString(),
82+ " adapters.${ OPENX} .meta-info.vendor-id" : OPENX_VENDOR_ID as String ]
83+ protected static final Map<String , String > AMX_CONFIG = [" adapters.${ AMX} .enabled" : " true" ,
84+ " adapters.${ AMX} .endpoint" : " $networkServiceContainer . rootUri /auction" . toString(),
85+ " adapters.${ AMX} .meta-info.vendor-id" : AMX_VENDOR_ID as String ]
8286 protected static final Map<String , String > OPENX_ALIAS_CONFIG = [" adapters.${ OPENX} .aliases.${ OPENX_ALIAS} .enabled" : " true" ,
8387 " adapters.${ OPENX} .aliases.${ OPENX_ALIAS} .endpoint" : " $networkServiceContainer . rootUri /auction" . toString()]
8488 protected static final String CONFIG_DATA_CENTER = PBSUtils . randomString
0 commit comments