ceilometer/ceilometer/tests
Igor Degtiarov f379b96dd2 [MongoDB] Fix bug with 'bad' chars in metadatas keys
MongoDB has two restrictions on fields names, they cannot contain '.' and
start with '$'. In resource_metadata field we can get any data, so it could
be dict with any keys, and if some key contain i.e. dots sample with this
metadata wouldn't be stored in MongoDB.

To protect samples from missing this patch propose to check metadata
for occurrence of dots and '$' in keys if metadata is dict, and to transform
dict with dots before storing it in MongoDB. Transformation means that
we make dict more nested and new node appears where there is dot in dict
key.

It means that if we get metadata as a dict {'a.b.c': v} before storing in
MongoDB it would be transform in {'a': {'b': {'c': v}}}.

Closes-Bug: 1246264
Change-Id: I279ae67cd24d4dadd7d7e58007e7c5c297d91772
2014-12-01 15:51:25 +02:00
..
alarm Merge "Fix order of arguments in assertEqual" 2014-11-26 00:33:03 +00:00
api [MongoDB] Fix bug with 'bad' chars in metadatas keys 2014-12-01 15:51:25 +02:00
central Use central agent manager's keystone token in discoveries 2014-09-12 10:11:00 -04:00
collector Remove the collector submodule 2013-11-26 16:03:30 +01:00
compute Merge "Fix order of arguments in assertEqual" 2014-11-26 00:33:03 +00:00
data_processing Switch to oslotest 2014-08-21 11:42:15 +02:00
dispatcher Allow collector service database connection retry 2014-10-21 14:17:05 +00:00
energy Enable to get service types from configuration file 2014-09-19 17:23:52 +09:00
event isolate event storage models 2014-10-01 21:43:20 -04:00
hardware Edits assert method 2014-10-19 18:30:46 +00:00
identity Add role assignment notifications for identity 2014-10-09 11:24:11 -04:00
image Fix order of arguments in assertEqual 2014-11-24 13:34:48 +04:00
ipmi Fix hacking rule H305 imports not grouped correctly 2014-10-30 01:31:43 +08:00
network Merge "Fix order of arguments in assertEqual" 2014-11-26 00:33:03 +00:00
objectstore fix swift middleware parsing 2014-11-24 10:28:45 -05:00
orchestration Fix order of arguments in assertEqual 2014-11-24 13:34:48 +04:00
profiler Switch to oslotest 2014-08-21 11:42:15 +02:00
publisher Add encoding to keys in compute_signature 2014-11-12 12:35:02 +04:00
storage [MongoDB] Fix bug with 'bad' chars in metadatas keys 2014-12-01 15:51:25 +02:00
volume Add new notifications types for volumes/snapshots 2014-11-12 17:50:53 +04:00
__init__.py Skeleton for API server 2012-07-27 10:34:36 -04:00
agentbase.py Skip to poll and publish when no resources found 2014-11-16 10:40:47 +08:00
base.py Switch to a custom NotImplementedError 2014-09-15 18:16:10 +02:00
constants.py Correct alarm timestamp field in unittest code 2014-11-07 11:02:39 +08:00
db.py Fix hacking rule H305 imports not grouped correctly 2014-10-30 01:31:43 +08:00
mocks.py [HBase] Improves speed of unit tests on real HBase backend 2014-09-24 15:08:36 +04:00
pipeline_base.py Switch to oslo.utils 2014-08-22 14:52:13 +02:00
test_bin.py Switch partitioned alarm evaluation to a hash-based approach 2014-09-01 14:47:41 -04:00
test_collector.py collector: Allows to requeue a sample 2014-09-01 09:05:04 +02:00
test_coordination.py Fix order of arguments in assertEqual 2014-11-24 13:34:48 +04:00
test_decoupled_pipeline.py Fix order of arguments in assertEqual 2014-11-24 13:34:48 +04:00
test_deprecated_pipeline.py Add per device rate metrics for instances 2014-10-30 23:14:59 +08:00
test_messaging.py Switch to oslotest 2014-08-21 11:42:15 +02:00
test_middleware.py Switch to oslotest 2014-08-21 11:42:15 +02:00
test_neutronclient.py Switch to oslotest 2014-08-21 11:42:15 +02:00
test_notification.py Switch to oslo.utils 2014-08-22 14:52:13 +02:00
test_notifier.py Switch to oslotest 2014-08-21 11:42:15 +02:00
test_novaclient.py Switch to oslotest 2014-08-21 11:42:15 +02:00
test_plugin.py Switch to oslotest 2014-08-21 11:42:15 +02:00
test_sample.py Add __repr__ method for sample.Sample 2014-10-30 00:07:53 +08:00
test_utils.py Fix signature validation failure when using qpid message queue 2014-10-10 17:54:23 +08:00