Commit Graph

33 Commits

Author SHA1 Message Date
Stephen Finucane 0777837c1d Ignore old 'vN-branch' tags when scanning for release notes
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>
2020-03-27 17:44:43 +00:00
ricolin 46d1e89c27 include sample config file in docs
Leverage oslo.config to rebuild our sample config file in docs.

Change-Id: I359e63fad43a5fcde4fe30a97cbed8f4f71961c5
2018-02-01 15:38:25 +00:00
ricolin 41cc012b34 Allow run tests for both tempest plugin and regression tests
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 fff6518e69
* 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>
2018-01-19 13:26:25 -05:00
Zuul f95c75a3d8 Merge "Use stestr for unit tests" 2018-01-10 15:35:54 +00:00
rabi 93746a9b28 Use stestr for unit tests
Change-Id: Ifaf3991e1c9400683e9c98185b86cb39ac3d318d
2017-12-15 12:39:37 +05:30
ricolin 222a8ac5e9 [policy in code] part 7 add sample and releasenote
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
2017-12-13 10:58:56 +08:00
ricolin b171490450 [policy in code] Part 1 Base framework
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
2017-11-21 16:23:11 +08:00
Botond Zoltán 0d30268de6 Add .idea pattern to .gitignore
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
2017-04-03 09:32:25 +00:00
Pavlo Shchelokovskyy dd50ac6352 Create integration tests requirements on the fly
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
2016-03-25 13:40:50 +00:00
ricolin 46a102c2d1 Add reno for release notes management
Change-Id: I8ffe53af594150529c325814cf55812268193172
2015-12-01 15:04:39 +00:00
Angus Salkeld 3c96ce8798 Ignore .eggs directory (created by the new pbr)
Change-Id: If3308826393affa28aa0a07498b1572b2fa878b3
2015-07-22 10:35:25 +10:00
ZhiQiang Fan c3fbd967c7 ignore sample config file generated by tox -egenconfig
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
2015-07-02 23:27:07 -07:00
Julien Danjou 6015b725f7 Use pbr new autodoc feature
This relies on the new pbr feature that autogenerates the documentation.

Change-Id: Ie3287dfc6a9a4566eb1c444af63ae86954c69e68
2015-06-16 11:35:02 +02:00
Steve Baker 0eb93cbf33 Use setuptools to install contrib plugins
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
2014-08-13 20:12:29 -05:00
JUN JIE NAN d1e778d211 Add heat.sqlite in git ignore list
SQLite file "heat.sqlite" will be generated during test cases
running. So it should be in git ignore list.

Change-Id: I31217e3de69a016fb4daa7e353161d58c71df98b
2014-01-25 13:58:21 +08:00
JUN JIE NAN 96522a1691 Ignore tox -e cover generated files
The generated files are like '.coverage.idlerk.5365.021771', which can
not matched by '.coverage'. So change it to '.coverage.*'

Change-Id: Ie0bebceaaa15f2dcf145a708300654f8d3605271
2014-01-21 15:34:32 +08:00
Liang Chen b3e3c16e02 Let git ignore pydev project description files
Change-Id: Ice68ef444ae92c94a2f883a6db41359d0bcb9e71
2013-07-08 15:26:04 +08:00
Robert Collins d3736ac62d Add editor backup files to .gitignore.
Change-Id: I004d10e61c8e192c058a5d1ba5a09f7c676d278b
2013-06-27 22:14:14 +12:00
Clint Byrum 405510e263 Use testr for running gate tests
Fixes bug 1172468

Change-Id: Ifd87e44d752b4b3c77b4ea8f38feceb03bccaebe
2013-04-30 13:51:31 -07:00
Jeff Peeler 6d8c46ef41 Get rid of versioninfo cruft
The version information is no longer stored in a file.

Fixes: Bug #1157885
Change-Id: Ide0662ad3d7b2596743cd9427bc3b50e8357ffe1
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
2013-03-20 14:21:08 -04:00
Clint Byrum 438f6d85ff Initial support for Transifex translations
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
2013-01-29 12:27:17 -08:00
Jeff Peeler 4e99d4d0bb Switch to openstack style versioning
Bug 1078480

Change-Id: I32471acc16e7ca6f60672474c9bf70537ba76fd2
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
2012-12-08 02:24:03 +00:00
Steve Baker 66ef27527d Tool to download all Amazon example templates
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
2012-11-20 16:24:23 +13:00
Monty Taylor 2fc479c684 Align with project standards.
Rebased from: Change-Id: Ifc9fff4f88dfaebe97b7caba4d603d23c645e346

Reviewed-by: Steven Dake <sdake@redhat.com>
2012-05-21 16:48:34 -07:00
Chris Alfonso 1d706dd93e Copied the python-novaclient test code to avoid importing via python path 2012-04-30 10:39:51 -04:00
Chris Alfonso f10f5cf15b Adding the metadata.log file 2012-04-30 10:13:15 -04:00
Angus Salkeld 3802dfbba6 Add test artifacts to gitignore
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-27 00:32:15 +10:00
Chris Alfonso bdaed9b997 Added db setup and teardown with sqlite 2012-04-23 08:17:10 -04:00
Tomas Sedovic 6e9acd83ab Fix the test environment
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>
2012-04-18 11:29:48 +02:00
Chris Alfonso 5d8d645f4e Removed the *.log from the .gitignore so I can add the dummy files 2012-03-21 10:52:54 -04:00
Chris Alfonso f5e43a3ffc Updating template example github link 2012-03-20 09:50:09 -04:00
Angus Salkeld 41d167c560 Add setup.py and friends
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-03-14 09:25:54 +11:00
Angus Salkeld 3b9c41fb6c Initial commit (basics copied from glance)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-03-13 21:48:07 +11:00