Skip to content
Merged
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
21 changes: 21 additions & 0 deletions integration/session_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -751,4 +751,25 @@ def test_unset_values
cluster && cluster.close
end

# Test for host broadcast_address and listen_address
#
# test_host_broadcast_listen_address tests that broadcast_address and listen_address metadata are able to be retrieved
# from a host, when they are available.
#
# @since 3.0.0
# @jira_ticket RUBY-168
# @expected_result broadcast_address and listen_address should be retrieved
#
# @test_category host:metadata
#
def test_host_broadcast_listen_address
cluster = Cassandra.cluster
cluster.hosts.each do |host|
assert_equal '127.0.0.1', host.broadcast_address.to_s
assert_equal '127.0.0.1', host.listen_address.to_s
end
ensure
cluster && cluster.close
end

end