mirror of
https://github.com/ansible/awx.git
synced 2026-03-15 07:57:29 -02:30
fixes Fact serialization/deserialization
This commit is contained in:
committed by
Matthew Jones
parent
cffb2f324f
commit
5b2f3dfd8f
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user