mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix masterapi test to use testing directory for configs
This commit is contained in:
parent
5a41f484ef
commit
556a2067fc
1 changed files with 3 additions and 1 deletions
|
@ -2,12 +2,14 @@
|
|||
|
||||
# Import Python libs
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
|
||||
# Import Salt libs
|
||||
import salt.config
|
||||
import salt.daemons.masterapi as masterapi
|
||||
|
||||
# Import Salt Testing Libs
|
||||
from tests.support.paths import TMP_CONF_DIR
|
||||
from tests.support.unit import TestCase
|
||||
from tests.support.mock import (
|
||||
patch,
|
||||
|
@ -33,7 +35,7 @@ class RemoteFuncsTestCase(TestCase):
|
|||
'''
|
||||
|
||||
def setUp(self):
|
||||
opts = salt.config.master_config(None)
|
||||
opts = salt.config.master_config(os.path.join(TMP_CONF_DIR, 'master'))
|
||||
self.funcs = masterapi.RemoteFuncs(opts)
|
||||
self.funcs.cache = FakeCache()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue