Bug 28250: Remove upload of debug for Selenium failures

We added an upload of the source page and of the screenshot but both services are discontinued.

If we need them back we must host them ourselves.

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2021-04-28 12:18:36 +02:00
parent e751ce8cf2
commit a4da4b7568

View file

@ -29,17 +29,8 @@ __PACKAGE__->mk_accessors(qw(login password base_url opac_base_url selenium_addr
sub capture {
my ( $class, $driver ) = @_;
$driver->get_page_source;
write_file('/tmp/page_source_from_selenium', {binmode => ':utf8'}, $driver->get_page_source );
my $gdf3_url = qx(cat /tmp/page_source_from_selenium | curl --data-binary \@- https://gdf3.com);
print STDERR "\nPage source pasted at $gdf3_url";
my $lutim_server = q|https://pic.infini.fr/|; # Thanks Infini!
$driver->capture_screenshot('selenium_failure.png');
my $from_json = from_json qx{curl -s -F "format=json" -F "file=\@selenium_failure.png" -F "delete-day=1" $lutim_server};
if ( $from_json ) {
print STDERR "\nSCREENSHOT: $lutim_server/" . $from_json->{msg}->{short} . "\n";
}
}
sub new {