mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Test multiple nxos versions at once (#25595)
* Extend tests to have multiple device representations * Move filepath munging to nxos_module * Device needs to be kwarg so we can leave it off * Update other nxos tests * Update tests that fell through
This commit is contained in:
@@ -41,8 +41,8 @@ class TestNxosSystemModule(TestNxosModule):
|
||||
self.mock_get_config.stop()
|
||||
self.mock_load_config.stop()
|
||||
|
||||
def load_fixtures(self, commands=None):
|
||||
self.get_config.return_value = load_fixture('nxos_system_config.cfg')
|
||||
def load_fixtures(self, commands=None, device=''):
|
||||
self.get_config.return_value = load_fixture('', 'nxos_system_config.cfg')
|
||||
self.load_config.return_value = None
|
||||
|
||||
def test_nxos_system_hostname_changed(self):
|
||||
|
||||
Reference in New Issue
Block a user