karbor/karbor
jiaopengju bba93226e6 Add trigger verification in API
Currently, we use 'cast' instead of 'call' to send request
from api to operationengine when creating a new trigger.
With 'cast', it will not give a return value to api even the
trigger is invalid, so users can create triggers successfully
with using invalid triggers.

This patch add trigger verification in API side. Before send
create request to operationengine, API send a verify request
to operationengine first, which type is 'call', to make sure
the trigger will be created is valid.

Change-Id: Iea734e1b4a63f6e35afe32cbbb2b60f79d6db085
Closes-Bug: #1736657
2018-01-26 13:50:37 +08:00
..
api Add trigger verification in API 2018-01-26 13:50:37 +08:00
cmd Replace DbMigrationError with DBMigrationError 2017-11-23 12:58:30 +08:00
common Revert "Add time format check in API" 2018-01-08 09:27:37 +08:00
db Add API controller for the quotas of Karbor 2017-11-03 11:51:31 +08:00
objects Add service management API to Karbor 2017-10-24 18:04:04 +08:00
policies Add the checkpoint copy API for Karbor 2017-11-13 15:28:09 +08:00
services Add trigger verification in API 2018-01-26 13:50:37 +08:00
tests Add trigger verification in API 2018-01-26 13:50:37 +08:00
wsgi Remove redundant ctor super calls, add missing 2017-05-14 12:10:31 +03:00
__init__.py Change Smaug to Karbor 2016-08-18 22:55:34 +08:00
context.py Add default policy in code for the plan resource 2017-09-26 19:18:31 +08:00
exception.py jsonschema validation: base schema framework and plans API 2017-12-05 17:45:40 +08:00
i18n.py Update URLs in documentation 2017-07-20 16:08:19 +08:00
loadables.py Remove redundant ctor super calls, add missing 2017-05-14 12:10:31 +03:00
manager.py Remove logging import unused 2017-01-16 08:58:41 +07:00
policy.py Add default policy in code for the scheduled operation resource 2017-09-28 19:32:56 +08:00
quota.py Add API controller for the quotas of Karbor 2017-11-03 11:51:31 +08:00
resource.py Refactor resource.py/Resource 2017-05-31 10:04:55 +08:00
rpc.py Short-circuit notifications when not enabled 2017-09-29 14:17:45 +08:00
service.py Remove redundant ctor super calls, add missing 2017-05-14 12:10:31 +03:00
utils.py Revert "Add time format check in API" 2018-01-08 09:27:37 +08:00
version.py Change Smaug to Karbor 2016-08-18 22:55:34 +08:00