@@ -349,15 +349,14 @@ def test_failover_to_new_writer__switch_read_only(
349349 current_id = rds_utils .query_instance_id (conn )
350350 assert new_writer_id == current_id
351351
352- @pytest .mark .parametrize ("plugins" , ["read_write_splitting,failover,host_monitoring_v2" ])
353352 @enable_on_features ([TestEnvironmentFeatures .NETWORK_OUTAGES_ENABLED ,
354353 TestEnvironmentFeatures .ABORT_CONNECTION_SUPPORTED ])
355354 @enable_on_num_instances (min_instances = 3 )
356355 @disable_on_engines ([DatabaseEngine .MYSQL ])
357356 def test_failover_to_new_reader__switch_read_only (
358357 self , test_environment : TestEnvironment , test_driver : TestDriver ,
359- proxied_failover_props , conn_utils , rds_utils , plugins ):
360- WrapperProperties .PLUGINS .set (proxied_failover_props , plugins )
358+ proxied_failover_props , conn_utils , rds_utils ):
359+ WrapperProperties .PLUGINS .set (proxied_failover_props , "read_write_splitting,failover,host_monitoring" )
361360 WrapperProperties .FAILOVER_MODE .set (proxied_failover_props , "reader-or-writer" )
362361
363362 target_driver_connect = DriverHelper .get_connect_func (test_driver )
@@ -398,16 +397,14 @@ def test_failover_to_new_reader__switch_read_only(
398397 current_id = rds_utils .query_instance_id (conn )
399398 assert other_reader_id == current_id
400399
401- @pytest .mark .parametrize ("plugins" , ["read_write_splitting,failover,host_monitoring" ,
402- "read_write_splitting,failover,host_monitoring_v2" ])
403400 @enable_on_features ([TestEnvironmentFeatures .NETWORK_OUTAGES_ENABLED ,
404401 TestEnvironmentFeatures .ABORT_CONNECTION_SUPPORTED ])
405402 @enable_on_num_instances (min_instances = 3 )
406403 @disable_on_engines ([DatabaseEngine .MYSQL ])
407404 def test_failover_reader_to_writer__switch_read_only (
408405 self , test_environment : TestEnvironment , test_driver : TestDriver ,
409- proxied_failover_props , conn_utils , rds_utils , plugins ):
410- WrapperProperties .PLUGINS .set (proxied_failover_props , plugins )
406+ proxied_failover_props , conn_utils , rds_utils ):
407+ WrapperProperties .PLUGINS .set (proxied_failover_props , "read_write_splitting,failover,host_monitoring" )
411408 target_driver_connect = DriverHelper .get_connect_func (test_driver )
412409 with AwsWrapperConnection .connect (
413410 target_driver_connect , ** conn_utils .get_proxy_connect_params (), ** proxied_failover_props ) as conn :
@@ -519,19 +516,17 @@ def test_pooled_connection__cluster_url_failover(
519516 new_driver_conn = conn .target_connection
520517 assert initial_driver_conn is not new_driver_conn
521518
522- @pytest .mark .parametrize ("plugins" , ["read_write_splitting,failover,host_monitoring" ,
523- "read_write_splitting,failover,host_monitoring_v2" ])
524519 @enable_on_features ([TestEnvironmentFeatures .FAILOVER_SUPPORTED , TestEnvironmentFeatures .NETWORK_OUTAGES_ENABLED ,
525520 TestEnvironmentFeatures .ABORT_CONNECTION_SUPPORTED ])
526521 @disable_on_engines ([DatabaseEngine .MYSQL ])
527522 def test_pooled_connection__failover_failed (
528523 self , test_environment : TestEnvironment , test_driver : TestDriver ,
529- rds_utils , conn_utils , proxied_failover_props , plugins ):
524+ rds_utils , conn_utils , proxied_failover_props ):
530525 writer_host = test_environment .get_writer ().get_host ()
531526 provider = SqlAlchemyPooledConnectionProvider (lambda _ , __ : {"pool_size" : 1 }, None , lambda host_info , props : writer_host in host_info .host )
532527 ConnectionProviderManager .set_connection_provider (provider )
533528
534- WrapperProperties .PLUGINS .set (proxied_failover_props , plugins )
529+ WrapperProperties .PLUGINS .set (proxied_failover_props , "read_write_splitting,failover,host_monitoring" )
535530 WrapperProperties .FAILOVER_TIMEOUT_SEC .set (proxied_failover_props , "1" )
536531 WrapperProperties .FAILURE_DETECTION_TIME_MS .set (proxied_failover_props , "1000" )
537532 WrapperProperties .FAILURE_DETECTION_COUNT .set (proxied_failover_props , "1" )
0 commit comments