neomatrix369 / RESTAPIUnifier

RESTAPIUnifier - brings together all the APIs of various formats under one roof!
GNU General Public License v2.0
8 stars 7 forks source link

Failing Flickr Tests #88

Open mbateman opened 9 years ago

mbateman commented 9 years ago

search and recentPhotos fail with the following:

java.io.IOException: Server returned HTTP response code: 403 for URL: http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=90edd0bb753263d264b2d99480cee810&format=json&text=hello

This error is because the url should be https. May be Flickr changed this recently.

neomatrix369 commented 9 years ago

Very likely, this worked but these APIs (Examples) are a moving target sometimes. When they change we need to accommodate atleast in the examples and then if required the base library as well.

mbateman commented 8 years ago

This issue has been fixed.

neomatrix369 commented 8 years ago

Flikr tests are still failing for me, see

Results :

Failed tests: 
  ArtistEndpointBehaviours.should_retrieve_appropriate_format:78->BaseFixture.assertResponseIsValidXml:52 The beginning of the response does not match XML start
Expected: a string starting with "<?xml version=\"1.0\" encoding=\"UTF-8\"?>, <artist>,"
     but: was "<?xml version="1.0" encoding="UTF-8"?>, <error code="3" description="Invalid artist">, </error>"
  ArtistEndpointBehaviours.should_default_to_rss_format:68->BaseFixture.assertResponseIsValidRss:48 The rss description tag is not correct
Expected: a string containing "<description>Artist Lookup for yello</description>"
     but: was "<?xml version="1.0" encoding="UTF-8"?>, <rss xmlns:muzu="http://www.muzu.tv/schemas/muzu/1.0" version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:av="http://www.searchvideo.com/schemas/av/1.0">,   <channel>,     <title>Error</title>,     <link>http://www.muzu.tv/</link>,     <description>Error</description>,     <image>,       <url>http://www.muzu.tv/images/small_logo.png</url>,       <title>Error</title>,       <link>http://www.muzu.tv/</link>,     </image>,     <language>en-gb</language>,     <item>,       <title>3</title>,       <description>Invalid artist</description>,     </item>,   </channel>, </rss>"