Skip to content

Add minSupportedVersion ref tests#48

Open
SlayterDev wants to merge 5 commits intomainfrom
brad/config-v2-ref-tests
Open

Add minSupportedVersion ref tests#48
SlayterDev wants to merge 5 commits intomainfrom
brad/config-v2-ref-tests

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