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:
Wayne Werner 2019-07-10 00:47:21 -06:00
parent a13cb3eae6
commit c333ac83a3
No known key found for this signature in database
GPG Key ID: C36D3A8D5BEF0935

View File

@ -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'])