reno has an open TODO [1] to sort branches by something other than
alphabetical order. Unfortunately we're hitting this here since heat
previously had a 'vN-branch' branch naming scheme, and reno thinks those
branches are newer than e.g. 'stable/train'.
The solution is to just be stricter in how we select our branches and
tags, preventing those with hyphens in them from being accepted.
[1] https://github.com/openstack/reno/blob/3.0.0/reno/scanner.py#L850-L852
Change-Id: I75841d0dcb8e69214b7e96cf04f8b095da4d81d2
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Regression tests will be maintained in-tree. See categries list:
https://etherpad.openstack.org/p/heat-integration-test-categories
We will seperate tests to tempest plugin or in-tree base on conditions
of each tests. So we need to rework on framework for integration tests.
This patch propose following changes:
* This partially reverts commit fff6518e69d19c7946942d1bd7c68e2b76c15966
* Allow running heat tempest plugin and heat regression tests.
* iniset configs to both heat_integrationtests.conf and tempest.conf
Change-Id: Ief31dc961bc108e2863119598dfb16581a38e9cf
Depends-On: I5e9325766ce166e62c731330c462c030cb1e11fc
Co-Authored-By: Zane Bitter <zbitter@redhat.com>
Since we're moving all policy into code and documenting it there we
should generate those docs automatically, so they are less likely to
be out-of-date.
Also add releasenote for ops to aware that Heat is now using
policies in code and their Orchestration service needs to avoid
depends on policy.json file if file not exist, since there is no
such file by default after this patch.
Partially-Implements: bp policy-in-code
Change-Id: I25fc5a110b1fe515918e042f220c23ac9a7e811f
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>