mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 07:30:02 +00:00
Validate --max|critical-load (work in progress).
This commit is contained in:
@@ -9,7 +9,7 @@ BEGIN {
|
||||
use strict;
|
||||
use warnings FATAL => 'all';
|
||||
use English qw(-no_match_vars);
|
||||
use Test::More tests => 6;
|
||||
use Test::More tests => 8;
|
||||
|
||||
use PerconaTest;
|
||||
|
||||
@@ -58,6 +58,20 @@ like(
|
||||
"Cannot --alter-foreign-keys-method=drop_swap with --no-drop-new-table"
|
||||
);
|
||||
|
||||
$output = `$cmd h=127.1,P=12345,u=msandbox,p=msandbox,D=mysql,t=user --max-load 100 --alter "ENGINE=MyISAM" --dry-run`;
|
||||
like(
|
||||
$output,
|
||||
qr/Invalid --max-load/,
|
||||
"Validates --max-load"
|
||||
);
|
||||
|
||||
$output = `$cmd h=127.1,P=12345,u=msandbox,p=msandbox,D=mysql,t=user --critical-load 100 --alter "ENGINE=MyISAM" --dry-run`;
|
||||
like(
|
||||
$output,
|
||||
qr/Invalid --critical-load/,
|
||||
"Validates --critical-load"
|
||||
);
|
||||
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
|
Reference in New Issue
Block a user