Commit Graph

5 Commits

Author SHA1 Message Date
Martin Chacon Piza 8c0ddb4f4d Added validations
- Empty events list
- Missing content-type or wrong content-type
- Empty body

Change-Id: I5848dd018aee6b9d95bff7be52eece0ac97b2a49
Story: 2003955
Task: 27036
2018-11-19 12:20:45 +00:00
Martin Chacon Piza 60b86fff4d Use the tenant_id from context to name the index in ES
Story: 2003955
Task: 26881

Change-Id: I17fc5121f30127ed3e53cc6cdaf904820c65dda8
2018-10-11 10:36:27 +02: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
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
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