Skip to content

Commit

Permalink
update Applogy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IncSW committed Dec 19, 2019
1 parent 8919520 commit ef73018
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
10 changes: 8 additions & 2 deletions adapters/applogy/applogytest/exemplary/simple-banner.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
"imp": [{
"id": "test-impression-id-1",
"banner": {
"w": 300,
"h": 250
"format": [{
"h": 250,
"w": 300
}]
},
"ext": {
"bidder": {
Expand Down Expand Up @@ -44,6 +46,10 @@
"imp": [{
"id": "test-impression-id-1",
"banner": {
"format": [{
"h": 250,
"w": 300
}],
"h": 250,
"w": 300
},
Expand Down
16 changes: 16 additions & 0 deletions adapters/applogy/applogytest/supplemental/all-failed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"mockBidRequest": {
"id": "test-request-id",
"imp": [{
"id": "test-impression-id-1",
"banner": {
"w": 300,
"h": 250
}
}]
},
"expectedMakeRequestsErrors": [{
"value": "impression extensions required",
"comparison": "literal"
}]
}
10 changes: 10 additions & 0 deletions adapters/applogy/applogytest/supplemental/invalid-params.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@
"ext": {
"bidder": {}
}
}, {
"id": "test-impression-id-0",
"banner": {
"w": 300,
"h": 250
},
"ext": "invalid ext"
}]
},
"httpCalls": [{
Expand Down Expand Up @@ -115,6 +122,9 @@
}, {
"value": "Applogy token required",
"comparison": "literal"
}, {
"value": "json: cannot unmarshal string into Go value of type adapters.ExtImpBidder",
"comparison": "literal"
}],
"expectedMakeBidsErrors": [{
"value": "ignoring bid id=test-bid-id-6, request doesn't contain any valid impression with id=test-impression-id-6",
Expand Down

0 comments on commit ef73018

Please sign in to comment.