Bug 26906

Summary: Koha_ExternalContent_OverDrive.t is failing randomly
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Test SuiteAssignee: Chris Cormack <chris>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 25551    

Description Jonathan Druart 2020-11-03 10:00:52 UTC
Master_U18 (run 933)

18:10:19 koha_1       | #   Failed test 'error_message()'
18:10:19 koha_1       | #   at t/db_dependent/Koha_ExternalContent_OverDrive.t line 41.
18:10:19 koha_1       | # Original:
18:10:19 koha_1       | # Can't connect to oauth.overdrive.com:443
18:10:19 koha_1       | # Request:
18:10:19 koha_1       | # POST https://oauth.overdrive.com/token
18:10:19 koha_1       | # Authorization: Basic RFVNTVk6RFVNTVk=
18:10:19 koha_1       | # User-Agent: Koha/20.06.00.055
18:10:19 koha_1       | # Content-Length: 126
18:10:19 koha_1       | # Content-Type: application/x-www-form-urlencoded
18:10:19 koha_1       | # 
18:10:19 koha_1       | # code=blah&grant_type=authorization_code&redirect_uri=http%3A%2F%2Fmykoha.org%2Fcgi-bin%2Fkoha%2Fexternal%2Foverdrive%2Fauth.pl
18:10:19 koha_1       | # 
18:10:19 koha_1       | # Response:
18:10:19 koha_1       | # 500 Can't connect to oauth.overdrive.com:443
18:10:19 koha_1       | # Content-Type: text/plain
18:10:19 koha_1       | # Client-Date: Mon, 02 Nov 2020 17:10:19 GMT
18:10:19 koha_1       | # Client-Warning: Internal response
18:10:19 koha_1       | # 
18:10:19 koha_1       | # Can't connect to oauth.overdrive.com:443
18:10:19 koha_1       | # 
18:10:19 koha_1       | # 
18:10:19 koha_1       | # Turned into:
18:10:19 koha_1       | # Can't connect to oauth.overdrive.com:443
18:10:19 koha_1       | # Looks like you failed 1 test of 6.
18:10:19 koha_1       | [17:10:19] t/db_dependent/Koha_ExternalContent_OverDrive.

Maybe we should skip the test if the server is not reachable.