mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Only run one filter test
We're already running jinja filter tests elsewhere, running them all on ssh takes 30 minutes. This should knock about 30s off of the run time.
This commit is contained in:
parent
a13cb3eae6
commit
c333ac83a3
@ -5,11 +5,20 @@ from __future__ import absolute_import, print_function, unicode_literals
|
||||
|
||||
# Import Salt Testing Libs
|
||||
from tests.support.case import SSHCase
|
||||
from tests.support.jinja_filters import JinjaFiltersTest
|
||||
|
||||
|
||||
class SSHJinjaFiltersTest(SSHCase, JinjaFiltersTest):
|
||||
class SSHJinjaFiltersTest(SSHCase):
|
||||
'''
|
||||
testing Jinja filters are available via state system & salt-ssh
|
||||
'''
|
||||
pass
|
||||
|
||||
def test_dateutils_strftime(self):
|
||||
'''
|
||||
test jinja filter datautils.strftime
|
||||
'''
|
||||
arg = self._arg_str('state.sls', ['jinja_filters.dateutils_strftime'])
|
||||
ret = self.run_ssh(arg)
|
||||
import salt.utils.json
|
||||
ret = salt.utils.json.loads(ret)['localhost']
|
||||
self.assertIn('module_|-test_|-test.echo_|-run', ret)
|
||||
self.assertIn('ret', ret['module_|-test_|-test.echo_|-run']['changes'])
|
||||
|
Loading…
Reference in New Issue
Block a user