set_legacy_permission to report a warning instead of info

This commit is contained in:
Alexandre Aubin 2021-09-24 12:24:57 +02:00 committed by GitHub
parent f3147fae35
commit e1cbc527dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1492,7 +1492,7 @@ class Script(TestSuite):
@test() @test()
def set_legacy_permissions(self): def set_legacy_permissions(self):
if self.containsregex(r'ynh_app_setting_set .*protected_') or self.containsregex(r'ynh_app_setting_set .*skipped_'): if self.containsregex(r'ynh_app_setting_set .*protected_') or self.containsregex(r'ynh_app_setting_set .*skipped_'):
yield Info("permission system: it looks like the app is still using the legacy permission system (unprotected/protected/skipped uris/regexes setting). Please check https://yunohost.org/packaging_apps_permissions for a documentation on how to migrate the app to the new permission system.") yield Warning("permission system: it looks like the app is still using the legacy permission system (unprotected/protected/skipped uris/regexes setting). Please check https://yunohost.org/packaging_apps_permissions for a documentation on how to migrate the app to the new permission system.")
@test() @test()
def normalize_url_path(self): def normalize_url_path(self):