mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
33 lines
768 B
Python
33 lines
768 B
Python
# coding: utf-8
|
|
'''
|
|
Integration tests for renderer functions
|
|
'''
|
|
|
|
# Import Python Libs
|
|
from __future__ import absolute_import
|
|
|
|
# Import Salt Testing libs
|
|
from salttesting.helpers import ensure_in_syspath
|
|
ensure_in_syspath('../../')
|
|
|
|
# Import Salt Libs
|
|
import integration
|
|
|
|
|
|
class TestJinjaRenderer(integration.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'])
|
|
|
|
|
|
if __name__ == '__main__':
|
|
from integration import run_tests
|
|
run_tests(TestJinjaRenderer)
|