mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-22 03:44:55 +00:00
Removed three autodetect tests that were rightfully failing -- I thought the tests were for cluster1 -> cluster2, but they were for cluster1, unrelated cluster2
This commit is contained in:
@@ -614,39 +614,31 @@ $sb->load_file('node4', "$sample/a-z.sql");
|
||||
# Add node4 in the cluster2 to the DSN table.
|
||||
$node1->do(qq/INSERT INTO dsns.dsns VALUES (5, null, '$c->{node4}->{dsn}')/);
|
||||
|
||||
for my $args (
|
||||
["using recusion-method", '--recursion-method', "dsn=$node1_dsn,D=dsns,t=dsns"],
|
||||
["autodetecting everything"]
|
||||
)
|
||||
{
|
||||
my $test = shift @$args;
|
||||
|
||||
$output = output(
|
||||
$output = output(
|
||||
sub { pt_table_checksum::main(@args,
|
||||
@$args,
|
||||
'--recursion-method', "dsn=$node1_dsn,D=dsns,t=dsns",
|
||||
qw(-d test))
|
||||
},
|
||||
stderr => 1,
|
||||
);
|
||||
);
|
||||
|
||||
like(
|
||||
like(
|
||||
$output,
|
||||
qr/h=127(?:\Q.0.0\E)?.1,P=12345 is in cluster pt_sandbox_cluster/,
|
||||
"Detects that node1 is in pt_sandbox_cluster ($test)"
|
||||
);
|
||||
"Detects that node1 is in pt_sandbox_cluster"
|
||||
);
|
||||
|
||||
like(
|
||||
like(
|
||||
$output,
|
||||
qr/h=127(?:\Q.0.0\E)?.1,P=2900 is in cluster cluster2/,
|
||||
"Detects that node4 is in cluster2 ($test)"
|
||||
);
|
||||
"Detects that node4 is in cluster2"
|
||||
);
|
||||
|
||||
unlike(
|
||||
unlike(
|
||||
$output,
|
||||
qr/test/,
|
||||
"Different clusters, no results ($test)"
|
||||
);
|
||||
}
|
||||
"Different clusters, no results"
|
||||
);
|
||||
|
||||
$sb->stop_sandbox(qw(node4 node5 node6));
|
||||
|
||||
|
Reference in New Issue
Block a user