mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 21:51:21 +00:00
Fix Client to expect X-Percona-Resource-Type else links. Add headers to Mock/UserAgent. Start testing run_agent(). As TO_JSON() magic to Run so encode can encode Service contain blessed Run objs. Use BUILDARGS to convert Run as hashref to real objs.
This commit is contained in:
@@ -57,8 +57,8 @@ sub as_string {
|
||||
my $self = shift;
|
||||
chomp(my $error = $self->error);
|
||||
$error =~ s/\n/ /g;
|
||||
return sprintf "Error: %s\nStatus: %d\nRequest: %s %s %s\n",
|
||||
$error, $self->status, $self->method, $self->url, $self->content || '';
|
||||
return sprintf "%s\nRequest: %s %s %s\nStatus: %d\n",
|
||||
$error, $self->method, $self->url, $self->content || '', $self->status;
|
||||
}
|
||||
|
||||
no Lmo;
|
||||
|
Reference in New Issue
Block a user