mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Force test to pick _ip_route_linux for default_route_ipv6
This commit is contained in:
parent
790d49b5c2
commit
6202152494
1 changed files with 5 additions and 2 deletions
|
@ -552,8 +552,11 @@ anycast fe80:: dev ens192 table local proto kernel metric 0 pref medium
|
|||
|
||||
cmd_mock = MagicMock(side_effect=[mock_iproute_ipv4, mock_iproute_ipv6])
|
||||
with patch.dict(network.__grains__, {"kernel": "Linux"}):
|
||||
with patch.dict(network.__salt__, {"cmd.run": cmd_mock}):
|
||||
self.assertListEqual(network.default_route("inet6"), [])
|
||||
with patch.dict(
|
||||
network.__utils__, {"path.which": MagicMock(return_value=False)}
|
||||
):
|
||||
with patch.dict(network.__salt__, {"cmd.run": cmd_mock}):
|
||||
self.assertListEqual(network.default_route("inet6"), [])
|
||||
|
||||
def test_get_route(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue