deb-ceilometer/ceilometer/tests
xiangjun li d054c7c740 Add attribute 'state' to meter metadata when source is polling
For now, instance attribute 'state' is stored to
metadata of meter which was generated from
notifications. But when meter was generated from
instance polling, 'state' is not stored to
metadata of meter even this attribute could be
retrieved from polling action. Because the meter
generated from notifications or polling update
the resource information in database in cycles,
the resource show API may return the instance
metadata with different style(sometimes the
returned metadata contains 'state', but at other
times, the 'state' is disappeared in it), which
may confuse us in some situations. In this patch,
'state' has been added to the meter metadata if
the meter was generated from polling source.

Closes-Bug: #1491224

Change-Id: Ie869672901b1d13f9444d0ca0e7d849f5e4ffc4b
2015-09-14 13:14:07 +08:00
..
functional Merge "Correct test_list_meters_meter_id to work with py3" 2015-09-10 23:48:59 +00:00
integration integration: Add debugging information 2015-09-03 14:36:47 +02:00
unit Add attribute 'state' to meter metadata when source is polling 2015-09-14 13:14:07 +08:00
__init__.py Skeleton for API server 2012-07-27 10:34:36 -04:00
base.py monkey_patch thread in tests 2015-07-14 18:58:33 +00:00
constants.py Correct alarm timestamp field in unittest code 2014-11-07 11:02:39 +08:00
db.py Close and dispose test database setup connections 2015-07-23 16:14:57 +00:00
mocks.py [HBase] Improves speed of unit tests on real HBase backend 2014-09-24 15:08:36 +04:00
pipeline_base.py add flexible grouping key 2015-08-20 08:46:45 -04:00