commit 283768e910257f81b599d2c409bf4a021bc50eae
Author: Ben Nemec <email address hidden>
Date: Wed Jan 15 22:10:16 2020 +0000
Add oslopolicy-validator tool
As requested in the referenced RFE bug, this is a validator tool
similar to the oslo.config validator tool that operators can use to
look for basic errors in their policy files.
It's very similar to the redundant rule tool, but I decided not to
combine them because I feel like the target use cases are enough
different to warrant separate tools. Specifically, the redundant
rule tool is looking for perfectly valid rules that just happen to
be unnecessary. The validator is looking for errors in the policy
file. While it's unlikely someone looking for redundant rules wouldn't
also want to know if there is something broken in their policy file,
it's likely that someone just looking to sanity check their policy
before deployment wouldn't want to see a bunch of messages about
redundant rules that won't cause any problems.
Reviewed: https:/ /review. opendev. org/702757 /git.openstack. org/cgit/ openstack/ oslo.policy/ commit/ ?id=283768e9102 57f81b599d2c409 bf4a021bc50eae
Committed: https:/
Submitter: Zuul
Branch: master
commit 283768e910257f8 1b599d2c409bf4a 021bc50eae
Author: Ben Nemec <email address hidden>
Date: Wed Jan 15 22:10:16 2020 +0000
Add oslopolicy- validator tool
As requested in the referenced RFE bug, this is a validator tool
similar to the oslo.config validator tool that operators can use to
look for basic errors in their policy files.
It's very similar to the redundant rule tool, but I decided not to
combine them because I feel like the target use cases are enough
different to warrant separate tools. Specifically, the redundant
rule tool is looking for perfectly valid rules that just happen to
be unnecessary. The validator is looking for errors in the policy
file. While it's unlikely someone looking for redundant rules wouldn't
also want to know if there is something broken in their policy file,
it's likely that someone just looking to sanity check their policy
before deployment wouldn't want to see a bunch of messages about
redundant rules that won't cause any problems.
Change-Id: I799a754aceac08 0c11baffd7ff635 b2a9cb825f7
Closes-Bug: 1853038