From 752b2ad7b1a2ecaa60f0988f4272663e7c7bcf38 Mon Sep 17 00:00:00 2001 From: Alexander Stein <61464190+ohsh6o@users.noreply.github.com> Date: Mon, 7 Dec 2020 12:50:13 -0500 Subject: [PATCH] Check for Additional Extraneous Implemented Requirements for Controls (#34) * Fix analysis report looping bug. Since we were looping through items that are > 1, we were starting to loop through the 2nd item of a list of reports (//reports/report) in a analysis template in a variable. Noticed this when looking at result of a lv:report() on implemented-requirements. * Woops, misread docs syntax. * Fix-up actual assertion. * Add tests. * Fix spacing issue. * And fix misleading comment for negative test. --- resources/validations/src/ssp.sch | 6 ++-- resources/validations/test/ssp.xspec | 44 ++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/resources/validations/src/ssp.sch b/resources/validations/src/ssp.sch index ddd339387..bb2e6de7c 100644 --- a/resources/validations/src/ssp.sch +++ b/resources/validations/src/ssp.sch @@ -179,9 +179,9 @@ items total. - + set as , - and set as . @@ -217,8 +217,10 @@ + The following are required: This SSP has not implemented : + This SSP has implemented extraneous not needed given the selected profile: diff --git a/resources/validations/test/ssp.xspec b/resources/validations/test/ssp.xspec index fdb7bdd34..ce23b670c 100644 --- a/resources/validations/test/ssp.xspec +++ b/resources/validations/test/ssp.xspec @@ -111,6 +111,50 @@ + + + + + + low + + + + + + + + + + + + + + + + + + low + + + + + + + + + + + +