def test_setting_keys(ea): expected = 12467267 record = { 'Message': '12345', 'Fields': { 'ts': 'fail', 'severity': 'large', 'user': '******' } } # Set the value assert set_es_key(record, 'Fields.ts', expected) # Get the value again assert lookup_es_key(record, 'Fields.ts') == expected
def test_setting_keys(ea): expected = 12467267 record = { 'Message': '12345', 'Fields': { 'ts': 'fail', 'severity': 'large', 'user': '******' } } # Set the value assert set_es_key(record, 'Fields.ts', expected) # Get the value again assert lookup_es_key(record, 'Fields.ts') == expected