mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Removing expected from strftime and hashsum tests since the results are always different and we are only concerned about the filter being available.
This commit is contained in:
parent
860234c045
commit
f3f42146ca
1 changed files with 2 additions and 6 deletions
|
@ -157,12 +157,10 @@ class JinjaFiltersTest(object):
|
|||
'''
|
||||
test jinja filter datautils.strftime
|
||||
'''
|
||||
_expected = {'ret': '2018-04-03'}
|
||||
ret = self.run_function('state.sls',
|
||||
['jinja_filters.dateutils_strftime'])
|
||||
self.assertIn('module_|-test_|-test.echo_|-run', ret)
|
||||
self.assertEqual(ret['module_|-test_|-test.echo_|-run']['changes'],
|
||||
_expected)
|
||||
self.assertIn('ret', ret['module_|-test_|-test.echo_|-run']['changes'])
|
||||
|
||||
def test_files_is_binary(self):
|
||||
'''
|
||||
|
@ -233,12 +231,10 @@ class JinjaFiltersTest(object):
|
|||
'''
|
||||
test jinja filter hashutils.file_hashsum
|
||||
'''
|
||||
_expected = {'ret': '1faec9786e4fd621f32c060a0b0cf2562fdd0cc1f338d1f2fcbdf79380c0ffb1'}
|
||||
ret = self.run_function('state.sls',
|
||||
['jinja_filters.hashutils_file_hashsum'])
|
||||
self.assertIn('module_|-test_|-test.echo_|-run', ret)
|
||||
self.assertEqual(ret['module_|-test_|-test.echo_|-run']['changes'],
|
||||
_expected)
|
||||
self.assertIn('ret', ret['module_|-test_|-test.echo_|-run']['changes'])
|
||||
|
||||
def test_hashutils_hmac(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue