"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/integration/states/test_renderers.py" between
salt-2019.2.0.tar.gz and salt-2019.2.1.tar.gz

About: SaltStack is a systems management software for data center automation, cloud orchestration, server provisioning, configuration management and more. Community version.

test_renderers.py  (salt-2019.2.0):test_renderers.py  (salt-2019.2.1)
skipping to change at line 12 skipping to change at line 12
''' '''
Integration tests for renderer functions Integration tests for renderer functions
''' '''
# Import Python Libs # Import Python Libs
from __future__ import absolute_import, unicode_literals, print_function from __future__ import absolute_import, unicode_literals, print_function
# Import Salt Testing libs # Import Salt Testing libs
from tests.support.case import ModuleCase from tests.support.case import ModuleCase
from tests.support.helpers import flaky from tests.support.helpers import flaky
from tests.support.unit import skipIf
# Import Salt libs
import salt.utils.platform
# Import 3rd-party libs
from salt.ext import six
class TestJinjaRenderer(ModuleCase): class TestJinjaRenderer(ModuleCase):
''' '''
Validate that ordering works correctly Validate that ordering works correctly
''' '''
def test_dot_notation(self): def test_dot_notation(self):
''' '''
Test the Jinja dot-notation syntax for calling execution modules Test the Jinja dot-notation syntax for calling execution modules
''' '''
ret = self.run_function('state.sls', ['jinja_dot_notation']) ret = self.run_function('state.sls', ['jinja_dot_notation'])
for state_ret in ret.values(): for state_ret in ret.values():
self.assertTrue(state_ret['result']) self.assertTrue(state_ret['result'])
@flaky @flaky
@skipIf(salt.utils.platform.is_darwin() and six.PY2, 'This test hangs on OS X on Py2')
def test_salt_contains_function(self): def test_salt_contains_function(self):
''' '''
Test if we are able to check if a function exists inside the "salt" Test if we are able to check if a function exists inside the "salt"
wrapper (AliasLoader) which is available on Jinja templates. wrapper (AliasLoader) which is available on Jinja templates.
''' '''
ret = self.run_function('state.sls', ['jinja_salt_contains_function']) ret = self.run_function('state.sls', ['jinja_salt_contains_function'])
for state_ret in ret.values(): for state_ret in ret.values():
self.assertTrue(state_ret['result']) self.assertTrue(state_ret['result'])
 End of changes. 2 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)