From: Borislav Glozman Date: Thu, 30 May 2019 09:06:02 +0000 (+0000) Subject: Merge "Make POMBA able to detect dummy notifications" X-Git-Tag: 4.0.0-ONAP~43 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=1a6bfa179802c14be20e8f7e8d2ab07cd47c0cf5;hp=35008d47c1f213c27a06db7b5af3506b3dd09ce2;p=oom.git Merge "Make POMBA able to detect dummy notifications" --- diff --git a/kubernetes/pomba/charts/pomba-validation-service/resources/bundleconfig/etc/rules/poa-event/default-rules.groovy b/kubernetes/pomba/charts/pomba-validation-service/resources/bundleconfig/etc/rules/poa-event/default-rules.groovy index df75b31eab..4a7f30452f 100644 --- a/kubernetes/pomba/charts/pomba-validation-service/resources/bundleconfig/etc/rules/poa-event/default-rules.groovy +++ b/kubernetes/pomba/charts/pomba-validation-service/resources/bundleconfig/etc/rules/poa-event/default-rules.groovy @@ -218,9 +218,27 @@ entity { name 'SDC-AAI-vf-module-instance-check' attributes 'context-list.sdc.vnfList[*].vfModuleList[*]', 'context-list.aai.vnfList[*].vfModuleList[*]' } + + useRule { + name 'AAI-not-empty' + attributes 'context-list.aai.pnfList', 'context-list.aai.vnfList', 'context-list.aai.networkList' + } } } +rule { + name 'AAI-not-empty' + category 'VNFC Consistency' + description 'Check if AAI collected anything' + errorText 'AAI section is empty' + severity 'ERROR' + attributes 'pnfList', 'vnfList', 'networkList' + validate ''' + // expect at least one not empty list + return !pnfList.isEmpty() || !vnfList.isEmpty() || !networkList.isEmpty() + ''' +} + rule { name 'SDC-AAI-vnfc-type' category 'VNFC Consistency'