Sha256: 6c0e01e76b473db43e258fd98e2803b82cb18847112239dfbb04b213e80f2bc8

Contents?: true

Size: 494 Bytes

Versions: 4

Compression:

Stored size: 494 Bytes

Contents

require_relative "../integration_helper"

class NoTrafficTest < Minitest::Test
  def test_basic_cutover
    $mysql_master.connection.query("set GLOBAL READ_ONLY=0")
    $mysql_slave.connection.query("set GLOBAL READ_ONLY=1")

    puts "testing basic cutover..."

    system "#{master_cut_script} 127.0.0.1:#{$mysql_master.port} 127.0.0.1:#{$mysql_slave.port} root -p ''"
    assert_ro($mysql_master.connection, 'master', true)
    assert_ro($mysql_slave.connection, 'master', false)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ar_mysql_flexmaster-1.0.1 test/integration/no_traffic_test.rb
ar_mysql_flexmaster-1.0.0 test/integration/no_traffic_test.rb
ar_mysql_flexmaster-0.6.0 test/integration/no_traffic_test.rb
ar_mysql_flexmaster-0.5.0 test/integration/no_traffic_test.rb