mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove saltclass pillar unit test for list expansion
This test only applies to functionality present in Fluorine or newer. This commit will need to be reverted again in the fluorine branch.
This commit is contained in:
parent
3d95673be0
commit
85a9395c2a
1 changed files with 0 additions and 28 deletions
|
@ -50,31 +50,3 @@ class SaltclassPillarTestCase(TestCase, LoaderModuleMockMixin):
|
|||
def test_succeeds(self):
|
||||
ret = ['default.users', 'default.motd', 'default.empty', 'default', 'roles.app']
|
||||
self._runner(ret)
|
||||
|
||||
|
||||
@skipIf(NO_MOCK, NO_MOCK_REASON)
|
||||
class SaltclassPillarTestCaseListExpansion(TestCase, LoaderModuleMockMixin):
|
||||
'''
|
||||
Tests for salt.pillar.saltclass variable expansion in list
|
||||
'''
|
||||
def setup_loader_modules(self):
|
||||
return {saltclass: {'__opts__': fake_opts,
|
||||
'__salt__': fake_salt,
|
||||
'__grains__': fake_grains
|
||||
}}
|
||||
|
||||
def _runner(self, expected_ret):
|
||||
full_ret = {}
|
||||
parsed_ret = []
|
||||
try:
|
||||
full_ret = saltclass.ext_pillar(fake_minion_id, fake_pillar, fake_args)
|
||||
parsed_ret = full_ret['test_list']
|
||||
# Fail the test if we hit our NoneType error
|
||||
except TypeError as err:
|
||||
self.fail(err)
|
||||
# Else give the parsed content result
|
||||
self.assertListEqual(parsed_ret, expected_ret)
|
||||
|
||||
def test_succeeds(self):
|
||||
ret = [{'a': '192.168.10.10'}, '192.168.10.20']
|
||||
self._runner(ret)
|
||||
|
|
Loading…
Add table
Reference in a new issue