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

Add minSupportedVersion ref tests #48

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

SlayterDev
Copy link
Contributor

Add minSupportedVersion reference tests

@SlayterDev SlayterDev requested a review from kdzwinel June 23, 2022 20:16
Copy link
Member

@kdzwinel kdzwinel left a comment

Choose a reason for hiding this comment

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

LGTM, but please update the documentation (https://github.com/duckduckgo/privacy-reference-tests/tree/main/privacy-configuration#privacy-configuration-tests) and pseudo-code to cover platformVersion field.

"featureName": "contentBlocking",
"siteURL": "https://example.org",
"expectFeatureEnabled": false,
"platformVersion": "2022.5.30",
Copy link
Member

Choose a reason for hiding this comment

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

Will this test work for platforms other than extensions? e.g. android seems to use different format:

"minSupportedVersion": 51250000

They may not be able to implement this test (they may explode parsing that config file).

@kdzwinel
Copy link
Member

@SlayterDev any thoughts about what we should do about this one? Maybe separate versions for each platform version format?

@SlayterDev
Copy link
Contributor Author

@kdzwinel apologies for the delay here. We might reach out to Android on this as they are the odd man out. In the example implementation I did for this in BSK I mocked the app versions so I wonder if for the purposes of the test they would be able to mock the version to a string or make this test work somehow. Otherwise we'll need to add a backup key to the test or a separate tests file.

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