Sha256: fc017808c74cc1927ab0575e48bb96c5a8a3241e488288539b81553cfe51f23b
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 Bytes
Contents
# frozen_string_literal: true 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ar_mysql_flexmaster-1.0.2 | test/integration/no_traffic_test.rb |