-
Notifications
You must be signed in to change notification settings - Fork 224
Tests: Refactoring functional tests #3657
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
Open
osulzhenko
wants to merge
37
commits into
master
Choose a base branch
from
refactoring-functional-tests
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 30 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
c6ddf01
Refactoring functional tests
osulzhenko f10db31
Merge branch 'refs/heads/master' into refactoring-functional-tests
osulzhenko ec3b6a2
Refactoring functional tests
osulzhenko c83bc82
Merge branch 'refs/heads/master' into refactoring-functional-tests
osulzhenko a31c436
Resolve conflicts
osulzhenko ed705d0
update clean up for tests
osulzhenko 92b055c
Fix invalid tests
osulzhenko 479ab21
Merge branch 'refs/heads/master' into refactoring-functional-tests
osulzhenko fa6de4d
Update after review
osulzhenko dca221a
Update after review
osulzhenko 72bb241
Update after review
osulzhenko e24537f
Merge branch 'refs/heads/master' into refactoring-functional-tests
osulzhenko 229966e
Merge branch 'refs/heads/master' into refactoring-functional-tests
osulzhenko 0b11156
update after review
osulzhenko 430d0ac
Merge branch 'refs/heads/master' into refactoring-functional-tests
osulzhenko 9db9b6a
Merge branch 'refs/heads/master' into refactoring-functional-tests
osulzhenko 4df5109
Merge branch 'refs/heads/master' into refactoring-functional-tests
osulzhenko cc71627
Merge branch 'refs/heads/master' into refactoring-functional-tests
osulzhenko 56b4c1e
Update functional tests
osulzhenko 67c57c7
Fix module tests
osulzhenko b66572a
Fix module tests
osulzhenko ec1bcf1
Fix module tests
osulzhenko 8af8749
Merge branch 'refs/heads/master' into refactoring-functional-tests
osulzhenko f5e6593
fix imports
osulzhenko d3371fb
fix imports
osulzhenko 11f47a3
fix mr conflicts
osulzhenko 8a4d564
Optimize module tests
osulzhenko de08366
fix gpp error
osulzhenko 6f32685
update module tests
osulzhenko 42acf18
Merge branch 'refs/heads/master' into refactoring-functional-tests
osulzhenko 82c8a7d
Move creation of local stack container
marki1an 5761e58
Removing duplication and add NOOP metrics
marki1an 1b0aacc
Merge remote-tracking branch 'origin/master' into refactoring-functio…
marki1an ef7d348
Resolve conflict
marki1an a091b96
Update: Remove unnecessary metics checks
marki1an 4fb9287
Update: Remove unnecessary metics checks
marki1an ae8d1d3
Merge remote-tracking branch 'origin/master' into refactoring-functio…
marki1an File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
20 changes: 0 additions & 20 deletions
20
src/test/groovy/org/prebid/server/functional/model/ModuleName.groovy
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
1 change: 0 additions & 1 deletion
1
src/test/groovy/org/prebid/server/functional/model/config/ModuleHookImplementation.groovy
This file contains hidden or 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
24 changes: 24 additions & 0 deletions
24
src/test/groovy/org/prebid/server/functional/model/config/ModuleName.groovy
This file contains hidden or 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,24 @@ | ||
| package org.prebid.server.functional.model.config | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonValue | ||
|
|
||
| enum ModuleName { | ||
|
|
||
| PB_RICHMEDIA_FILTER('pb-richmedia-filter'), | ||
| PB_RESPONSE_CORRECTION ('pb-response-correction'), | ||
| ORTB2_BLOCKING('ortb2-blocking'), | ||
| PB_REQUEST_CORRECTION('pb-request-correction'), | ||
| OPTABLE_TARGETING('optable-targeting'), | ||
| PB_RULE_ENGINE('pb-rule-engine'), | ||
|
|
||
| @JsonValue | ||
| final String code | ||
|
|
||
| ModuleName(String code) { | ||
| this.code = code | ||
| } | ||
|
|
||
| static ModuleName forValue(ModuleHookImplementation moduleHook) { | ||
| values().find { moduleHook.code.contains(it.code) } | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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
5 changes: 4 additions & 1 deletion
5
src/test/groovy/org/prebid/server/functional/model/request/auction/User.groovy
This file contains hidden or 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
11 changes: 7 additions & 4 deletions
11
src/test/groovy/org/prebid/server/functional/model/request/auction/UserExtData.groovy
This file contains hidden or 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 |
|---|---|---|
| @@ -1,21 +1,24 @@ | ||
| package org.prebid.server.functional.model.request.auction | ||
|
|
||
| import com.fasterxml.jackson.databind.PropertyNamingStrategies | ||
| import com.fasterxml.jackson.databind.annotation.JsonNaming | ||
| import groovy.transform.ToString | ||
| import org.prebid.server.functional.util.PBSUtils | ||
|
|
||
| @ToString(includeNames = true, ignoreNulls = true) | ||
| @JsonNaming(PropertyNamingStrategies.LowerCaseStrategy) | ||
| class UserExtData { | ||
|
|
||
| List<String> keywords | ||
| String buyeruid | ||
| List<String> buyeruids | ||
| String buyerUid | ||
| List<String> buyerUids | ||
| Geo geo | ||
|
|
||
| static UserExtData getFPDUserExtData() { | ||
| new UserExtData().tap { | ||
| keywords = [PBSUtils.randomString] | ||
| buyeruid = PBSUtils.randomString | ||
| buyeruids = [PBSUtils.randomString] | ||
| buyerUid = PBSUtils.randomString | ||
| buyerUids = [PBSUtils.randomString] | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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
13 changes: 13 additions & 0 deletions
13
src/test/groovy/org/prebid/server/functional/model/response/auction/AnalyticTagStatus.groovy
This file contains hidden or 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,13 @@ | ||
| package org.prebid.server.functional.model.response.auction | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonValue | ||
|
|
||
| enum AnalyticTagStatus { | ||
|
|
||
| NONE, LOOKUP, CONTROL, SUCCESS, ERROR, SUCCESS_ALLOW, SUCCESS_BLOCK, SKIPPED, RUN | ||
|
|
||
| @JsonValue | ||
| String getValue() { | ||
| name().toLowerCase().replace('_', '-') | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.