Commit Graph

23 Commits

Author SHA1 Message Date
Ghanshyam Mann 67ee8e5c66 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

monasca-event-api is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I1ea3a93bdd2cd6d5e95b7fefaca6a26c682aebc0
2019-12-02 09:45:09 +00:00
Zuul 64e4e9af47 Merge "Add Python 3 Train unit tests" 2019-07-23 10:13:16 +00:00
zhulingjie 1fabe3616c Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Idca14292845055f7831fcab7a361d85190515c01
2019-07-18 16:02:50 +00:00
Corey Bryant c8b38fe98a Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Ib97c4d05a9bee29808cbc1f37f9a7fe89d23d0c6
Story: #2005924
Task: #34223
2019-07-14 14:08:57 +00:00
akhiljain23 8ec3b67b77 Add support for using Falcon 2.0.0
Falcon 2.0.0 introduces some breaking changes. The relevant ones here are:

- falcon.testing.TestCase.api property was removed
- falcon.testing.TestBase class was removed

This commit also switches the project to use stestr, update sphinx dependency
and add lower-constraints job

Change-Id: I34255a603c069ed3b1e52017634ff01147473221
Story: 2005695
Task: 35688
2019-07-12 06:39:15 +00:00
Ghanshyam Mann be016896dd Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I810c1731659213457558eec31873ab4807a8d1c3
2019-04-15 18:17:27 +00:00
huang.zhiping 84fdd24d5d fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I4dd441f65a364eeccff217c99bf423540c44e3f5
2018-11-19 13:55:41 +00:00
Sean McGinnis f2cf7ade39 Remove setup.py check from pep8 job
Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.

Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.

More details can be found in this mailing list post:

http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html

Change-Id: I35beb33fe3d0875f742b46da2b04f6084d1b9c38
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-10-30 10:31:31 -05:00
98k 15c6877237 Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I63fad8f1110702a12a3a84a34c34c46d800b06be
2018-10-09 21:10:05 +00:00
Doug Hellmann 09356e0b9f fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Id3e87ce28348d247545ce979f6b34a1cb76beb8c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-10-01 15:44:05 +00:00
Witold Bedyk 18b77596f6 Fix README.rst and add syntax check
Change-Id: Ic395c4d7bcf3301b865bab3b214b8e78aece83ff
Story: 2002163
Task: 24463
2018-08-09 13:53:30 +00:00
Witold Bedyk 025b87ddfb Fix coverage job
Change-Id: I6a78e9ef18666b344e62c7b25bc698e8df634431
2018-08-09 15:52:07 +02:00
Zuul 50dfeb1f81 Merge "Add events endpoint" 2017-12-18 13:12:33 +00:00
Artur Basiak 620a477df0 Add events endpoint
Provide basic endpoint:
/v1.0/events/
/healthcheck
/version
Endpoint reads request and returns HTTP code 200.
Provide code to run application in gunicorn mode.

Story: 2001112
Task: 4863

Change-Id: Ic7c344360b5acec5af7751a825e2dff8346cf1f7
Depends-On: I18d9f4ec543c76bfe1311ed1ee940827d4162298
2017-12-18 13:42:02 +01:00
Andreas Jaeger 508c3b6a65 Remove -U from pip install
'pip install -U' ugrades specified packages, this is not necessary
since we use constraints, remove the parameter '-U' from the line.

With tools/tox_install.sh - which a previous change of mine removed -
the -U was not harmful, but with the current set up, it might cause
upgrades, so remove it.

Change-Id: Ib894a4a99bef001183b892fcf53708f5d699db4d
2017-12-02 19:26:54 +01:00
Andreas Jaeger b9c0eb78a0 Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: I8732c7032bd45ce1186f3751f4953348ef4ef1cc
2017-12-01 15:40:26 +01:00
Adrian Czarnecki 6149b0d436 Fix pep8 test
make pep8 working by removing ChangeLog include from doc
and change pep8 declaration in tox file.

Change-Id: I171747abc95b6fa60e0c570ed823a5595d35ad7e
2017-10-24 14:03:44 +02:00
Artur Basiak 32c4560c3b Provide oslo.policies
Add policies to the api based on oslo.policies.
Small changes in documentation. Provide generator for
sample policies file.
Add policies for agent and admin.

Story: 200112
Task: 4807

Depends-On: I76d737bf9d1216b041bc1a518cc2098f28e7da7b
Change-Id: Idf5c4ec1b663ad9ed3ab25744bdf0b7f28cdb1a2
2017-08-01 13:24:09 +02:00
Tomasz Trębski 5321635049 Preparing infrastructure for events-api
Following change aims at setting up the
tooling for events-api againts latest
requirements and guideliness from OpenStack.
Removing old code , add basic structure of the python
modules. Add basic documentation and release notes.
Prepare to use oslo-config-generator.
Add devstack basic setup to the project.

Story: 2001112
Task: 4798

Change-Id: I76d737bf9d1216b041bc1a518cc2098f28e7da7b
2017-07-12 12:08:35 +02:00
Joe Keen 3941f834b9 Fixed unit tests broken due to recent changes 2015-06-24 10:12:57 -06:00
Joe Keen 27306cba7c Updated tox setup
Removed version string from setup.cfg
2015-05-04 15:38:59 -06:00
Deklan Dieterly 71c9acb1cc Add alarm history resource
Change-Id: Ic19c09cc0808c994cadfb7e3c7680dd58438852d
2014-11-17 15:38:47 -07:00
Tong Li ed99a4edb3 initial python implementation
Change-Id: I25ca78414cd26340a4a640cb4f9ee92dda650037
2014-09-15 13:18:10 -04:00