-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added place holder files for all but a couple of the intended new tests. I need to grok what those couple mean before being able to name a file. * This covers most of the suggested cases and a couple more that occured to me. I'll look at the couple that I held off on next. * added the unmarshal tests and found a couple problems to address in the process. * removed my __debug_bin. should be in gitignore. * A bit of clean up and commenting. Bumped version number. Added __debug_bin to .gitignore. This is the debugging binary created by Visual Studio Code, or at least version 1.52.1. * missed a bunch of version strings * removed IP faker * If IP is not included in an AdM request, an error is now thrown for the AdM imp instead of faking it. The AdM endpoint is the only one that requires an IP. Also, added several "no-ip" test cases. * Whent back to the fake IP solution instead of the error. Removed most of the "no-ip" test cases, leaving one. * changed ip in adm-video.json to not match the faker ip * removed a debugging comment
- Loading branch information
Showing
23 changed files
with
877 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ vendor | |
prebid-server | ||
build | ||
debug | ||
__debug_bin | ||
|
||
# config files | ||
pbs.* | ||
|
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
123 changes: 123 additions & 0 deletions
123
adapters/beachfront/beachfronttest/exemplary/adm-video.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,123 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "adm-video", | ||
"imp": [ | ||
{ | ||
"id": "video1", | ||
"ext": { | ||
"bidder": { | ||
"bidfloor": 3.01, | ||
"appId": "videoAppId1" | ||
} | ||
}, | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"context": "instream", | ||
"w": 300, | ||
"h": 250 | ||
} | ||
} | ||
], | ||
"site": { | ||
"page": "https://some.domain.us/some/page.html" | ||
}, | ||
"device":{ | ||
"ip":"192.168.168.168" | ||
} | ||
}, | ||
|
||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "https://qa.beachrtb.com/bid.json?exchange_id=videoAppId1", | ||
"body": { | ||
"id": "adm-video", | ||
"imp": [ | ||
{ | ||
"video": { | ||
"w": 300, | ||
"h": 250, | ||
"mimes": [ | ||
"video/mp4" | ||
] | ||
}, | ||
"bidfloor": 3.01, | ||
"id": "video1", | ||
"secure": 1 | ||
} | ||
], | ||
"site": { | ||
"page": "https://some.domain.us/some/page.html", | ||
"domain": "some.domain.us" | ||
}, | ||
"cur": [ | ||
"USD" | ||
], | ||
"device":{ | ||
"devicetype": 2, | ||
"ip":"192.168.168.168" | ||
} | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "adm-video", | ||
"seatBid": [ | ||
{ | ||
"bid": [ | ||
{ | ||
"id": "5fd7c8a6ff2f1f0d42ee6427", | ||
"impid": "video1", | ||
"price": 20, | ||
"adm": "<VAST version=\"2.0\"><Ad><Wrapper>http://example.com/vast.xml</Wrapper></Ad></VAST>", | ||
"adid": "1088", | ||
"adomain": [ | ||
"beachfront.io" | ||
], | ||
"cid": "277", | ||
"crid": "532", | ||
"w": 300, | ||
"h": 250, | ||
"ext": { | ||
"duration": 30 | ||
} | ||
} | ||
], | ||
"seat": "bfio-s-1" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
|
||
"expectedBidResponses": [ | ||
{ | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "video1AdmVideo", | ||
"impid": "video1", | ||
"price": 20, | ||
"adm": "<VAST version=\"2.0\"><Ad><Wrapper>http://example.com/vast.xml</Wrapper></Ad></VAST>", | ||
"adid": "1088", | ||
"adomain": [ | ||
"beachfront.io" | ||
], | ||
"cid": "277", | ||
"crid": "532", | ||
"w": 300, | ||
"h": 250, | ||
"ext": { | ||
"duration": 30 | ||
} | ||
}, | ||
"type": "video" | ||
} | ||
] | ||
} | ||
] | ||
} |
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
File renamed without changes.
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
Oops, something went wrong.