deb-ceilometer/ceilometer/api
xiangjun li ac3ff88c03 Wrong result is returned when call events getting API
For current implementation, events getting API only support 'eq' query
operation when query field is the one of 'event_type', 'message_id',
'start_timestamp' and 'end_timestamp'. But there is a problem, if the
query operation wasn't specified as 'eq'(e.g. 'ne'), the returned result
is still the same as the query operation was specified as 'eq'.

This patch add a check for this situation: if the query field is the one
of 'event_type', 'message_id', 'start_timestamp', 'end_timestamp', and
the query operation user specified is not 'eq', then a client side error
will be thrown.

Also, corresponding unit test case is added.

Change-Id: I4e4b127045de6e933281d9289271af891c3c80fe
Closes-Bug: #1511592
2015-11-03 09:47:36 +08:00
..
controllers Wrong result is returned when call events getting API 2015-11-03 09:47:36 +08:00
__init__.py Use min and max on IntOpt option types 2015-08-15 11:11:01 -07:00
app.py api: simplify root controller 2015-10-14 13:29:56 +02:00
app.wsgi Upgrade to hacking 0.10 2015-01-23 17:43:04 +01:00
hooks.py Correct thread handling in TranslationHook 2015-08-10 09:52:28 +01:00
middleware.py Correct thread handling in TranslationHook 2015-08-10 09:52:28 +01:00
rbac.py reset policy per test 2015-10-14 14:17:52 -04:00