Bug 26033: Use pic.infini.fr instead of framapic
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 21 Jul 2020 10:36:17 +0000 (12:36 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 24 Jul 2020 13:24:01 +0000 (15:24 +0200)
https://framapic.org/ is closing
"""
Framapic will be closing its doors on Tuesday, January 12, 2021. You will find a similar service on this page.
Uploading images is now disabled, but you can still retrieve your images on the My images page.
"""

https://framablog.org/2019/09/26/lets-de-frama-tify-the-internet/
https://framablog.org/2020/03/03/10-bonnes-raisons-de-fermer-certains-services-framasoft-la-5e-est-un-peu-bizarre/
(French)

We can still use another service. However we may think about hosting the
service ourself!

Test plan:
Modify a selenium script to make it fail (for instance modify the path
for a find_element call)
Run it
Confirm that the screenshot has been uploaded correctly and that the
link works

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

t/lib/Selenium.pm

index 29f7ef4..95a4ac1 100644 (file)
@@ -28,7 +28,7 @@ __PACKAGE__->mk_accessors(qw(login password base_url opac_base_url selenium_addr
 sub capture {
     my ( $class, $driver ) = @_;
 
-    my $lutim_server = q|https://framapic.org|; # Thanks Framasoft!
+    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 ) {