@@ -134,8 +134,8 @@ class DbaasTests : public Integration {
134134 Cluster cluster = default_cluster (false )
135135 .with_randomized_contact_points (false )
136136 .with_load_balance_round_robin ();
137- cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (cluster. get (),
138- creds_v1 ().c_str ());
137+ EXPECT_EQ (CASS_OK, cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (
138+ cluster. get (), creds_v1 ().c_str () ));
139139 Session session = cluster.connect ();
140140 for (int i = 0 ; i < 3 ; ++i) {
141141 Row row = session.execute (SELECT_ALL_SYSTEM_LOCAL_CQL).first_row ();
@@ -260,8 +260,8 @@ CASSANDRA_INTEGRATION_TEST_F(DbaasTests, ResolveAndConnect) {
260260 CHECK_FAILURE;
261261
262262 Cluster cluster = default_cluster (false );
263- cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (cluster. get (),
264- creds_v1 ().c_str ());
263+ ASSERT_EQ (CASS_OK, cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (
264+ cluster. get (), creds_v1 ().c_str () ));
265265 connect (cluster);
266266}
267267
@@ -282,8 +282,8 @@ CASSANDRA_INTEGRATION_TEST_F(DbaasTests, QueryEachNode) {
282282 CHECK_FAILURE;
283283
284284 Cluster cluster = default_cluster (false ).with_load_balance_round_robin ();
285- cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (cluster. get (),
286- creds_v1 ().c_str ());
285+ ASSERT_EQ (CASS_OK, cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (
286+ cluster. get (), creds_v1 ().c_str () ));
287287 connect (cluster);
288288
289289 ServerNames server_names;
@@ -319,8 +319,8 @@ CASSANDRA_INTEGRATION_TEST_F(DbaasTests, SchemaMetadata) {
319319 CHECK_FAILURE;
320320
321321 Cluster cluster = default_cluster (false );
322- cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (cluster. get (),
323- creds_v1 ().c_str ());
322+ ASSERT_EQ (CASS_OK, cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (
323+ cluster. get (), creds_v1 ().c_str () ));
324324 connect (cluster);
325325
326326 // clang-format off
@@ -434,6 +434,8 @@ CASSANDRA_INTEGRATION_TEST_F(DbaasTests, SchemaMetadata) {
434434 EXPECT_EQ (Text (" (0, 0)" ), Text (initcond));
435435 ASSERT_TRUE (true );
436436 }
437+
438+ cass_schema_meta_free (schema_meta);
437439}
438440
439441/* *
@@ -454,8 +456,8 @@ CASSANDRA_INTEGRATION_TEST_F(DbaasTests, ConsistencyGuardrails) {
454456 CHECK_FAILURE;
455457
456458 Cluster cluster = default_cluster (false );
457- cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (cluster. get (),
458- creds_v1 ().c_str ());
459+ ASSERT_EQ (CASS_OK, cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (
460+ cluster. get (), creds_v1 ().c_str () ));
459461 connect (cluster);
460462
461463 session_.execute (
@@ -489,8 +491,8 @@ CASSANDRA_INTEGRATION_TEST_F(DbaasTests, ConsistencyGuardrailsInvalid) {
489491 CHECK_FAILURE;
490492
491493 Cluster cluster = default_cluster (false );
492- cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (cluster. get (),
493- creds_v1 ().c_str ());
494+ ASSERT_EQ (CASS_OK, cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (
495+ cluster. get (), creds_v1 ().c_str () ));
494496 connect (cluster);
495497
496498 session_.execute (
@@ -535,8 +537,8 @@ CASSANDRA_INTEGRATION_TEST_F(DbaasTests, DcAwareTokenAwareRoutingDefault) {
535537 replicas.push_back (std::pair<int , int >(5 , 2 ));
536538
537539 Cluster cluster = default_cluster (false );
538- cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (cluster. get (),
539- creds_v1 ().c_str ());
540+ ASSERT_EQ (CASS_OK, cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (
541+ cluster. get (), creds_v1 ().c_str () ));
540542 connect (cluster);
541543
542544 for (std::vector<std::pair<int , int > >::iterator it = replicas.begin (), end = replicas.end ();
@@ -568,8 +570,8 @@ CASSANDRA_INTEGRATION_TEST_F(DbaasTests, ResolveAndConnectWithoutCredsInBundle)
568570 CHECK_FAILURE;
569571
570572 Cluster cluster = default_cluster (false );
571- cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (cluster. get (),
572- creds_v1_no_creds ().c_str ());
573+ ASSERT_EQ (CASS_OK, cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (
574+ cluster. get (), creds_v1_no_creds ().c_str () ));
573575 cluster.with_credentials (" cassandra" , " cassandra" );
574576 connect (cluster);
575577}
@@ -589,8 +591,8 @@ CASSANDRA_INTEGRATION_TEST_F(DbaasTests, InvalidWithoutCreds) {
589591 CHECK_FAILURE;
590592
591593 Cluster cluster = default_cluster (false );
592- cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (cluster. get (),
593- creds_v1_no_creds ().c_str ());
594+ ASSERT_EQ (CASS_OK, cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (
595+ cluster. get (), creds_v1_no_creds ().c_str () ));
594596 try {
595597 connect (cluster);
596598 EXPECT_TRUE (false ) << " Connection established" ;
@@ -614,8 +616,8 @@ CASSANDRA_INTEGRATION_TEST_F(DbaasTests, InvalidMetadataServer) {
614616 CHECK_FAILURE;
615617
616618 Cluster cluster = default_cluster (false );
617- cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (cluster. get (),
618- creds_v1_unreachable ().c_str ());
619+ EXPECT_EQ (CASS_OK, cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (
620+ cluster. get (), creds_v1_unreachable ().c_str () ));
619621 try {
620622 connect (cluster);
621623 EXPECT_TRUE (false ) << " Connection established" ;
@@ -639,8 +641,9 @@ CASSANDRA_INTEGRATION_TEST_F(DbaasTests, InvalidCertificate) {
639641 CHECK_FAILURE;
640642
641643 Cluster cluster = default_cluster (false );
642- cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (cluster.get (),
643- creds_v1_no_cert ().c_str ());
644+ EXPECT_EQ (CASS_ERROR_LIB_BAD_PARAMS,
645+ cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (
646+ cluster.get (), creds_v1_no_cert ().c_str ()));
644647 try {
645648 connect (cluster);
646649 EXPECT_TRUE (false ) << " Connection established" ;
@@ -664,8 +667,8 @@ CASSANDRA_INTEGRATION_TEST_F(DbaasTests, InvalidCertificateAuthority) {
664667 CHECK_FAILURE;
665668
666669 Cluster cluster = default_cluster (false );
667- cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (cluster. get (),
668- creds_v1_invalid_ca ().c_str ());
670+ ASSERT_EQ (CASS_OK, cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (
671+ cluster. get (), creds_v1_invalid_ca ().c_str () ));
669672 try {
670673 connect (cluster);
671674 EXPECT_TRUE (false ) << " Connection established" ;
@@ -693,8 +696,8 @@ CASSANDRA_INTEGRATION_TEST_F(DbaasTests, QueryWithNodesDown) {
693696 ServerNames server_names = get_server_names ();
694697
695698 Cluster cluster = default_cluster (false );
696- cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (cluster. get (),
697- creds_v1 ().c_str ());
699+ ASSERT_EQ (CASS_OK, cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (
700+ cluster. get (), creds_v1 ().c_str () ));
698701 connect (cluster);
699702
700703 EXPECT_TRUE (stop_node (1 ));
@@ -729,8 +732,8 @@ CASSANDRA_INTEGRATION_TEST_F(DbaasTests, FullOutage) {
729732 ServerNames server_names = get_server_names ();
730733
731734 Cluster cluster = default_cluster (false ).with_constant_reconnect (10 ); // Quick reconnect
732- cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (cluster. get (),
733- creds_v1 ().c_str ());
735+ ASSERT_EQ (CASS_OK, cass_cluster_set_cloud_secure_connection_bundle_no_ssl_lib_init (
736+ cluster. get (), creds_v1 ().c_str () ));
734737 connect (cluster);
735738
736739 EXPECT_TRUE (stop_cluster ());
0 commit comments