Esempio n. 1
0
 def test_list_mechs(self):
     nodes = RestConnection(self.master).get_nodes()
     for n in nodes:
         if n.ip == self.master.ip and n.port == self.master.port:
             node = n
     client = MemcachedClient(self.master.ip, node.memcached)
     mechs = list(client.sasl_mechanisms())
     assert "CRAM-MD5" in mechs
     assert "PLAIN" in mechs
     assert len(list(mechs)) == 2
Esempio n. 2
0
 def test_list_mechs(self):
     nodes = RestConnection(self.master).get_nodes()
     for n in nodes:
         if n.ip == self.master.ip and n.port == self.master.port:
             node = n
     client = MemcachedClient(self.master.ip, node.memcached)
     mechs = list(client.sasl_mechanisms())
     assert "CRAM-MD5" in mechs
     assert "PLAIN" in mechs
     assert len(list(mechs)) == 2
Esempio n. 3
0
 def test_list_mechs(self):
     nodes = RestConnection(self.master).get_nodes()
     for n in nodes:
         if n.ip == self.master.ip and n.port == self.master.port:
             node = n
     client = MemcachedClient(self.master.ip, node.memcached)
     mechs = list(client.sasl_mechanisms())
     self.log.info("Start check mech types")
     assert b"SCRAM-SHA1" in mechs
     assert b"SCRAM-SHA256" in mechs
     assert b"SCRAM-SHA512" in mechs
     assert b"PLAIN" in mechs
     assert len(list(mechs)) == 4
Esempio n. 4
0
 def test_list_mechs(self):
     nodes = RestConnection(self.master).get_nodes()
     for n in nodes:
         if n.ip == self.master.ip and n.port == self.master.port:
             node = n
     client = MemcachedClient(self.master.ip, node.memcached)
     mechs = list(client.sasl_mechanisms())
     self.log.info("Start check mech types")
     assert "SCRAM-SHA1" in mechs
     assert "SCRAM-SHA256" in mechs
     assert "SCRAM-SHA512" in mechs
     assert "PLAIN" in mechs
     assert len(list(mechs)) == 4