Guidance

prancer is a cloud validation framework using for cloud governance

Step 5 - Configure the tests

Finally, the last step before we can run Prancer is to write a test:

cat <<EOT >> validation/container1/test.json
{
    "fileType": "test",
    "snapshot": "snapshot",
    "testSet": [
        {
            "testName ": "Test",
            "version": "0.1",
            "cases": [
                {
                    "testId": "1",
                    "rule": "exists({1}.location)"
                },
                {
                    "testId": "2",
                    "rule": "{1}.location='REPLACE THIS WITH YOUR AZURE LOCATION CODE'"
                }
            ]
        }
    ]
}
EOT

Important

Replace the values in CAPITAL in the last commands or the example won’t work.

Suggest Edit