Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions tests/integration/standard/test_control_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ def test_control_connection_port_discovery(self):
assert 7000 == host.broadcast_port

@xfail_scylla_version_lt(reason='scylladb/scylladb#26992 - system.client_routes is not yet supported',
oss_scylla_version="7.0", ent_scylla_version="2025.4.0")
oss_scylla_version="7.0", ent_scylla_version="2026.1.0")
def test_client_routes_change_event(self):
cluster = TestCluster()

# Establish control connection
cluster.connect()
self.session = self.cluster.connect()

flag = Event()

Expand All @@ -161,7 +161,7 @@ def on_event(event):
finally:
flag.set()

cluster.control_connection._connection.register_watchers({"CLIENT_ROUTES_CHANGE": on_event})
self.session.cluster.control_connection._connection.register_watchers({"CLIENT_ROUTES_CHANGE": on_event})

try:
payload = [
Expand All @@ -170,9 +170,6 @@ def on_event(event):
"host_id": host_ids[0],
"address": "localhost",
"port": 9042,
"tls_port": 0,
"alternator_port": 0,
"alternator_https_port": 0,
"rack": "string",
"datacenter": "string"
},
Expand All @@ -181,9 +178,6 @@ def on_event(event):
"host_id": host_ids[1],
"address": "localhost",
"port": 9042,
"tls_port": 0,
"alternator_port": 0,
"alternator_https_port": 0,
Comment on lines -184 to -186
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure ? as far as i know these ports are there, but rack and dc are gone

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if they are set to 0 there is an error

"rack": "string",
"datacenter": "string"
}
Expand All @@ -197,7 +191,7 @@ def on_event(event):
})
assert response.status_code == 200
assert flag.wait(20), "Schema change event was not received after registering watchers"
assert got_connection_ids == connection_ids
assert got_host_ids == host_ids
assert set(got_connection_ids) == set(connection_ids)
assert set(got_host_ids) == set(host_ids)
finally:
cluster.shutdown()
Loading