1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add assertion on test_iosxr_facts (#23852)

We hit bug #23737 due to bad coverage on test_iosxr_facts, we
were not checking memory facts at all.
This commit is contained in:
Ricardo Carrillo Cruz 2017-04-21 11:19:46 +02:00 committed by GitHub
parent d0fd8cefaa
commit 60de93c31d

View file

@ -68,6 +68,8 @@ class TestIosxrFacts(TestIosxrModule):
self.assertEquals(['disk0:', 'flash0:'], ansible_facts['ansible_net_filesystems'])
self.assertIn('GigabitEthernet0/0/0/0',
ansible_facts['ansible_net_interfaces'].keys())
self.assertEquals('3095', ansible_facts['ansible_net_memtotal_mb'])
self.assertEquals('1499', ansible_facts['ansible_net_memfree_mb'])
def test_iosxr_facts_gather_subset_config(self):
set_module_args({'gather_subset': 'config'})