From 60de93c31d56da0424866beceb33a37ede7e896a Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Fri, 21 Apr 2017 11:19:46 +0200 Subject: [PATCH] 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. --- test/units/modules/network/iosxr/test_iosxr_facts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/units/modules/network/iosxr/test_iosxr_facts.py b/test/units/modules/network/iosxr/test_iosxr_facts.py index 3a307d0875..bdb63a9b5d 100644 --- a/test/units/modules/network/iosxr/test_iosxr_facts.py +++ b/test/units/modules/network/iosxr/test_iosxr_facts.py @@ -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'})