Пример #1
0
 def common_dse_setup(cls, rf, keyspace_creation=True):
     cls.cluster = Cluster(protocol_version=PROTOCOL_VERSION)
     cls.session = cls.cluster.connect()
     cls.ks_name = cls.__name__.lower()
     if keyspace_creation:
         cls.create_keyspace(rf)
     cls.cass_version, cls.cql_version = get_server_versions()
     cls.session.set_keyspace(cls.ks_name)
Пример #2
0
 def common_dse_setup(cls, rf, keyspace_creation=True):
     cls.cluster = Cluster(protocol_version=PROTOCOL_VERSION)
     cls.session = cls.cluster.connect()
     cls.ks_name = cls.__name__.lower()
     if keyspace_creation:
         cls.create_keyspace(rf)
     cls.cass_version, cls.cql_version = get_server_versions()
     cls.session.set_keyspace(cls.ks_name)
Пример #3
0
 def session_setup(self):
     self.cluster = Cluster(protocol_version=PROTOCOL_VERSION)
     self.session = self.cluster.connect()
     self.ks_name = self._testMethodName.lower()
     self.cass_version, self.cql_version = get_server_versions()
Пример #4
0
 def session_setup(self):
     self.cluster = Cluster(protocol_version=PROTOCOL_VERSION)
     self.session = self.cluster.connect()
     self.ks_name = self._testMethodName.lower()
     self.cass_version, self.cql_version = get_server_versions()