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

Test: Sec-Browsing-Topic header #2992

Conversation

marki1an
Copy link
Collaborator

No description provided.

@marki1an marki1an added the tests Functional or other tests label Feb 17, 2024
Copy link
Collaborator

@osulzhenko osulzhenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, what if segments and taxonomy_version are negative or string?

taxonomy_version is not an integer, or is not in the range of 1-10, error
segments must be integers greater than 0 and less than MAXINT, error

Comment on lines 281 to 282
assert bidderRequest.user.data.segment.collectMany { it -> it.id }
.containsAll([secBrowsingTopic.segments[0]].sort())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be simplified:
bidderRequest.user.data[0].segment.id == secBrowsingTopic.segments

Comment on lines 216 to 217
def oneSecBrowsingTopic = SecBrowsingTopic.defaultSetBrowsingTopic(1, [PBSUtils.randomNumber as String], randomSegClass)
def secondSecBrowsingTopic = SecBrowsingTopic.defaultSetBrowsingTopic(1, [PBSUtils.randomNumber as String], randomSegClass)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

first instead of one, but why are you using it in some cases one, two and in this one, first, second?

def "PBS should populate user.data with empty name when privacy sand box present with empty name"() {
given: "PBS with empty auction privacy sand box"
def prebidServerServiceWithTopicsDomain
= pbsServiceFactory.getService(["auction.privacysandbox.topicsdomain": ""])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about case when "auction.privacysandbox.topicsdomain": null?

@SerhiiNahornyi SerhiiNahornyi merged commit f97a168 into sec-browsing-topics-support Feb 20, 2024
@SerhiiNahornyi SerhiiNahornyi deleted the update-functional-tests-for-sec-browsing-topics-support branch February 20, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Functional or other tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants