mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
test simple website
This commit is contained in:
parent
1f71f301ba
commit
808e26e69a
1 changed files with 1 additions and 1 deletions
|
@ -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