This change adds a parsing check to ERROR if Context field is Empty.
Until now there had not been a requirement of non empty fields, so in
case this is needed in the future for other key/values, a collection is
created.
Test plan
PASS: * Add/modify an alarm/log in events.yaml file with Context field
set to <Empty>.
* Run the checkEventYaml script and check it fails.
PASS: * Check that all the events in events.yaml file have the Context
field set to a non empty value.
* Run the checkEventYaml script and check it ends successfully.
Reviewed: https:/ /review. opendev. org/c/starlingx /fault/ +/883860 /opendev. org/starlingx/ fault/commit/ 6438565a4d9d50f 63a0b46e207c545 7595abc531
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 6438565a4d9d50f 63a0b46e207c545 7595abc531
Author: Agustin Carranza <email address hidden>
Date: Mon May 22 13:40:34 2023 -0300
Add parsing check when Context field is empty
This change adds a parsing check to ERROR if Context field is Empty.
Until now there had not been a requirement of non empty fields, so in
case this is needed in the future for other key/values, a collection is
created.
Test plan
PASS: * Add/modify an alarm/log in events.yaml file with Context field
set to <Empty>.
* Run the checkEventYaml script and check it fails.
PASS: * Check that all the events in events.yaml file have the Context
field set to a non empty value.
* Run the checkEventYaml script and check it ends successfully.
Closes-bug: 2020381
Signed-off-by: Agustin Carranza <email address hidden> 525751165975fb5 d291c0c6f82
Change-Id: Ia267886dd49099