Rework maintenance check because the info is now in the 'antifeatures' key in the catalog. Also refuse level 8 for apps flagged as deprecated, alpha or replaced by another app

This commit is contained in:
Alexandre Aubin 2023-01-08 15:26:32 +01:00
parent b67409e3a8
commit 3898d6ab1f

View file

@ -487,9 +487,10 @@ class App(TestSuite):
# Level 8 = qualifies for level 7 + maintained + long term good quality # Level 8 = qualifies for level 7 + maintained + long term good quality
catalog_infos = self.app_catalog.catalog_infos catalog_infos = self.app_catalog.catalog_infos
is_maintained = catalog_infos and catalog_infos.get("maintained", True) is True antifeatures = catalog_infos and catalog_infos.get("antifeatures", [])
if not is_maintained:
_print(" The app is flagged as not maintained in the app catalog") if any(af in antifeatures for af in ['package-not-maintained', 'deprecated-software', 'alpha-software', 'replaced-by-another-app']):
_print(" In the catalog, the app is flagged as not maintained / deprecated / alpha or replaced by another app")
elif ( elif (
"qualify_for_level_7" in successes "qualify_for_level_7" in successes
and "is_long_term_good_quality" in successes and "is_long_term_good_quality" in successes