@@ -119,7 +119,7 @@ class ControlConnectionFourNodeClusterTests : public ControlConnectionTests {
119119 * each
120120 */
121121class ControlConnectionSingleNodeDataCentersClusterTests
122- : public ControlConnectionTests {
122+ : public ControlConnectionTests {
123123public:
124124 ControlConnectionSingleNodeDataCentersClusterTests () {
125125 number_dc1_nodes_ = 1 ;
@@ -250,7 +250,7 @@ CASSANDRA_INTEGRATION_TEST_F(ControlConnectionTests,
250250 logger_.add_critera (" Unable to establish a control connection to host " \
251251 " 1.1.1.1 because of the following error:" );
252252 Cluster cluster = Cluster::build ().with_contact_points (" 1.1.1.1" )
253- .with_local_address (" 127.0.0.1" );
253+ .with_local_address (" 127.0.0.1" );
254254 try {
255255 cluster.connect ();
256256 FAIL () << " Connection was established using invalid IP address" ;
@@ -289,8 +289,8 @@ CASSANDRA_INTEGRATION_TEST_F(ControlConnectionTwoNodeClusterTests,
289289 * node discovery of the second node
290290 */
291291 Cluster cluster = default_cluster ()
292- .with_load_balance_round_robin ()
293- .with_contact_points (generate_contact_points (ccm_->get_ip_prefix (), 1 ));
292+ .with_load_balance_round_robin ()
293+ .with_contact_points (generate_contact_points (ccm_->get_ip_prefix (), 1 ));
294294 Session session = cluster.connect ();
295295
296296 // Stop the first node and bootstrap a third node into the cluster
@@ -331,7 +331,7 @@ CASSANDRA_INTEGRATION_TEST_F(ControlConnectionTests, TopologyChange) {
331331 * to ensure all nodes can be accessed during request execution
332332 */
333333 Cluster cluster = default_cluster ()
334- .with_load_balance_round_robin ();
334+ .with_load_balance_round_robin ();
335335 Session session = cluster.connect ();
336336
337337 // Bootstrap a second node and ensure all hosts are actively used
@@ -374,8 +374,8 @@ CASSANDRA_INTEGRATION_TEST_F(ControlConnectionTwoNodeClusterTests,
374374 * to ensure all nodes can be accessed during request execution
375375 */
376376 Cluster cluster = default_cluster ()
377- .with_load_balance_round_robin ()
378- .with_reconnect_wait_time (10 ); // Ensure reconnect timeout is quick
377+ .with_load_balance_round_robin ()
378+ .with_reconnect_wait_time (10 ); // Ensure reconnect timeout is quick
379379 Session session = cluster.connect ();
380380
381381 // Ensure all hosts are actively used
@@ -422,8 +422,8 @@ CASSANDRA_INTEGRATION_TEST_F(ControlConnectionThreeNodeClusterTests,
422422 * node discovery
423423 */
424424 Cluster cluster = default_cluster ()
425- .with_load_balance_round_robin ()
426- .with_contact_points (generate_contact_points (ccm_->get_ip_prefix (), 1 ));
425+ .with_load_balance_round_robin ()
426+ .with_contact_points (generate_contact_points (ccm_->get_ip_prefix (), 1 ));
427427 Session session = cluster.connect ();
428428
429429 // Ensure all hosts are actively used
@@ -461,10 +461,10 @@ CASSANDRA_INTEGRATION_TEST_F(ControlConnectionThreeNodeClusterTests,
461461 logger_.add_critera (" to host 192.0.2.2 closed" );
462462 logger_.add_critera (" to host 192.0.2.3 closed" );
463463 Cluster cluster = default_cluster (false ) // Do not add the default contact points
464- .with_load_balance_round_robin ()
465- .with_contact_points (generate_contact_points (" 192.0.2." , 3 )) // Invalid IPs
466- .with_contact_points (generate_contact_points (ccm_->get_ip_prefix (), 1 )) // Single valid contact point
467- .with_connect_timeout (1000u ); // Handle initial invalid IPs
464+ .with_load_balance_round_robin ()
465+ .with_contact_points (generate_contact_points (" 192.0.2." , 3 )) // Invalid IPs
466+ .with_contact_points (generate_contact_points (ccm_->get_ip_prefix (), 1 )) // Single valid contact point
467+ .with_connect_timeout (1000u ); // Handle initial invalid IPs
468468 Session session = cluster.connect ();
469469
470470 // Ensure the invalid IPs were not reached
@@ -501,8 +501,8 @@ CASSANDRA_INTEGRATION_TEST_F(ControlConnectionThreeNodeClusterTests,
501501 * node discovery
502502 */
503503 Cluster cluster = default_cluster ()
504- .with_load_balance_round_robin ()
505- .with_contact_points (generate_contact_points (ccm_->get_ip_prefix (), 1 ));
504+ .with_load_balance_round_robin ()
505+ .with_contact_points (generate_contact_points (ccm_->get_ip_prefix (), 1 ));
506506 Session session = cluster.connect ();
507507
508508 // Delete the `local` row from the system table (control connection info)
@@ -538,8 +538,8 @@ CASSANDRA_INTEGRATION_TEST_F(ControlConnectionThreeNodeClusterTests,
538538 connect (); // Create the default session
539539 std::stringstream update_system_table;
540540 update_system_table
541- << " UPDATE system.peers SET rpc_address = null WHERE peer = '"
542- << ccm_->get_ip_prefix () << " 3'" ;
541+ << " UPDATE system.peers SET rpc_address = null WHERE peer = '"
542+ << ccm_->get_ip_prefix () << " 3'" ;
543543 for (int i = 0 ; i < 3 ; ++i) { // Ensure all the nodes in the cluster are updated
544544 session_.execute (update_system_table.str ());
545545 }
@@ -550,8 +550,8 @@ CASSANDRA_INTEGRATION_TEST_F(ControlConnectionThreeNodeClusterTests,
550550 * node discovery
551551 */
552552 Cluster cluster = default_cluster (false )
553- .with_load_balance_round_robin ()
554- .with_contact_points (generate_contact_points (ccm_->get_ip_prefix (), 1 ));
553+ .with_load_balance_round_robin ()
554+ .with_contact_points (generate_contact_points (ccm_->get_ip_prefix (), 1 ));
555555 Session session = cluster.connect ();
556556
557557 // Ensure nodes one and two are actively used
@@ -665,8 +665,8 @@ CASSANDRA_INTEGRATION_TEST_F(ControlConnectionFourNodeClusterTests,
665665
666666 // Create a cluster object using randomized contact points
667667 Cluster cluster = default_cluster ()
668- .with_load_balance_round_robin ()
669- .with_randomized_contact_points (true );
668+ .with_load_balance_round_robin ()
669+ .with_randomized_contact_points (true );
670670
671671 // Establish a connect and ensure the first established host is not node 1
672672 Session session;
@@ -691,7 +691,7 @@ CASSANDRA_INTEGRATION_TEST_F(ControlConnectionFourNodeClusterTests,
691691
692692 // Ensure the next host is the expected host
693693 std::string current_host =
694- session.execute (SELECT_ALL_SYSTEM_LOCAL_CQL).host ();
694+ session.execute (SELECT_ALL_SYSTEM_LOCAL_CQL).host ();
695695 ASSERT_STREQ (expected_host.str ().c_str (), current_host.c_str ());
696696 }
697697
@@ -723,7 +723,7 @@ CASSANDRA_INTEGRATION_TEST_F(ControlConnectionSingleNodeDataCentersClusterTests,
723723 * policy
724724 */
725725 Cluster cluster = default_cluster ()
726- .with_load_balance_dc_aware (" invalid_data_center" , 0 , false );
726+ .with_load_balance_dc_aware (" invalid_data_center" , 0 , false );
727727 try {
728728 Session session = cluster.connect ();
729729 FAIL () << " Connection was established using invalid data center" ;
@@ -766,8 +766,8 @@ CASSANDRA_INTEGRATION_TEST_F(ControlConnectionTests,
766766 std::stringstream expected_message;
767767 // Message to validate number of I/O worker threads
768768 expected_message << " Unable to connect to host " << ccm_->get_ip_prefix ()
769- << " 1 because of the following error: Received error response "
770- << " 'Keyspace '" << inavlid_keyspace_name << " ' does not exist'" ;
769+ << " 1 because of the following error: Received error response "
770+ << " 'Keyspace '" << inavlid_keyspace_name << " ' does not exist'" ;
771771 logger_.add_critera (expected_message.str ());
772772 // Message to validate connection/host is ready/up
773773 expected_message.str (" " );
0 commit comments