@@ -22,6 +22,7 @@ The tool is divided in two main parts:
2222Both fetch and check phases are run by unittest. This is very convenient
2323as fetchers and checks are loaded automatically by ``unittest ``.
2424
25+
2526Evidences
2627~~~~~~~~~
2728
@@ -145,7 +146,7 @@ This is a list of modifications that are completely forbidden:
145146* Adding live-generated data that does not come from the source.
146147
147148* Applying `check-like ` logic (e.g. your data update if it includes an
148- `if `). Checkers should test the evidence, not fetchers.
149+ `if `). Checks should test the evidence, not fetchers.
149150
150151Evidence Validation
151152===================
@@ -231,6 +232,13 @@ due to an unavailable evidence dependency.
231232 ...
232233 return json.dumps(foo_bar_data)
233234
235+ Fetcher Execution
236+ =================
237+
238+ The Auditree framework will run all fetchers (tests prefixed by ``fetch_ ``)
239+ that it can find.
240+
241+
234242Compliance Checks
235243~~~~~~~~~~~~~~~~~
236244
@@ -242,8 +250,8 @@ provided on the command line.
242250Checks *assume * that all evidence is retrieved by fetchers. Consequently
243251checks **should not ** be used to retrieve or store any ``RawEvidence `` in the
244252evidence locker. Each check class may have from one to multiple checks defined
245- (that is, a check is a method prefixed with `test_ ` in a check class). Each of
246- these checks will be executed by the compliance tool with the following
253+ (that is, a check is a method prefixed with `` test_ ` ` in a check class). Each of
254+ these checks will be executed by the Auditree framework with the following
247255possible results:
248256
249257* ``OK ``: the check ran successfully and **passed ** all validations.
@@ -359,12 +367,34 @@ prior to executing the check's logic.
359367 self.add_warnings('bar stuff', warnings)
360368 self.add_successes('bar stuff', successes)
361369
370+ Check Execution
371+ ===============
372+
373+ The Auditree framework executes checks (tests prefixed by ``test_ ``) based
374+ on accreditation groupings defined in a ``controls.json `` config file.
375+ This is especially useful when targeting check result content to the
376+ appropriate groups of people. The framework will by default look for
377+ ``controls.json `` in the current directory. It is possible to supply the
378+ framework with alternate ``controls.json `` location(s) by providing an
379+ alternate path or paths at the end of a compliance check execution command via
380+ the CLI. In the case of multiple locations, the framework will combine the
381+ content of all ``controls.json `` files found together. With this check to
382+ accreditation mapping, the framework can execute checks based on the
383+ accreditations passed to the framework by the CLI.
384+
385+ ``controls.json `` content format example::
386+
387+ {
388+ "chk_pkg.chk_cat_foo.checks.chk_module_foo.FooCheckClass": ["accred.one"],
389+ "chk_pkg.chk_cat_bar.checks.chk_module_bar.BarCheckClass": ["accred.one", "accred.two"]
390+ }
391+
362392
363393Fixers
364394~~~~~~
365395
366396After checks have been run, but before notifications or reports are
367- generated, the compliance tool will optionally try to fix the
397+ generated, the Auditree framework will optionally try to fix the
368398issues automatically. This is controlled with the ``--fix `` option.
369399By default it is ``off ``, and this is the mode that is used during the
370400daily CI runs in Travis. But you can also set it to ``dry-run `` or ``on ``.
@@ -379,6 +409,7 @@ in the notification message.
379409
380410See :ref: `fixers ` section for more information.
381411
412+
382413Report Builder
383414~~~~~~~~~~~~~~
384415
@@ -402,10 +433,11 @@ messages to stdout, etc).
402433
403434See :ref: `notifiers-description ` section for more information.
404435
436+
405437Execution Config
406438~~~~~~~~~~~~~~~~
407439
408- The compliance tool is designed to be run locally from your PC or from
440+ The Auditree framework is designed to be run locally from your PC or from
409441a CI server like Jenkins or Travis. The execution can be tweaked at 2
410442levels:
411443
@@ -422,6 +454,7 @@ levels:
422454
423455.. _credentials :
424456
457+
425458Credentials
426459~~~~~~~~~~~
427460
0 commit comments