-
Notifications
You must be signed in to change notification settings - Fork 224
Tests: Support GET interface profiles #4239
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
base: get-interface
Are you sure you want to change the base?
Changes from 2 commits
5a880fb
1dd7157
f6543e2
10060d3
5126e00
c981e37
a1a49d3
934ea4a
bb42e74
3b5c276
25e4ff6
c88a5a2
6ba1166
5056fdd
804c252
2f3065d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,299 @@ | ||
| package org.prebid.server.functional.model.request.get | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonProperty | ||
| import org.prebid.server.functional.model.request.amp.ConsentType | ||
| import org.prebid.server.functional.model.request.auction.DebugCondition | ||
| import org.prebid.server.functional.model.request.auction.DeviceType | ||
| import org.prebid.server.functional.model.request.auction.VideoPlacementSubtypes | ||
| import org.prebid.server.functional.model.request.auction.VideoPlcmtSubtype | ||
| import org.prebid.server.functional.util.PBSUtils | ||
|
|
||
| import static org.prebid.server.functional.model.request.auction.DebugCondition.ENABLED | ||
|
|
||
| class GeneralGetRequest { | ||
|
|
||
| @JsonProperty("srid") | ||
| String storedRequestId | ||
|
|
||
| @JsonProperty("tag_id") | ||
| String storedRequestIdLegacy | ||
|
|
||
| @JsonProperty("pubid") | ||
| String accountId | ||
|
|
||
| @JsonProperty("account") | ||
| String accountIdLegacy | ||
|
|
||
| @JsonProperty("tmax") | ||
| Integer timeoutMax | ||
|
|
||
| @JsonProperty("debug") | ||
| DebugCondition debug | ||
|
|
||
| @JsonProperty("of") | ||
| String outputFormat | ||
|
|
||
| @JsonProperty("om") | ||
| String outputModule | ||
|
|
||
| @JsonProperty("rprof") | ||
| List<String> requestProfiles | ||
|
|
||
| @JsonProperty("iprof") | ||
| List<String> impProfiles | ||
|
|
||
| @JsonProperty("sarid") | ||
| String storedAuctionResponseId | ||
|
|
||
| @JsonProperty("mimes") | ||
| List<String> mimes | ||
|
|
||
| @JsonProperty("w") | ||
| Integer width | ||
|
|
||
| @JsonProperty("h") | ||
| Integer height | ||
|
|
||
| @JsonProperty("ow") | ||
| Integer originalWidth | ||
|
|
||
| @JsonProperty("oh") | ||
| Integer originalHeight | ||
|
|
||
| @JsonProperty("sizes") | ||
|
||
| Object sizes | ||
|
|
||
| @JsonProperty("ms") | ||
| Object sizesLegacy | ||
|
|
||
| @JsonProperty("slot") | ||
|
||
| String slot | ||
|
|
||
| @JsonProperty("mindur") | ||
| Integer minDuration | ||
|
|
||
| @JsonProperty("maxdur") | ||
| Integer maxDuration | ||
|
|
||
| @JsonProperty("api") | ||
| List<Integer> api | ||
|
|
||
| @JsonProperty("battr") | ||
| List<Integer> battr | ||
|
||
|
|
||
| @JsonProperty("delivery") | ||
| List<Integer> delivery | ||
|
|
||
| @JsonProperty("linearity") | ||
| Integer linearity | ||
|
|
||
| @JsonProperty("minbr") | ||
| Integer minBitrate | ||
|
|
||
| @JsonProperty("maxbr") | ||
| Integer maxBitrate | ||
|
|
||
| @JsonProperty("maxex") | ||
| Integer maxExtended | ||
|
|
||
| @JsonProperty("maxseq") | ||
| Integer maxSequence | ||
|
|
||
| @JsonProperty("mincpms") | ||
| Integer minCpmPerSec | ||
|
|
||
| @JsonProperty("poddur") | ||
| Integer podDuration | ||
|
|
||
| @JsonProperty("podid") | ||
| Integer podId | ||
|
|
||
| @JsonProperty("podseq") | ||
| Integer podSequence | ||
|
|
||
| @JsonProperty("proto") | ||
| List<Integer> proto | ||
|
||
|
|
||
| @JsonProperty("rqddurs") | ||
| List<Integer> requiredDurations | ||
|
|
||
| @JsonProperty("seq") | ||
| Integer sequence | ||
|
|
||
| @JsonProperty("slotinpod") | ||
| Integer slotInPod | ||
|
|
||
| @JsonProperty("startdelay") | ||
| Integer startDelay | ||
|
|
||
| @JsonProperty("skip") | ||
| Integer skip | ||
|
|
||
| @JsonProperty("skipafter") | ||
| Integer skipAfter | ||
|
|
||
| @JsonProperty("skipmin") | ||
| Integer skipMin | ||
|
|
||
| @JsonProperty("pos") | ||
| Integer position | ||
|
|
||
| @JsonProperty("stitched") | ||
| Integer stitched | ||
|
|
||
| @JsonProperty("feed") | ||
| Integer feed | ||
|
|
||
| @JsonProperty("nvol") | ||
| Integer normalizedVolume | ||
|
|
||
| @JsonProperty("placement") | ||
| VideoPlacementSubtypes placement | ||
|
|
||
| @JsonProperty("plcmt") | ||
| VideoPlcmtSubtype placementSubtype | ||
|
|
||
| @JsonProperty("playbackend") | ||
| Integer playbackEnd | ||
|
|
||
| @JsonProperty("playbackmethod") | ||
| List<Integer> playbackMethods | ||
|
|
||
| @JsonProperty("boxingallowed") | ||
| Integer boxingAllowed | ||
|
|
||
| @JsonProperty("btype") | ||
| List<Integer> bannerTypes | ||
|
|
||
| @JsonProperty("expdir") | ||
| List<Integer> expandableDirections | ||
|
|
||
| @JsonProperty("topframe") | ||
| Integer topFrame | ||
|
|
||
| @JsonProperty("targeting") | ||
| String targeting | ||
|
|
||
| @JsonProperty("consent") | ||
| String consent | ||
|
|
||
| @JsonProperty("gdpr_consent") | ||
| String consentLegacy | ||
|
|
||
| @JsonProperty("consent_string") | ||
| String consentStringLegacy | ||
|
|
||
| @JsonProperty("gdpr") | ||
| Integer gdpr | ||
|
|
||
| @JsonProperty("privacy") | ||
| Integer gdprPrivacy | ||
|
|
||
| @JsonProperty("gdpr_applies") | ||
| String gdprApplies | ||
|
|
||
| @JsonProperty("usp") | ||
| String usPrivacy | ||
|
|
||
| @JsonProperty("addtl_consent") | ||
| String additionalConsent | ||
|
|
||
| @JsonProperty("consent_type") | ||
| ConsentType consentType | ||
|
|
||
| @JsonProperty("gpp_sid") | ||
| List<Integer> gppSid | ||
|
|
||
| @JsonProperty("coppa") | ||
| Integer coppa | ||
|
|
||
| @JsonProperty("gpc") | ||
| Integer globalPrivacyControl | ||
|
|
||
| @JsonProperty("dnt") | ||
| Integer doNotTrack | ||
|
|
||
| @JsonProperty("lmt") | ||
| Integer limitAdTracking | ||
|
|
||
| @JsonProperty("bcat") | ||
| List<String> blockedCategories | ||
|
|
||
| @JsonProperty("badv") | ||
| List<String> blockedAdvertisers | ||
|
|
||
| @JsonProperty("page") | ||
| String page | ||
|
|
||
| @JsonProperty("bundle") | ||
| String appBundle | ||
|
|
||
| @JsonProperty("name") | ||
| String appName | ||
|
|
||
| @JsonProperty("storeurl") | ||
| String storeUrl | ||
|
|
||
| @JsonProperty("cgenre") | ||
| String contentGenre | ||
|
|
||
| @JsonProperty("clang") | ||
| String contentLanguage | ||
|
|
||
| @JsonProperty("crating") | ||
| String contentRating | ||
|
|
||
| @JsonProperty("ccat") | ||
| Integer contentCategory | ||
|
|
||
| @JsonProperty("ccattax") | ||
| List<Integer> contentCategoryTaxonomy | ||
|
|
||
| @JsonProperty("cseries") | ||
| String contentSeries | ||
|
|
||
| @JsonProperty("rss_feed") | ||
| String contentSeriesAlias | ||
|
|
||
| @JsonProperty("ctitle") | ||
| String contentTitle | ||
|
|
||
| @JsonProperty("curl") | ||
| String contentUrl | ||
|
|
||
| @JsonProperty("clivestream") | ||
| String contentLivestream | ||
|
|
||
| @JsonProperty("ip") | ||
| String deviceIp | ||
|
|
||
| @JsonProperty("ua") | ||
| String deviceUa | ||
|
|
||
| @JsonProperty("dtype") | ||
| DeviceType deviceType | ||
|
|
||
| @JsonProperty("ifa") | ||
| String deviceIfa | ||
|
|
||
| @JsonProperty("ifat") | ||
| String deviceIfaType | ||
|
|
||
| @JsonProperty("unknown") | ||
| String unknown | ||
|
|
||
| @JsonProperty("unknown_alias") | ||
| String unknownAlias | ||
|
|
||
| static GeneralGetRequest getDefault(String storedRequestId = PBSUtils.randomNumber) { | ||
| new GeneralGetRequest(storedRequestId: storedRequestId, debug: ENABLED) | ||
| } | ||
|
|
||
| String resolveStoredRequestId() { | ||
| storedRequestId ?: storedRequestIdLegacy | ||
| } | ||
|
|
||
| String resolveAccountId() { | ||
| accountId ?: accountIdLegacy | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| package org.prebid.server.functional.model.response.get | ||
|
|
||
| import groovy.transform.ToString | ||
| import org.prebid.server.functional.model.response.amp.AmpResponseExt | ||
|
|
||
| @ToString(includeNames = true, ignoreNulls = true) | ||
| class GeneralGetResponse { | ||
|
|
||
| Map<String, String> targeting | ||
| GeneralGetResponseExt ext | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| package org.prebid.server.functional.model.response.get | ||
|
|
||
| import groovy.transform.ToString | ||
| import org.prebid.server.functional.model.response.BidderError | ||
| import org.prebid.server.functional.model.response.Debug | ||
| import org.prebid.server.functional.model.response.auction.ErrorType | ||
|
|
||
| @ToString(includeNames = true, ignoreNulls = true) | ||
| class GeneralGetResponseExt { | ||
|
|
||
| Debug debug | ||
| Map<ErrorType, List<BidderError>> errors | ||
| Map<ErrorType, List<BidderError>> warnings | ||
| } |
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.
No, really needed here JsonProperty