mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix broken tests due to the msgpack list fix
This commit is contained in:
parent
2a550ebd3f
commit
f86203f26e
1 changed files with 5 additions and 5 deletions
|
@ -40,8 +40,8 @@ class HostsModuleTest(saltunittest.ModuleCase):
|
|||
self.__clean_hosts()
|
||||
hosts = self.run_function('hosts.list_hosts')
|
||||
self.assertEqual(len(hosts), 6)
|
||||
self.assertEqual(hosts['::1'], ('ip6-localhost', 'ip6-loopback'))
|
||||
self.assertEqual(hosts['127.0.0.1'], ('localhost', 'myname'))
|
||||
self.assertEqual(hosts['::1'], ['ip6-localhost', 'ip6-loopback'])
|
||||
self.assertEqual(hosts['127.0.0.1'], ['localhost', 'myname'])
|
||||
|
||||
def test_list_hosts_nofile(self):
|
||||
'''
|
||||
|
@ -68,10 +68,10 @@ class HostsModuleTest(saltunittest.ModuleCase):
|
|||
hosts.get_alias
|
||||
'''
|
||||
self.__clean_hosts()
|
||||
self.assertEqual(self.run_function('hosts.get_alias', ['127.0.0.1']), ('localhost', 'myname'))
|
||||
self.assertEqual(self.run_function('hosts.get_alias', ['127.0.0.2']), ())
|
||||
self.assertEqual(self.run_function('hosts.get_alias', ['127.0.0.1']), ['localhost', 'myname'])
|
||||
self.assertEqual(self.run_function('hosts.get_alias', ['127.0.0.2']), [])
|
||||
self.__clear_hosts()
|
||||
self.assertEqual(self.run_function('hosts.get_alias', ['127.0.0.1']), ())
|
||||
self.assertEqual(self.run_function('hosts.get_alias', ['127.0.0.1']), [])
|
||||
|
||||
def test_has_pair(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue