@@ -357,15 +357,18 @@ def test_failover_to_new_writer__switch_read_only(
357357 current_id = rds_utils .query_instance_id (conn )
358358 assert new_writer_id == current_id
359359
360+ @pytest .mark .parametrize ("plugins" , ["read_write_splitting,failover,host_monitoring" , "read_write_splitting,failover,host_monitoring_v2" ])
360361 @enable_on_features ([TestEnvironmentFeatures .NETWORK_OUTAGES_ENABLED ,
361362 TestEnvironmentFeatures .ABORT_CONNECTION_SUPPORTED ])
362363 @enable_on_num_instances (min_instances = 3 )
363364 @disable_on_engines ([DatabaseEngine .MYSQL ])
364365 def test_failover_to_new_reader__switch_read_only (
365366 self , test_environment : TestEnvironment , test_driver : TestDriver ,
366- proxied_failover_props , conn_utils , rds_utils ):
367+ proxied_failover_props , conn_utils , rds_utils , plugins ):
367368 WrapperProperties .FAILOVER_MODE .set (proxied_failover_props , "reader-or-writer" )
368369
370+ WrapperProperties .PLUGINS .set (proxied_failover_props , plugins )
371+
369372 target_driver_connect = DriverHelper .get_connect_func (test_driver )
370373 with AwsWrapperConnection .connect (
371374 target_driver_connect , ** conn_utils .get_proxy_connect_params (), ** proxied_failover_props ) as conn :
@@ -404,13 +407,15 @@ def test_failover_to_new_reader__switch_read_only(
404407 current_id = rds_utils .query_instance_id (conn )
405408 assert other_reader_id == current_id
406409
410+ @pytest .mark .parametrize ("plugins" , ["read_write_splitting,failover,host_monitoring" , "read_write_splitting,failover,host_monitoring_v2" ])
407411 @enable_on_features ([TestEnvironmentFeatures .NETWORK_OUTAGES_ENABLED ,
408412 TestEnvironmentFeatures .ABORT_CONNECTION_SUPPORTED ])
409413 @enable_on_num_instances (min_instances = 3 )
410414 @disable_on_engines ([DatabaseEngine .MYSQL ])
411415 def test_failover_reader_to_writer__switch_read_only (
412416 self , test_environment : TestEnvironment , test_driver : TestDriver ,
413- proxied_failover_props , conn_utils , rds_utils ):
417+ proxied_failover_props , conn_utils , rds_utils , plugins ):
418+ WrapperProperties .PLUGINS .set (proxied_failover_props , plugins )
414419 target_driver_connect = DriverHelper .get_connect_func (test_driver )
415420 with AwsWrapperConnection .connect (
416421 target_driver_connect , ** conn_utils .get_proxy_connect_params (), ** proxied_failover_props ) as conn :
@@ -522,19 +527,21 @@ def test_pooled_connection__cluster_url_failover(
522527 new_driver_conn = conn .target_connection
523528 assert initial_driver_conn is not new_driver_conn
524529
530+ @pytest .mark .parametrize ("plugins" , ["read_write_splitting,failover,host_monitoring" , "read_write_splitting,failover,host_monitoring_v2" ])
525531 @enable_on_features ([TestEnvironmentFeatures .FAILOVER_SUPPORTED , TestEnvironmentFeatures .NETWORK_OUTAGES_ENABLED ,
526532 TestEnvironmentFeatures .ABORT_CONNECTION_SUPPORTED ])
527533 @disable_on_engines ([DatabaseEngine .MYSQL ])
528534 def test_pooled_connection__failover_failed (
529535 self , test_environment : TestEnvironment , test_driver : TestDriver ,
530- rds_utils , conn_utils , proxied_failover_props ):
536+ rds_utils , conn_utils , proxied_failover_props , plugins ):
531537 writer_host = test_environment .get_writer ().get_host ()
532538 provider = SqlAlchemyPooledConnectionProvider (lambda _ , __ : {"pool_size" : 1 }, None , lambda host_info , props : writer_host in host_info .host )
533539 ConnectionProviderManager .set_connection_provider (provider )
534540
535541 WrapperProperties .FAILOVER_TIMEOUT_SEC .set (proxied_failover_props , "1" )
536542 WrapperProperties .FAILURE_DETECTION_TIME_MS .set (proxied_failover_props , "1000" )
537543 WrapperProperties .FAILURE_DETECTION_COUNT .set (proxied_failover_props , "1" )
544+ WrapperProperties .PLUGINS .set (proxied_failover_props , plugins )
538545
539546 target_driver_connect = DriverHelper .get_connect_func (test_driver )
540547 with AwsWrapperConnection .connect (
0 commit comments