-
Notifications
You must be signed in to change notification settings - Fork 186
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
Tests: Increase test coverage for cookie_sync
#2570
Tests: Increase test coverage for cookie_sync
#2570
Conversation
src/test/groovy/org/prebid/server/functional/service/PrebidServerService.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Show resolved
Hide resolved
@@ -5,7 +5,7 @@ import net.minidev.json.annotate.JsonIgnore | |||
|
|||
enum BidderName { | |||
|
|||
ALIAS, GENERIC, RUBICON, APPNEXUS, BOGUS, OPENX | |||
ALIAS, GENERIC, RUBICON, APPNEXUS, BOGUS, OPENX, ACEEX, ACUITYADS, GRID, AAX, ADKERNEL, MEDIANET |
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 rearrange the list and put BOGUS
somewhere at the beginning.
@@ -43,9 +41,9 @@ class VendorListResponse { | |||
Boolean usesNonCookieAccess | |||
Boolean deviceStorageDisclosureUrl | |||
|
|||
static Vendor getDefaultVendor() { | |||
static Vendor getDefaultVendor(Integer id) { |
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.
id
can be null
? If not, please use int
to signify this.
|
||
List<BidderName> bidders | ||
// Here we use wildcard for different compatibility |
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.
I don't understand what you meant by this comment.
@@ -141,6 +141,14 @@ class PrebidServerService implements ObjectMapperWrapper { | |||
response.as(CookieSyncResponse) | |||
} | |||
|
|||
@Step("[POST] /cookie_sync with uids cookie") | |||
CookieSyncResponse sendCookieSyncRequest(CookieSyncRequest request, String uidsCookie) { |
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.
What was the point of duplicating the method, but using a String instead of POJO?
|
||
def cookies = [:] | ||
Map<String, String> header = null, | ||
String uidsAudit = 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.
This shouldn't be here at all.
…rage-for-cookie-sync-endpoint # Conflicts: # src/test/groovy/org/prebid/server/functional/model/bidder/BidderName.groovy
…rage-for-cookie-sync-endpoint
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/org/prebid/server/functional/tests/CookieSyncSpec.groovy
Outdated
Show resolved
Hide resolved
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
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
No description provided.