fixes Fact serialization/deserialization

This commit is contained in:
Chris Meyers
2015-05-03 17:39:52 -04:00
committed by Matthew Jones
parent cffb2f324f
commit 5b2f3dfd8f
7 changed files with 362 additions and 99 deletions

View File

@@ -182,7 +182,7 @@ class RunFactCacheReceiverUnitTest(BaseTest, MongoDBRequired):
def test_process_facts_message_ansible_overwrite(self):
data = copy_only_module(TEST_MSG, 'ansible')
key = 'ansible_overwrite'
key = 'ansible.overwrite'
value = 'hello world'
receiver = FactCacheReceiver()
@@ -197,3 +197,4 @@ class RunFactCacheReceiverUnitTest(BaseTest, MongoDBRequired):
fact = Fact.objects.get(id=fact.id)
self.assertIn(key, fact.fact)
self.assertEqual(fact.fact[key], value)
self.assertEqual(fact.fact, data['facts'])