mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #45573 from gtmanfred/2017.7.3
update 2017.7.3 tests
This commit is contained in:
commit
19cd97ed3b
2 changed files with 6 additions and 5 deletions
|
@ -493,10 +493,11 @@ PATCHLEVEL = 3
|
|||
log.debug(
|
||||
'Testing Docker cgroup substring \'%s\'', cgroup_substr)
|
||||
with patch('salt.utils.fopen', mock_open(read_data=cgroup_data)):
|
||||
self.assertEqual(
|
||||
core._virtual({'kernel': 'Linux'}).get('virtual_subtype'),
|
||||
'Docker'
|
||||
)
|
||||
with patch.dict(core.__salt__, {'cmd.run_all': MagicMock()}):
|
||||
self.assertEqual(
|
||||
core._virtual({'kernel': 'Linux'}).get('virtual_subtype'),
|
||||
'Docker'
|
||||
)
|
||||
|
||||
def _check_ipaddress(self, value, ip_v):
|
||||
'''
|
||||
|
|
|
@ -892,7 +892,7 @@ class TestCustomExtensions(TestCase):
|
|||
def test_http_query(self):
|
||||
'''Test the `http_query` Jinja filter.'''
|
||||
for backend in ('requests', 'tornado', 'urllib2'):
|
||||
rendered = render_jinja_tmpl("{{ 'http://www.google.com' | http_query(backend='" + backend + "') }}",
|
||||
rendered = render_jinja_tmpl("{{ 'http://icanhazip.com' | http_query(backend='" + backend + "') }}",
|
||||
dict(opts=self.local_opts, saltenv='test', salt=self.local_salt))
|
||||
self.assertIsInstance(rendered, six.text_type, 'Failed with backend: {}'.format(backend))
|
||||
dict_reply = ast.literal_eval(rendered)
|
||||
|
|
Loading…
Add table
Reference in a new issue