extensions-website/extensions/tests/files
Oleg Komarov e3ca4daed7 Permissions: change from list to key/value pairs in manifest (#168)
See #166

This PR changes validation rules for `permissions` field of the manifest.
When present, the field is expected to represent a dictionary of {slug: reason}
key-value pairs. Previous format was a list of [slug].

Validation for these reason strings ensures that a reason is a non-empty string,
no longer than 64 characters, and doesn't end in punctuation.

No visible changes on the website are done in this PR.
`/api/v1/extensions/` endpoint now returns `permissions` field as a dict
{slug: reason}, where reason is taken from `VersionPermission.help` field
managed via admin.

The new values are stored in metadata, but the `Version.permissions` model
is not changing yet, and thus it doesn't store the reason values.
We can decide to keep the model as is and lookup the reasons from
`Version.file.metadata`, but this needs more thought.

Reviewed-on: #168
Reviewed-by: Anna Sirota <annasirota@noreply.localhost>
2024-06-04 17:34:31 +02:00
..
addon-with-permissions.zip Permissions: change from list to key/value pairs in manifest (#168) 2024-06-04 17:34:31 +02:00
addon-without-dir.zip Extra validation of the uploaded ZIP (#73) 2024-04-11 12:32:47 +02:00
amaranth-1.0.8.zip Fix (most) unittests 2024-02-20 21:12:55 +01:00
asset_bundle-0.1.0.zip Fix (most) unittests 2024-02-20 21:12:55 +01:00
blender_gis-2.2.8.zip Fix (most) unittests 2024-02-20 21:12:55 +01:00
edit_breakdown-0.1.0.zip Add test for blender_version_max in manifest (#97) 2024-05-03 15:04:11 +02:00
empty.txt Upload files, create extensions of different types + tests 2022-08-31 17:31:22 +02:00
empty.zip New manifest and archive 2024-01-26 15:48:43 +01:00
invalid-addon-dir-no-init.zip Extra validation of the uploaded ZIP (#73) 2024-04-11 12:32:47 +02:00
invalid-addon-no-init.zip Extra validation of the uploaded ZIP (#73) 2024-04-11 12:32:47 +02:00
invalid-archive.zip Extra validation of the uploaded ZIP (#73) 2024-04-11 12:32:47 +02:00
invalid-manifest-path.zip Extra validation of the uploaded ZIP (#73) 2024-04-11 12:32:47 +02:00
invalid-manifest-toml.zip Extra validation of the uploaded ZIP (#73) 2024-04-11 12:32:47 +02:00
invalid-missing-wheels.zip Permissions: change from list to key/value pairs in manifest (#168) 2024-06-04 17:34:31 +02:00
invalid-no-manifest.zip Extra validation of the uploaded ZIP (#73) 2024-04-11 12:32:47 +02:00
invalid-theme-multiple-xmls.zip Extra validation of the uploaded ZIP (#73) 2024-04-11 12:32:47 +02:00
keymap.zip Fix (most) unittests 2024-02-20 21:12:55 +01:00
test_featured_image_0001.png Icon and featured image (#113) 2024-05-07 19:08:41 +02:00
test_icon_0001.png Icon and featured image (#113) 2024-05-07 19:08:41 +02:00
test_preview_image_0001.gif Previews: allow JPEG, PNG, WebP and MP4 2024-04-04 16:04:45 +02:00
test_preview_image_0001.png Initial models, tests and other boilerplate 2022-08-25 17:37:48 +02:00
test_preview_image_0001.tif Initial models, tests and other boilerplate 2022-08-25 17:37:48 +02:00
test_preview_image_0001.webp Previews: allow JPEG, PNG, WebP and MP4 2024-04-04 16:04:45 +02:00
test_preview_image_0002.png Initial models, tests and other boilerplate 2022-08-25 17:37:48 +02:00
test_preview_image_0002.tif Initial models, tests and other boilerplate 2022-08-25 17:37:48 +02:00
test_preview_image_0003.png Initial models, tests and other boilerplate 2022-08-25 17:37:48 +02:00
test_preview_image_renamed_gif.png Previews: allow JPEG, PNG, WebP and MP4 2024-04-04 16:04:45 +02:00
theme.zip Unittets: Fixing most of the unittests 2024-02-25 19:04:51 +01:00