mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Remove superfluous include on iosxr filesystems fact gathering (#21775)
The regex will catch only lines that start with 'Directory of' regardless. Also, fixing unit tests while at it.
This commit is contained in:
parent
9e6980a039
commit
ab4e83f288
4 changed files with 9 additions and 5 deletions
|
@ -52,7 +52,6 @@ class TestIosxrFacts(TestIosxrModule):
|
|||
command = item
|
||||
filename = str(command).replace(' ', '_')
|
||||
filename = filename.replace('/', '7')
|
||||
filename = filename.replace('|', '1')
|
||||
output.append(load_fixture(filename))
|
||||
return output
|
||||
|
||||
|
@ -66,7 +65,7 @@ class TestIosxrFacts(TestIosxrModule):
|
|||
self.assertIn('default', ansible_facts['ansible_net_gather_subset'])
|
||||
self.assertIn('interfaces', ansible_facts['ansible_net_gather_subset'])
|
||||
self.assertEquals('iosxr01', ansible_facts['ansible_net_hostname'])
|
||||
self.assertEquals([], ansible_facts['ansible_net_filesystems'])
|
||||
self.assertEquals(['disk0:', 'flash0:'], ansible_facts['ansible_net_filesystems'])
|
||||
self.assertIn('GigabitEthernet0/0/0/0',
|
||||
ansible_facts['ansible_net_interfaces'].keys())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue