Example #1
0
 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")
Example #2
0
 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()
Example #3
0
 def setUp(self):
     opts = salt.config.master_config(None)
     self.funcs = masterapi.RemoteFuncs(opts)
     self.funcs.cache = FakeCache()