/app-config-checker

Compares two yaml files, showing the diffs in a git-style

Primary LanguagePython

app-config-checker

Compares two yaml files to see which keys are present in one file but absent in another. It does not (currently) check for differences between values. It is designed to work only in the context of an HMRC worskspace, with app-config-dev, -qa etc.

Requirements

  • Python
  • pip

Setup

pip install -r requirements.txt

or:

sudo -H pip install -r requirements.txt

Checker

Checks the diff between environments for an app.

Usage

display the help file:

./bin/checker.py -h

compare the staging and production versions of config for the vat-core project:

./bin/checker.py $WORKSPACE vat-core staging prod

Keys present in staging but not in prod will be shows with a '-', keys in prod but not staging will be shown with '+'

Diff

Tells you the value of one key in all the environments for a single project.

Usage

/bin/diff.py $WORKSPACE vat-core hmrc_config.Prod.databases.port