Skip to content

Commit

Permalink
Test: Update gdpr log message and targeting (#2772)
Browse files Browse the repository at this point in the history
  • Loading branch information
marki1an authored Nov 20, 2023
1 parent f17477f commit 98fd4b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ class TargetingSpec extends BaseSpec {
response.targeting[customBidRequest] == uuid
response.targeting[customAmp] == ampRequest.curl
response.targeting[customStatic] == customValue
response.targeting[customBidder.replace("{{BIDDER}}", GENERIC.value)]
== storedBidResponse.seatbid[0].bid[0].price.toString()
response.targeting[customBidder.replace("{{BIDDER}}", GENERIC.value)] ==
storedBidResponse.seatbid[0].bid[0].price.stripTrailingZeros().toString()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ class GdprAmpSpec extends PrivacyBaseSpec {

and: "Logs should contain proper vendor list version"
def logs = privacyPbsService.getLogsByTime(startTime)
assert getLogsByText(logs, "Created new TCF 2 vendor list for version ${tcfPolicyVersion.vendorListVersion}")
assert getLogsByText(logs, "Created new TCF 2 vendor list for version " +
"v${tcfPolicyVersion.vendorListVersion}.${tcfPolicyVersion.vendorListVersion}")

cleanup: "Stop container with default request"
serverContainer.stop()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ class GdprAuctionSpec extends PrivacyBaseSpec {

and: "Logs should contain proper vendor list version"
def logs = privacyPbsService.getLogsByTime(startTime)
assert getLogsByText(logs, "Created new TCF 2 vendor list for version ${tcfPolicyVersion.vendorListVersion}")
assert getLogsByText(logs, "Created new TCF 2 vendor list for version " +
"v${tcfPolicyVersion.vendorListVersion}.${tcfPolicyVersion.vendorListVersion}")

cleanup: "Stop container with default request"
serverContainer.stop()
Expand Down

0 comments on commit 98fd4b3

Please sign in to comment.