mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
c673b64583
Conflicts: - doc/conf.py - doc/ref/configuration/master.rst - doc/ref/configuration/minion.rst - salt/engines/hipchat.py - salt/engines/slack.py - salt/grains/core.py - salt/version.py - tests/integration/states/test_renderers.py
33 lines
961 B
Python
33 lines
961 B
Python
# coding: utf-8
|
|
'''
|
|
Integration tests for renderer functions
|
|
'''
|
|
|
|
# Import Python Libs
|
|
from __future__ import absolute_import
|
|
|
|
# Import Salt Testing libs
|
|
from tests.support.case import ModuleCase
|
|
|
|
|
|
class TestJinjaRenderer(ModuleCase):
|
|
'''
|
|
Validate that ordering works correctly
|
|
'''
|
|
def test_dot_notation(self):
|
|
'''
|
|
Test the Jinja dot-notation syntax for calling execution modules
|
|
'''
|
|
ret = self.run_function('state.sls', ['jinja_dot_notation'])
|
|
for state_ret in ret.values():
|
|
self.assertTrue(state_ret['result'])
|
|
|
|
def test_salt_contains_function(self):
|
|
'''
|
|
Test if we are able to check if a function exists inside the "salt"
|
|
wrapper (AliasLoader) which is available on Jinja templates.
|
|
'''
|
|
ret = self.run_function('state.sls', ['jinja_salt_contains_function'])
|
|
for state_ret in ret.values():
|
|
self.assertTrue(state_ret['result'])
|