diff options
author | Zhao Chao <zhaochao1984@gmail.com> | 2018-02-12 15:19:58 +0800 |
---|---|---|
committer | Zhao Chao <zhaochao1984@gmail.com> | 2018-02-12 18:11:22 +0800 |
commit | 71ebd353ca79088dd737d5651829ef51829d67dc (patch) | |
tree | eabf21c4f45593ecd9f593cc02fd2a69cfb401d7 /tox.ini | |
parent | f0c03c114e93cd580f74d4c31d51760b7a511d29 (diff) | |
download | trove-71ebd353ca79088dd737d5651829ef51829d67dc.tar.gz |
Generate policy sample file automatically.
A new entrypoint in setup.cfg and a config file are added for
using olso.policy helper script to generate the sample file.
A new tox target also is added to simplify the environment
setting up. Now policy sample file can be generated
automatically, so the in-repo sample file is no longer needed.
Co-Authored-By: Andrew Laski <andrew@lascii.com>
Partial-Implements: blueprint policy-in-code
Change-Id: Ic336fa154ccc05b5e9db3a8e751a484b1cc5aa9c
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -104,6 +104,9 @@ commands = bandit -r trove -n5 -x tests envdir = {toxworkdir}/bandit commands = bandit-baseline -r trove -n5 -x tests -ii -ll +[testenv:genpolicy] +commands = oslopolicy-sample-generator --config-file=tools/trove-policy-generator.conf + [testenv:install-guide] commands = sphinx-build -a -E -W -d install-guide/build/doctrees -b html install-guide/source install-guide/build/html |