-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PG bidder request, bid response, user details specs #1590
Add PG bidder request, bid response, user details specs #1590
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
assert bidderError[0].message.startsWith(errorMessage(bidResponse)) | ||
|
||
where: | ||
field | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it should be 2 separate tests
"empty cookie" | HttpUtil.getCookieHeader(mapper, new UidsCookie()) | ||
|
||
"empty uids cookie" | HttpUtil.getCookieHeader(mapper, UidsCookie.defaultUidsCookie.tap { | ||
uids = null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, parameterize UidsCookie only
* Add PG bidder request, bid response, user details specs * Resolve PR remarks * Use soft assert where needed Co-authored-by: mhupalo <mhupalo@rubiconproject.com>
* Add PG tests infrastructure * Add cleanup after spec * Remove checkRequestCount method; add override annotation for some methods * Add PG tests for alert, currency, plans, register services (#1582) * Add PG tests for Alert, Currency, Plans, Register services * Add currency conversion rates mock; fix CurrencySpec * Moved setting bid request and response to the setup() * Use soft assert where needed Co-authored-by: mhupalo <mhupalo@rubiconproject.com> * Add PG tests to cover auction and tokens (#1589) * Add PG tests to cover auction and tokens * Removed setting bid response where it doesn't matter * Use soft assert where needed; parametrization style updated Co-authored-by: mhupalo <mhupalo@rubiconproject.com> * Add PG bidder request, bid response, user details specs (#1590) * Add PG bidder request, bid response, user details specs * Resolve PR remarks * Use soft assert where needed Co-authored-by: mhupalo <mhupalo@rubiconproject.com> * Add PG report, targeting specs (#1591) * Add PG report, targeting specs * Resolve PR remarks * Add test case to cover domain targeting bug * Add test cases to cover scalar and array inputs by site/user first party data, bidder params * Add test case to cover NPE is not thrown by site/user first party data Co-authored-by: mhupalo <mhupalo@rubiconproject.com> Co-authored-by: rpanchyk <rpanchyk@rubiconproject.com> * Minor refactoring * Add cleanup steps after each test class * Change fetching PG properties, add waiters on line items fetch * Minor style fix Co-authored-by: mhupalo <mhupalo@rubiconproject.com> Co-authored-by: rpanchyk <rpanchyk@rubiconproject.com> Co-authored-by: Oleksandr Zhevedenko <net.burst.mail@gmail.com>
Add tests for PG bid response, bidder request, user details
Not only those PG tests, but all (also from other PRs) have passed
[WARNING] Tests run: 246, Failures: 0, Errors: 0, Skipped: 10
[INFO] prebid-server ...................................... SUCCESS [06:02 min]