Skip to content
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

Use placeholders in test resources instead of concrete urls where possible #1084

Merged
merged 1 commit into from
Dec 23, 2020

Conversation

schernysh
Copy link
Contributor

No description provided.

@DGarbar DGarbar merged commit a756cc1 into bid-adm-vast-refactoring Dec 23, 2020
@DGarbar DGarbar deleted the use-placeholders-in-tests branch December 23, 2020 12:48
rpanchyk pushed a commit that referenced this pull request Feb 23, 2021
* Add modifying of VAST for video bids and add validation

- Add validation for Video bids. `bid.adm` or `bid.nurl` needs to be present
  - This case now, is not possible `<VASTAdTagURI><![CDATA[null]]></VASTAdTagURI>`
- Bid adm will be updated as cache. (see prebid/prebid-server#1015)
- Bid type is defined by bidder, not our (`imp.video != null`, etc) checks. For example Appnexus use `bid.ext.appnexus.bid_ad_type` to define it. (that's why there are a lot of changed cache jsons. Also add ordering for tests)

Refactored a bit.
- Removed confusing maps
- Removed confusing checks
- Removed several imp to bid matching

Possible improvements (in another ticket bc current PR is too large)
- Extract more event URL to another class
- Use bidInfo in BidResponseCreator for BidResponse

* Merged master and fixed corresponding imp can't be null

* Fix after review. (without changing localhost/event)

* Use placeholders in test resources instead of concrete urls where possible (#1084)

* Fix tests and remove ordering

* Replace usage of Wiremock EqualToJsonPattern with custom implementation to prevent incorrect json comparison

* fix openx

* Use equalToBidCacheRequest for consistency and add openrtbCacheDebugComparator() when debug is used (fix flaky tests)

* Remove redundant code

Co-authored-by: Sergii Chernysh <[email protected]>
Co-authored-by: rpanchyk <[email protected]>
nickluck8 pushed a commit that referenced this pull request Aug 9, 2021
* Add modifying of VAST for video bids and add validation

- Add validation for Video bids. `bid.adm` or `bid.nurl` needs to be present
  - This case now, is not possible `<VASTAdTagURI><![CDATA[null]]></VASTAdTagURI>`
- Bid adm will be updated as cache. (see prebid/prebid-server#1015)
- Bid type is defined by bidder, not our (`imp.video != null`, etc) checks. For example Appnexus use `bid.ext.appnexus.bid_ad_type` to define it. (that's why there are a lot of changed cache jsons. Also add ordering for tests)

Refactored a bit.
- Removed confusing maps
- Removed confusing checks
- Removed several imp to bid matching

Possible improvements (in another ticket bc current PR is too large)
- Extract more event URL to another class
- Use bidInfo in BidResponseCreator for BidResponse

* Merged master and fixed corresponding imp can't be null

* Fix after review. (without changing localhost/event)

* Use placeholders in test resources instead of concrete urls where possible (#1084)

* Fix tests and remove ordering

* Replace usage of Wiremock EqualToJsonPattern with custom implementation to prevent incorrect json comparison

* fix openx

* Use equalToBidCacheRequest for consistency and add openrtbCacheDebugComparator() when debug is used (fix flaky tests)

* Remove redundant code

Co-authored-by: Sergii Chernysh <[email protected]>
Co-authored-by: rpanchyk <[email protected]>
nickluck8 pushed a commit that referenced this pull request Aug 10, 2021
* Add modifying of VAST for video bids and add validation

- Add validation for Video bids. `bid.adm` or `bid.nurl` needs to be present
  - This case now, is not possible `<VASTAdTagURI><![CDATA[null]]></VASTAdTagURI>`
- Bid adm will be updated as cache. (see prebid/prebid-server#1015)
- Bid type is defined by bidder, not our (`imp.video != null`, etc) checks. For example Appnexus use `bid.ext.appnexus.bid_ad_type` to define it. (that's why there are a lot of changed cache jsons. Also add ordering for tests)

Refactored a bit.
- Removed confusing maps
- Removed confusing checks
- Removed several imp to bid matching

Possible improvements (in another ticket bc current PR is too large)
- Extract more event URL to another class
- Use bidInfo in BidResponseCreator for BidResponse

* Merged master and fixed corresponding imp can't be null

* Fix after review. (without changing localhost/event)

* Use placeholders in test resources instead of concrete urls where possible (#1084)

* Fix tests and remove ordering

* Replace usage of Wiremock EqualToJsonPattern with custom implementation to prevent incorrect json comparison

* fix openx

* Use equalToBidCacheRequest for consistency and add openrtbCacheDebugComparator() when debug is used (fix flaky tests)

* Remove redundant code

Co-authored-by: Sergii Chernysh <[email protected]>
Co-authored-by: rpanchyk <[email protected]>
nickluck8 pushed a commit that referenced this pull request Aug 10, 2021
* Add modifying of VAST for video bids and add validation

- Add validation for Video bids. `bid.adm` or `bid.nurl` needs to be present
  - This case now, is not possible `<VASTAdTagURI><![CDATA[null]]></VASTAdTagURI>`
- Bid adm will be updated as cache. (see prebid/prebid-server#1015)
- Bid type is defined by bidder, not our (`imp.video != null`, etc) checks. For example Appnexus use `bid.ext.appnexus.bid_ad_type` to define it. (that's why there are a lot of changed cache jsons. Also add ordering for tests)

Refactored a bit.
- Removed confusing maps
- Removed confusing checks
- Removed several imp to bid matching

Possible improvements (in another ticket bc current PR is too large)
- Extract more event URL to another class
- Use bidInfo in BidResponseCreator for BidResponse

* Merged master and fixed corresponding imp can't be null

* Fix after review. (without changing localhost/event)

* Use placeholders in test resources instead of concrete urls where possible (#1084)

* Fix tests and remove ordering

* Replace usage of Wiremock EqualToJsonPattern with custom implementation to prevent incorrect json comparison

* fix openx

* Use equalToBidCacheRequest for consistency and add openrtbCacheDebugComparator() when debug is used (fix flaky tests)

* Remove redundant code

Co-authored-by: Sergii Chernysh <[email protected]>
Co-authored-by: rpanchyk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants