Skip to content

Commit

Permalink
Adding test case for missing currency to improve test coverage percen…
Browse files Browse the repository at this point in the history
…tage.
  • Loading branch information
dirk-rd authored and bruno-siira committed Nov 4, 2024
1 parent 56b03f1 commit 21eecdd
Showing 1 changed file with 105 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"mockBidRequest": {
"id": "12345",
"imp": [{
"id": "001",
"banner": {
"h": 300,
"w": 250
},
"ext": {
"bidder": {
"placement_id": "placement-id-1"
}
}
}],
"site": {
"domain": "https://test.com",
"page": "https://test.com/2016/06/12"
},
"device": {
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36",
"ip": "127.0.0.1",
"language": "EN"
},
"tmax": 500
},
"httpCalls": [{
"expectedRequest": {
"method": "POST",
"body": {
"imps": [{
"bid_id": "12345",
"ext": {
"gpid": ""
},
"imp_id": "001",
"media_types": {
"banner": {
"mimes": null,
"sizes": [
[
250,
300
]
]
},
"video": {
"mimes": null,
"sizes": null
},
"audio": {
"mimes": null,
"sizes": null
}
},
"zone_id": {
"placementId": "placement-id-1"
}
}],
"site": {
"domain": "https://test.com",
"referrer": "https://test.com/2016/06/12"
}
},
"impIDs": [
"001"
]
},
"mockResponse": {
"status": 200,
"body": {
"bids": [{
"bid_id": "01",
"imp_id": "001",
"cpm": 1.00,
"cid": "1002088",
"crid": "1000763-1002088",
"adid": "1002088",
"w": "300",
"h": "250",
"seat": "resetdigital",
"html": "<script src=\"https://data.resetdigital.co/evts?S0B=1&R0E=1&R0M=3_3&testad=US-HEADER-04&R0A=1000048_1001096_1001117_1627360746&R0P=resetio_1234_muscleandfitness.com_Site_1_Banner&R0L=*_*_*_*_*&R0D=*_*_*_*_*_*&R0B=*_*_*\" type=\"text/javascript\"></script><image src='https://adsreq.resetdigital.co?brid=0000000000000001' /><image src='https://sync2.resetdigital.co/hbsync?ck=0000000000000001' />"
}]
}
}
}],

"expectedBidResponses": [{
"currency": "USD",
"bids": [{
"bid": {
"adm": "<script src=\"https://data.resetdigital.co/evts?S0B=1&R0E=1&R0M=3_3&testad=US-HEADER-04&R0A=1000048_1001096_1001117_1627360746&R0P=resetio_1234_muscleandfitness.com_Site_1_Banner&R0L=*_*_*_*_*&R0D=*_*_*_*_*_*&R0B=*_*_*\" type=\"text/javascript\"></script><image src='https://adsreq.resetdigital.co?brid=0000000000000001' /><image src='https://sync2.resetdigital.co/hbsync?ck=0000000000000001' />",
"cid": "1002088",
"crid": "1000763-1002088",
"id": "01",
"impid": "001",
"price": 1.00,
"w": 300,
"h": 250
},
"type": "banner",
"seat": "resetdigital"
}]
}]
}

0 comments on commit 21eecdd

Please sign in to comment.