From 0ac6c42fc2adb2639f2bf4cb9f812f737c75db6f Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 7 Jan 2021 17:12:52 +0100 Subject: [PATCH] Added service.package.type check. --- src/fr/devinsy/statoolinfos/checker/PropertyChecker.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java b/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java index abaf77c..0810449 100644 --- a/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java +++ b/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020 Christian Pierre MOMON + * Copyright (C) 2020-2021 Christian Pierre MOMON * * This file is part of StatoolInfos, simple service statistics tool. * @@ -160,6 +160,7 @@ public class PropertyChecker this.serviceRules.add("service.status.level", "^(OK|WARNING|ALERT|ERROR|OVER|VOID)$", PropertyMode.MANDATORY); this.serviceRules.add("service.status.description", STRING, PropertyMode.OPTIONAL); this.serviceRules.add("service.registration", "^(None|Free|Member|Client)([,;+](None|Free|Member|Client))?$", PropertyMode.MANDATORY); + this.serviceRules.add("service.package.type", "^(DISTRIB|CLONEREPO|ARCHIVE|SOURCES|CONTAINER)$", PropertyMode.MANDATORY); this.serviceRules.add("software.name", STRING, PropertyMode.MANDATORY); this.serviceRules.add("software.website", URL, PropertyMode.WISHED);