def setUpClass(cls): cls.setup_events_processes(events_device=True, events_main_device=False, registry_patcher=True) cls.node = DecodeDummyNode(name='test_node', parent_cluster=None, base_logdir=cls.temp_dir, ssh_login_info=dict(key_file='~/.ssh/scylla-test')) cls.node.remoter = DummyRemote() cls.monitor_node = DecodeDummyNode(name='test_monitor_node', parent_cluster=None, base_logdir=cls.temp_dir, ssh_login_info=dict(key_file='~/.ssh/scylla-test')) cls.monitor_node.remoter = DummyRemote()
def setUpClass(cls): cls.temp_dir = tempfile.mkdtemp() start_events_device(cls.temp_dir, timeout=5) cls.node = DecodeDummyNode(name='test_node', parent_cluster=None, base_logdir=cls.temp_dir, ssh_login_info=dict(key_file='~/.ssh/scylla-test')) cls.node.remoter = DummyRemote() cls.monitor_node = DecodeDummyNode(name='test_monitor_node', parent_cluster=None, base_logdir=cls.temp_dir, ssh_login_info=dict(key_file='~/.ssh/scylla-test')) cls.monitor_node.remoter = DummyRemote()
def monitor_node(self): dummy_monitor = DecodeDummyNode( name='test_monitor_node', parent_cluster=None, base_logdir=self.temp_dir, ssh_login_info=dict(key_file='~/.ssh/scylla-test'), ) dummy_monitor.remoter = DummyRemote() return dummy_monitor
def setup_cluster(self, nodes_number): self.cluster = DummyCluster() # Add 3 nodes for i in range(1, nodes_number+1): self.cluster.nodes.append(DummyNode(name='node%d' % i, parent_cluster=None, base_logdir=self.temp_dir, ssh_login_info=dict(key_file='~/.ssh/scylla-test'))) for node in self.cluster.nodes: node.remoter = DummyRemote()