mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Update unit test to provide osmajorrelease grain.
This commit is contained in:
parent
42fd04f8dd
commit
6aefa5c3f8
@ -58,7 +58,7 @@ class RhipTestCase(TestCase, LoaderModuleMockMixin):
|
||||
'''
|
||||
Test to build an interface script for a network interface.
|
||||
'''
|
||||
with patch.dict(rh_ip.__grains__, {'os': 'Fedora'}):
|
||||
with patch.dict(rh_ip.__grains__, {'os': 'Fedora', 'osmajorrelease': 26}):
|
||||
with patch.object(rh_ip, '_raise_error_iface', return_value=None):
|
||||
|
||||
self.assertRaises(AttributeError,
|
||||
|
Loading…
Reference in New Issue
Block a user