This adds the basic framework for registering and using default policy
rules. Rules should be defined and returned from a module in
heat/policies/, and then added to the list in heat/policies/__init__.py.
new policy wrapers `registered_identified_stack` and
`registered_policy_enforce` has been added for policy enforcement of
registered rules with same parameter as `identified_stack` and
`policy_enforce` besides set `is_registered_policy` flag to true.
This flag will decide to use new policy framework or not.
Now we can use `tox -e genpolicy` to check and generate policy file.
Change-Id: I7a232b3ea7ce0f69a5b7ffa278ceace7a76b666f
Partially-Implements: bp policy-in-code
The .idea directoy is used by pycharm and should not be included
in the change list. The change extends the .gitignore file to
avoid .idea directory to be shown in the change list.
Change-Id: I439619d053439fa66ebf74a054d99b1378fb1733
The problem of integration tests was that they use their own
requirements.txt that is unable to auto-sync with global requirements.
This patch removes dedicated requirements.txt and replaces it with a
stub file listing names (and possibly versions) of the packages needed.
Then a special script parses this stub file, and for every package
that is present in main project requirements files it pulls the versions
from main project requirements, generating and installing requirements
for the integration tests on the fly.
This will help keeping requirements for the integration tests always in
sync with main project requirements.
Change-Id: Ie79338cc10cc101fbf15b51c7923e3a7b8e4fbb4
Closes-Bug: #1490866
After running tox -egenconfig, heat generates the sample configuration
file etc/heat/heat.conf.sample, however devs needs to delete it manually
to do futher work, otherwise it is always marked as untracked by git.
We should add it into .gitignore because it is an automatically generated
file by us
Change-Id: I7328dc385228dd620eca1d266dd411ea98e5d216
This change creates a pbr setup.cfg and specifies a data_files
entry to install the contrib plugin source into the /usr/lib/heat
plugin directory.
This change also temporarily disables docs building for contrib
resoures until the transition to stevedore is fully complete.
Change-Id: I1c91aee20f72dc2a5a049e67de1d6d7cbabda241
SQLite file "heat.sqlite" will be generated during test cases
running. So it should be in git ignore list.
Change-Id: I31217e3de69a016fb4daa7e353161d58c71df98b
The generated files are like '.coverage.idlerk.5365.021771', which can
not matched by '.coverage'. So change it to '.coverage.*'
Change-Id: Ie0bebceaaa15f2dcf145a708300654f8d3605271
The version information is no longer stored in a file.
Fixes: Bug #1157885
Change-Id: Ide0662ad3d7b2596743cd9427bc3b50e8357ffe1
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
Adds initial message extract and configuration to allow heat
to work with Transifex, which is the chosen platform for
translations in OpenStack.
Fixes bug #1082805
Change-Id: If8585812d6127948f75994765d274da1629069a3
Templates are saved in templates/cloudformation-examples which is ignored
by git.
Its probably time we're exposed to a bit more template diversity.
Change-Id: I667c4f08fced353201ab9234a51526bcbeb0761b
Made sure that `run_tests.sh` works properly (it was failing on the heat/bin
directory) and that all tests pass and the generated logs are .gitignored.
Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>