Merge pull request #3334 from s0undt3ch/develop

Fix `tests.unit.pydsl_test` and `tests.unit.stateconf_test`.
This commit is contained in:
Thomas S Hatch 2013-01-19 20:12:23 -08:00
commit d9b1997c30
2 changed files with 7 additions and 16 deletions

View File

@ -13,10 +13,7 @@ from salt.renderers.yaml import HAS_ORDERED_DICT
REQUISITES = ['require', 'require_in', 'use', 'use_in', 'watch', 'watch_in']
OPTS = salt.config.master_config('whatever, just load the defaults!')
# we should have used minion_config(), but that would try to resolve
# the master hostname, and retry for 30 seconds! Lucily for our purpose,
# master conf or minion conf, it doesn't matter.
OPTS = salt.config.minion_config(None, check_dns=False)
OPTS['id'] = 'whatever'
OPTS['file_client'] = 'local'
OPTS['file_roots'] = dict(base=['/tmp'])
@ -30,8 +27,6 @@ def render_sls(content, sls='', env='base', **kws):
StringIO(content), env=env, sls=sls,
**kws)
class PyDSLRendererTestCase(TestCase):
def setUp(self):

View File

@ -10,11 +10,7 @@ import salt.config
REQUISITES = ['require', 'require_in', 'use', 'use_in', 'watch', 'watch_in']
OPTS = salt.config.master_config('whatever, just load the defaults!')
# we should have used minion_config(), but that would try to resolve
# the master hostname, and retry for 30 seconds! Lucily for our purpose,
# master conf or minion conf, it doesn't matter.
OPTS = salt.config.minion_config(None, check_dns=False)
OPTS['file_client'] = 'local'
OPTS['file_roots'] = dict(base=['/'])