-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update and add test cases for insticator
- Loading branch information
1 parent
ff2df10
commit fdcdc59
Showing
20 changed files
with
944 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [{"w": 728, "h": 90}] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"adUnitId": "fake-site-id", | ||
"publisherId": "test-publisher-id" | ||
} | ||
} | ||
} | ||
], | ||
"site": { | ||
"publisher": { | ||
"id": "test-publisher-id" | ||
} | ||
} | ||
}, | ||
|
||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "https://insticator.example.com/v1/pbs", | ||
"body": { | ||
"ext": { | ||
"insticator": { | ||
"caller": [ | ||
{ | ||
"name": "Prebid-Server", | ||
"version": "n/a" | ||
} | ||
] | ||
} | ||
}, | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id":"test-imp-id", | ||
"banner": { | ||
"format": [{"w": 728, "h": 90}] | ||
}, | ||
"ext": { | ||
"insticator": { | ||
"adUnitId": "fake-site-id", | ||
"publisherId": "test-publisher-id" | ||
} | ||
} | ||
} | ||
], | ||
"site": { | ||
"publisher": { | ||
"id": "test-publisher-id" | ||
} | ||
} | ||
}, | ||
"impIDs":["test-imp-id"] | ||
}, | ||
"mockResponse": { | ||
"status": 204, | ||
"body": {} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [] | ||
} | ||
|
120 changes: 120 additions & 0 deletions
120
adapters/insticator/insticatortest/supplemental/app-pubid-absent.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [{"w": 728, "h": 90}] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"adUnitId": "fake-app-id", | ||
"publisherId": "test-publisher-id" | ||
} | ||
} | ||
} | ||
], | ||
"app": { | ||
"id": "test-app-id", | ||
"bundle": "test-app.com" | ||
} | ||
}, | ||
|
||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "https://insticator.example.com/v1/pbs", | ||
"body": { | ||
"ext": { | ||
"insticator": { | ||
"caller": [ | ||
{ | ||
"name": "Prebid-Server", | ||
"version": "n/a" | ||
} | ||
] | ||
} | ||
}, | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id":"test-imp-id", | ||
"banner": { | ||
"format": [{"w": 728, "h": 90}] | ||
}, | ||
"ext": { | ||
"insticator": { | ||
"adUnitId": "fake-app-id", | ||
"publisherId": "test-publisher-id" | ||
} | ||
} | ||
} | ||
], | ||
"app": { | ||
"id": "test-app-id", | ||
"bundle": "test-app.com", | ||
"publisher": { | ||
"id": "test-publisher-id" | ||
} | ||
} | ||
}, | ||
"impIDs":["test-imp-id"] | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-id", | ||
"seatbid": [ | ||
{ | ||
"seat": "insticator", | ||
"bid": [{ | ||
"id": "8ee514f1-b2b8-4abb-89fd-084437d1e800", | ||
"impid": "test-imp-id", | ||
"price": 0.500000, | ||
"adm": "some-test-ad", | ||
"crid": "crid_10", | ||
"h": 90, | ||
"w": 728, | ||
"mtype": 1, | ||
"ext": { | ||
"insticator": { | ||
"mediaType": "banner" | ||
} | ||
} | ||
}] | ||
} | ||
], | ||
"cur": "USD" | ||
} | ||
} | ||
} | ||
], | ||
|
||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "8ee514f1-b2b8-4abb-89fd-084437d1e800", | ||
"impid": "test-imp-id", | ||
"price": 0.5, | ||
"adm": "some-test-ad", | ||
"crid": "crid_10", | ||
"w": 728, | ||
"h": 90, | ||
"mtype": 1, | ||
"ext": { | ||
"insticator": { | ||
"mediaType": "banner" | ||
} | ||
} | ||
}, | ||
"type": "banner" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
|
29 changes: 29 additions & 0 deletions
29
adapters/insticator/insticatortest/supplemental/bad-imp-ext.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [{"w": 728, "h": 90}] | ||
}, | ||
"ext": { | ||
"bidder": "invalid ext" | ||
} | ||
} | ||
], | ||
"site": { | ||
"publisher": { | ||
"id": "test-publisher-id" | ||
} | ||
} | ||
}, | ||
|
||
"expectedMakeRequestsErrors": [ | ||
{ | ||
"value": "expect { or n, but found \"", | ||
"comparison": "literal" | ||
} | ||
] | ||
} | ||
|
Oops, something went wrong.