def setUp(self): self.mc1 = self.add_server(CustomErrorServer()) self.mc2 = self.add_server(Memcached()) self.mcr = self.add_mcrouter(self.config, extra_args=self.extra_args)
def setUp(self): # The order here corresponds to the order of hosts in the .json self.mc = self.add_server(Memcached()) self.mcrouter = self.get_mcrouter(['-b'])
def setUp(self): self.mc = self.add_server(Memcached()) self.mcrouter = self.add_mcrouter(self.config, extra_args=self.extra_args)
def setUp(self): self.a_new = self.add_server(Memcached()) self.a_old = self.add_server(Memcached()) self.b_new = self.add_server(Memcached()) self.b_old = self.add_server(Memcached())
def setUp(self): # The order here must corresponds to the order of hosts in the .json self.mc_good = self.add_server(Memcached()) self.mc_wild = self.add_server(Memcached())
def setUp(self): # The order here corresponds to the order of hosts in the .json self.l1 = self.add_server(Memcached()) self.l2 = self.add_server(Memcached())
def setUp(self): # The order here must corresponds to the order of hosts in the .json self.allhosts = [] for i in range(0, 4): self.allhosts.append(self.add_server(Memcached()))
def setUp(self): for i in range(3): self.add_server(Memcached())
def setUp(self): # The order here must corresponds to the order of hosts in the .json self.mc = self.add_server(Memcached()) self.mcr = self.add_mcrouter(self.config, '/a/a/', extra_args=self.extra_args)
def setUp(self): self.gut = self.add_server(Memcached()) self.wildcard = self.add_server(Memcached())
def setUp(self): self.wild_new = self.add_server(Memcached()) self.wild_old = self.add_server(Memcached())
def setUp(self): self.gutA = self.add_server(SleepServer()) self.gutB = self.add_server(ConnectionErrorServer()) self.gutC = self.add_server(Memcached())
def setUp(self): self.gutA = self.add_server(SleepServer()) self.gutB = self.add_server(SleepServer()) self.gutC = self.add_server(Memcached())
def setUp(self): self.mc1 = self.add_server(Memcached(port=11710)) self.mc2 = self.add_server(Memcached(port=11711)) self.mc_shadow = self.add_server(Memcached(port=11712))
def setUp(self): self.mc_warm = self.add_server(Memcached()) self.mc_cold = self.add_server(Memcached()) self.mcrouter = self.add_mcrouter(self.config)
def setUp(self): self.mc = self.add_server(Memcached()) extra_args = ['--allow-only-gets'] self.mcr = self.add_mcrouter(self.config, extra_args=extra_args)
def setUp(self): self.mc = self.add_server(Memcached()) self.mcr = self.add_mcrouter(self.config)
def test_bad_key_delete(self): mcrouter = self.getMcrouter(Memcached()) cmd = 'delete test.key' + ('x' * 10000) + '\r\n' res = mcrouter.issue_command(cmd) self.assertEqual('CLIENT_ERROR bad key\r\n', res)
def setUp(self): self.mc = self.add_server(Memcached())
def test_bad_key_prepend(self): mcrouter = self.getMcrouter(Memcached()) cmd = 'prepend test.key' + ('x' * 10000) + ' 0 0 3\r\nabc\r\n' res = mcrouter.issue_command(cmd) self.assertEqual('CLIENT_ERROR bad key\r\n', res)
def setUp(self): self.aa = self.add_server(Memcached()) self.ab = self.add_server(Memcached()) self.ba = self.add_server(Memcached()) self.bb = self.add_server(Memcached())
def test_remote_error_command_not_supported(self): mcrouter = self.getMcrouter(Memcached()) cmd = 'flush_all\r\n' res = mcrouter.issue_command(cmd) self.assertEqual('SERVER_ERROR Command disabled\r\n', res)
def setUp(self): self.wildcard = self.add_server(Memcached(), 12345)
def make_memcached(self): return MockMemcached() if self.use_mock_mc else Memcached()
def setUp(self): self.mc1 = self.add_server(Memcached()) # mc2 is ErrorRoute self.mc3 = self.add_server(Memcached())
def setUp(self): self.add_server(Memcached(), logical_port=12345) self.mcrouter = self.add_mcrouter(self.config, None, self.extra_args)