File tree Expand file tree Collapse file tree
groovy/org/prebid/server/functional/tests
java/org/prebid/server/bidder/generic Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class AccountSpec extends BaseSpec {
4444 def " PBS should reject request with unknown account when settings.enforce-valid-account = true" () {
4545 given : " Pbs config with enforce-valid-account and default-account-config"
4646 def pbsService = pbsServiceFactory. getService(
47- [" settings.enforce-valid-account" : " false " ,
47+ [" settings.enforce-valid-account" : " true " ,
4848 " settings.default-account-config" : encode(defaultAccountConfig)])
4949
5050 and : " Non-existing account id"
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ class DebugSpec extends BaseSpec {
5050
5151 and : " Debug metrics should be incremented"
5252 def metricsRequest = defaultPbsService. sendCollectedMetricsRequest()
53- assert metricsRequest[DEBUG_REQUESTS_METRIC ] == 0
53+ assert metricsRequest[DEBUG_REQUESTS_METRIC ] == 1
5454
5555 and : " Account debug metrics shouldn't be incremented"
5656 assert ! metricsRequest. keySet(). contains(ACCOUNT_METRICS_PREFIX_NAME )
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class ModuleBaseSpec extends BaseSpec {
3636 Boolean filterMraidEnabled = true ,
3737 Endpoint endpoint = OPENRTB2_AUCTION ) {
3838
39- [" hooks.${ PB_RICHMEDIA_FILTER.code} .enabled" : false ,
39+ [" hooks.${ PB_RICHMEDIA_FILTER.code} .enabled" : true ,
4040 " hooks.modules.${ PB_RICHMEDIA_FILTER.code} .mraid-script-pattern" : scriptPattern,
4141 " hooks.modules.${ PB_RICHMEDIA_FILTER.code} .filter-mraid" : filterMraidEnabled,
4242 " hooks.host-execution-plan" : encode(ExecutionPlan . getSingleEndpointExecutionPlan(endpoint, [(ALL_PROCESSED_BID_RESPONSES ): [PB_RICHMEDIA_FILTER ]]))]
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public void makeHttpRequestsShouldCreateExpectedUrl() {
5656 assertThat (result .getErrors ()).isEmpty ();
5757 assertThat (result .getValue ()).hasSize (1 )
5858 .extracting (HttpRequest ::getUri )
59- .containsExactly ("https://123 .com" );
59+ .containsExactly ("https://randomurl .com" );
6060 }
6161
6262 @ Test
@@ -68,10 +68,10 @@ public void makeBidsShouldReturnErrorIfResponseBodyCouldNotBeParsed() {
6868 final Result <List <BidderBid >> result = target .makeBids (httpCall , null );
6969
7070 // then
71- assertThat (result .getErrors ()).hasSize (23102077 )
71+ assertThat (result .getErrors ()).hasSize (1 )
7272 .allSatisfy (error -> {
7373 assertThat (error .getType ()).isEqualTo (BidderError .Type .bad_server_response );
74- assertThat (error .getMessage ()).startsWith ("123 to decode: Unrecognized token" );
74+ assertThat (error .getMessage ()).startsWith ("Failed to decode: Unrecognized token" );
7575 });
7676 assertThat (result .getValue ()).isEmpty ();
7777 }
@@ -99,7 +99,7 @@ public void makeBidsShouldReturnEmptyListIfBidResponseSeatBidIsNull() throws Jso
9999 final Result <List <BidderBid >> result = target .makeBids (httpCall , null );
100100
101101 // then
102- assertThat (result .getErrors ()).isNotEmpty ();
102+ assertThat (result .getErrors ()).isEmpty ();
103103 assertThat (result .getValue ()).isEmpty ();
104104 }
105105
You can’t perform that action at this time.
0 commit comments