922 Commits

Author SHA1 Message Date
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
4b33d1b338 Fix body validation for Python 3
The API should expect timestamp as text, not binary data.

Change-Id: I07a26c09a19a96907da7210b3fb1544a409b562a
Story: 2003240
Task: 26832
2018-10-01 17:39:48 +02:00
melissaml
13c429b1f7 Update links in README
Change the outdated links to the latest links in README

Change-Id: I482b659ba8adeb859420e258142b8fc497ee94d1
2018-09-23 16:41:17 +08:00
9b8f8be597 Update reno for stable/rocky
Change-Id: I836db205b10d5336a65910be64c3321571107ffd
2018-09-19 13:58:44 +00:00
Zuul
29b2d3036a Merge "Add mechanism that send msg again if request fail" 0.1.0 2018-09-13 12:23:31 +00:00
Adrian Czarnecki
735a08637a Add mechanism that send msg again if request fail
Improve _publish method to send message again
if first request return FailedPayloadsError.

Change-Id: I2ceb4e55f30a982bfe55ae8dd280ded5eca70704
2018-09-13 13:44:28 +02:00
Andreas Jaeger
200c88e13a Use openstack-tox-cover template
Use openstack-tox-cover template, this runs the cover job
in the check queue only.

Remove jobs and use template instead.

Change-Id: I28111ced5dececccaa38e0033aac920279c45381
2018-09-08 16:16:07 +02:00
Adrian Czarnecki
dc9e276f10 Change incorrect default policy role
Change-Id: I194164425416e5905e2234e76014e32f276fde76
2018-09-07 08:36:27 +02:00
Doug Hellmann
8e84984c74 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I5d74766083f438556f8fe889e4a4b6c197e884c0
Story: #2002586
Task: #24312
2018-08-22 18:51:58 -04:00
Doug Hellmann
3bd0b04e43 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ib8ea06691a7082d43db336070e60b415941677e5
Story: #2002586
Task: #24312
2018-08-22 18:51:45 -04:00
Doug Hellmann
004c0dd63d import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I8229b64e652d27c72248659ff1bcbcd69f874865
Story: #2002586
Task: #24312
2018-08-22 18:49:19 -04: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
Doug Hellmann
a9ca4bf8c7 uncap eventlet
We will manage the eventlet version using constraints now. See the
thread starting at
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129096.html
for more details.

Additionally:
* remove lower constraint for oslo.config
* remove lower constraint and exclusion for reno

Change-Id: I187a6bd4eedcc139383efc25b6dbffe1c8cd39bc
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-23 15:00:04 +02:00
Zuul
5bf5f27f1b Merge "changed self oslo.policy enforcement to monasca-common oslo.policy enforcement engine." 2018-02-05 08:53:38 +00:00
James E. Blair
3128a3da34 Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: I82b0b798da177404ca2a73b22c23906c7c22afbc
2018-02-01 02:56:51 -08:00
Amir Mofakhar
f24c310156 changed self oslo.policy enforcement to monasca-common oslo.policy
enforcement engine.

story: 2001233
task: 6199

Change-Id: If78a95f2b454ed4775186e56146d22684d16d983
Signed-off-by: Amir Mofakhar <amofakhar@op5.com>
2018-01-24 10:16:49 +01:00
Adrian Czarnecki
3ea627d853 Download Kafka from Apache Archives
Apache Kafka 0.9.0.1 is not available on mirrors any more.

Change-Id: Ibfd548919c7a50809ad4ebd0b6eb9045f3b4250c
2018-01-23 10:26:10 +01:00
Amir Mofakhar
230ef25dc7 updated gitignore to ignore .venv
Change-Id: I9724c79369628d4083c8a6d054d27eadf90a60a1
2018-01-17 10:30:41 +01: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
Zuul
52b615a923 Merge "Zuul: add file extension to playbook path" 2017-12-18 07:11:55 +00: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
James E. Blair
9788b42685 Zuul: add file extension to playbook path
Zuul now supports including the file extension on the playbook path
and omitting the extension is now deprecrated.  Update references
to include the extension.

Change-Id: Ica021c2913cb4866b10b8014333e36df9d7dfc5d
2017-11-28 16:40:50 -08:00
Andreas Jaeger
badc30fcf2 Remove setting of version/release from releasenotes
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.

Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.

This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting
at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html
.

Change-Id: I6158691a389bd8a6c16253284673b3d621907080
2017-11-17 10:19:39 +01:00
Jakub Wachowski
c3a3b4b765 Create devstack plugin for monasca-events
!Parts of code taken from monasca-api and monasca-log-api!

Also create a dummy implementataion for version endpoint
so that the deployment can be tested.

Story: 2001112
Task: 4808

Change-Id: Ic35f6388c34c4d4c1198401a1c6972b802a54c67
2017-11-08 13:55:10 +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
3bfd48f178 Monasca-events-api spec documentation
Provide new endpoint to monasca-events-api.
Endpoint accept events in a bulk mode.
Provide HTTP response codes and examples about request
body.

Story: 2001112
Task: 4803

Change-Id: I18d9f4ec543c76bfe1311ed1ee940827d4162298
2017-08-07 09:34:12 +02:00
Artur Basiak
ae9f8255db Add sample configuration files to documentation
Add sample configuration files to documentation.
Add files about:
- configuration
- paste
- logging
- policies

Change-Id: I38d3fa5d1d7a32670dc84e4b10ffe1400e220a69
2017-08-01 13:41:43 +00: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
dba3061494 Merge pull request #14 from hpcloud-mon/feature/stream_definition_patching
Feature/stream definition patching
2015-11-20 13:32:30 -07:00
Michael James Hoppal
c00fd08178 Remove non used import 2015-11-20 13:29:52 -07:00
Michael James Hoppal
6f3492343c Cleanup the amount of conditionals and temp variables in patch 2015-11-20 12:52:03 -07:00
Michael James Hoppal
9113a2cbbe Take away the ability to patch certain fields 2015-11-19 21:07:17 -07:00
Michael James Hoppal
344ebd68d5 Return empty list on getting fire actions if it is not there 2015-11-18 16:28:15 -07:00
Michael James Hoppal
a142d52b24 Add the ability to patch stream definitions 2015-11-18 16:25:42 -07:00
Joe Keen
3829d1287d Merge pull request #13 from oneilcin/master
Changed monasca-events-api port to 8072
0.0.6
2015-10-29 16:55:24 -06:00
cindy oneill
e6a05689a3 Changed monasca-events-api port to 8072 2015-10-20 14:58:18 -06:00
Joe Keen
b71898cb71 Updated .gitignore 0.0.5 2015-08-14 15:58:11 -06:00
Joe Keen
8158e755bc Removing soft delete functionality
Transform repository now deletes row rather than setting the deleted_at
attribute.
2015-08-14 13:22:24 -06:00
Cindy O'Neill
05d5a2b114 Merge pull request #12 from hpcloud-mon/func_test_fixes
Fixes for functional test
2015-08-11 15:42:15 -06:00
Joe Keen
6c162775ab Merge branch 'master' into func_test_fixes
Conflicts:
	func_test/api_func_test.py
2015-08-11 15:23:50 -06:00
Joe Keen
5b7ffcb9f1 Fixes for functional test 2015-08-11 15:16:14 -06:00
Joe Keen
7a7eb66ea4 Merge pull request #11 from hpcloud-mon/add/apistuff
added in api examples to readme
2015-08-05 14:07:20 -06:00
SamKirsch10
db1e873323 added in api examples to readme 2015-08-05 14:04:49 -06:00
Joe Keen
c7cb519435 Now with 100% more demo 2015-08-05 12:00:10 -06:00
Joe Keen
6f76568024 Added auto commit true 2015-08-05 10:51:09 -06:00