mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-28 12:17:02 +00:00
test: dtest: copied get_node_ip from dtests to scylla_cluster.py
Co-authored-by: Marcin Maliszkiewicz <marcinmal@scylladb.com>
This commit is contained in:
@@ -52,6 +52,9 @@ class ScyllaCluster:
|
||||
for n, server in enumerate(self._sorted_nodes(self.manager.all_servers()), start=1)
|
||||
]
|
||||
|
||||
def get_node_ip(self, nodeid: int) -> str:
|
||||
return self.nodelist()[nodeid-1].address()
|
||||
|
||||
def populate(self, nodes: int | list[int]) -> ScyllaCluster:
|
||||
if self._config_options.get("alternator_enforce_authorization"):
|
||||
self.manager.auth_provider = PlainTextAuthProvider(username="cassandra", password="cassandra")
|
||||
|
||||
Reference in New Issue
Block a user