From 8315a5029d117d7a04a5341311eab4715b4a201c Mon Sep 17 00:00:00 2001 From: Dany Gielow Date: Wed, 22 Jan 2025 13:36:29 +0100 Subject: [PATCH] test(aduptech): added test for invalid bidfloor currency --- .../currency-conversion-invalid-currency.json | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 adapters/aduptech/aduptechtest/supplemental/currency-conversion-invalid-currency.json diff --git a/adapters/aduptech/aduptechtest/supplemental/currency-conversion-invalid-currency.json b/adapters/aduptech/aduptechtest/supplemental/currency-conversion-invalid-currency.json new file mode 100644 index 0000000000..d9d9e1e59e --- /dev/null +++ b/adapters/aduptech/aduptechtest/supplemental/currency-conversion-invalid-currency.json @@ -0,0 +1,45 @@ +{ + "mockBidRequest": { + "id": "test-request-id", + "site": { + "page": "https://good.site/url" + }, + "imp": [{ + "id": "test-imp-id", + "bidfloor": 1.0, + "bidfloorcur": "INVALID", + "banner": { + "format": [{ + "w": 300, + "h": 250 + }] + }, + "ext": { + "bidder": { + "publisher": "123456", + "placement": "234567" + } + } + }], + "ext": { + "prebid": { + "currency": { + "rates": { + "EUR": { + "USD": 0.05 + } + }, + "usepbsrates": false + } + } + } + }, + "httpCalls": [], + "expectedBidResponses": [], + "expectedMakeRequestsErrors": [ + { + "value": "currency: tag is not well-formed", + "comparison": "literal" + } + ] +}