Skip to content

Commit

Permalink
Closes #504: correct cumulative fields inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
mohierf committed Apr 18, 2018
1 parent abf3cf0 commit 96eea46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_hook_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def test_host_templates_with_templates_no_check_command(self):

# The host has some fields that were cumulated from its linked template
self.assertEqual(set(rh[4]['tags']), set(['tag-1', 'tag-2', 'tag-3']))
self.assertEqual(rh[4]['customs'], {'key1': 'value1-y', 'key2': 'value2'})
self.assertEqual(rh[4]['customs'], {'key1': 'value1-x', 'key2': 'value2'})
# Inherited check command is the one defined in the last template in the templates list!
# Issue #504!
self.assertEqual(rh[4]['check_command'], None)
Expand Down

0 comments on commit 96eea46

Please sign in to comment.