Skip to content

Support failed color output in nested

The pop_validator project is a port of saltcheck to pop. It runs idem execution modules, and runs asserts on their output (a jinja/yaml/anything_in_rend more capable version of inspec).

Rend's nested is used as the default renderer, but there does not appear to be a way to mark output color to alert on failures. Thus success messages and failures are both colored the same.

Is it possible to extend nested output to take color hints or the whole or parts of the output?

You'll have to use your imagination and pretend this is colored:

5 second sleep:
    ----------
    assertion1:
        ----------
        status:
            Fail: 1 is not equal to 0
    status:
        Fail
    duration:
        5.0032
TEST RESULTS:
    ----------
    Passed:
        0
    Failed:
        1
    Skipped:
        0
    Execution Time:
        5.0092