# See the file LICENSE for redistribution information. # # Copyright (c) 2007-2009 Oracle. All rights reserved. # # $Id$ # # TEST repmgr002 # TEST Basic repmgr election test. # TEST # TEST Open three clients of different priorities and make sure repmgr # TEST elects expected master. Shut master down, make sure repmgr elects # TEST expected remaining client master, make sure former master can join # TEST as client. # TEST # TEST Run for btree only because access method shouldn't matter. # TEST proc repmgr002 { method { niter 100 } { tnum "002" } args } { source ./include.tcl if { $is_freebsd_test == 1 } { puts "Skipping replication manager test on FreeBSD platform." return } if { $is_windows9x_test == 1 } { puts "Skipping replication test on Win9x platform." return } # Skip for all methods except btree. if { $checking_valid_methods } { return btree } if { [is_btree $method] == 0 } { puts "Repmgr$tnum: skipping for non-btree method $method." return } set args [convert_args $method $args] puts "Repmgr$tnum ($method): Basic repmgr election test." basic_repmgr_election_test $method $niter $tnum 0 $args }