oslo.policy/oslo_policy/tests
Juan Antonio Osorio Robles f79650325f Add ability to pass in target data for the oslopolicy-checker
This allows us to test the policy for other services which might have
different or unusual target data formats (such as Barbican). It would be
possible to pass it as a nested dictionary, e.g.:

{
    "target": {
        "secret": {
            "project_id": "my project id"
        }
    }
}

or as a key pair (as oslo.policy would expect):
{
    "target.secret.project_id": "my project id"
}

Both will work (note that this logic was taken from barbican).

This fixes around the limitation that the target is hardcoded to be
"project_id", and thus allows to test more scenarios (such as the
project ID not matching).

Change-Id: Ia9f7462072a8cb142251c8bb5ef19d9a25a98119
2018-11-02 14:14:21 +02:00
..
__init__.py exported from oslo-incubator by graduate.sh 2014-12-09 14:40:01 -03:00
base.py Move _capture_stdout to a common place 2018-08-07 19:49:55 +00:00
test_checks.py http/https check rules as stevedore extensions 2017-10-05 08:40:47 -04:00
test_external.py http/https check rules as stevedore extensions 2017-10-05 08:40:47 -04:00
test_fixtures.py External Policy hook should support SSL 2017-09-27 13:08:26 -04:00
test_generator.py Move _capture_stdout to a common place 2018-08-07 19:49:55 +00:00
test_opts.py Clean up configuration option management 2015-02-18 12:45:04 -05:00
test_parser.py Change assertTrue(isinstance()) by optimal assert 2016-10-08 09:46:47 +08:00
test_policy.py Merge "Avoid redundant policy syntax checks" 2018-07-19 01:02:12 +00:00
test_shell.py Add ability to pass in target data for the oslopolicy-checker 2018-11-02 14:14:21 +02:00
test_sphinxext.py Update sphinxext to include scope_types in docs 2018-06-01 19:50:53 +00:00
test_sphinxpolicygen.py make the sphinxpolicygen extension handle multiple input/output files 2018-04-30 10:11:21 -04:00
token_fixture.py Fix typo of 'available' in token_fixture.py 2015-07-14 16:03:34 +09:00