def setUp(self): opts = AdaptedConfigurationTestCaseMixin.get_temp_config("master") salt.cache.MemCache.data.clear() self.funcs = masterapi.RemoteFuncs(opts) self.funcs.cache = FakeCache() self.addCleanup(self.funcs.destroy) self.addCleanup(delattr, self, "funcs")
def setUp(self): opts = salt.config.master_config( os.path.join(RUNTIME_VARS.TMP_CONF_DIR, 'master')) self.funcs = masterapi.RemoteFuncs(opts) self.funcs.cache = FakeCache()
def setUp(self): opts = salt.config.master_config(None) self.funcs = masterapi.RemoteFuncs(opts) self.funcs.cache = FakeCache()