discourse/spec/fixtures/onebox
jbrw 461a2c334b
FIX: return an empty result if response from Amazon is missing expected attributes (#13173)
* FIX: return an empty result if response from Amazon is missing attributes

Check we have the basic attributes requires to construct a Onebox for Amazon.

This is an attempt to handle scenarios where we receive a valid 200-status response from an Amazon request that does not include the data we’re expecting.

* Update lib/onebox/engine/amazon_onebox.rb

Co-authored-by: Régis Hanol <regis@hanol.fr>

Co-authored-by: Régis Hanol <regis@hanol.fr>
2021-06-01 16:23:18 -04:00
..
amazon-ebook.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
amazon-error.response FIX: return an empty result if response from Amazon is missing expected attributes (#13173) 2021-06-01 16:23:18 -04:00
amazon-og.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
amazon.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
cloudapp-gif.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
cloudapp-jpg.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
cloudapp-mp4.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
cloudapp-others.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
cnn.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
dailymail.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
discourse_topic_reply.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
discourse_topic.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
etsy_mobile.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
etsy.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
gfycat.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
giphy.response FIX: Support pausing GIFs for giphy/tenor oneboxes (#13194) 2021-05-28 08:40:30 -04:00
githubactions_actions_run.response Various GitHub Onebox improvements (#13163) 2021-05-27 12:38:42 +03:00
githubactions_pr_run.response Various GitHub Onebox improvements (#13163) 2021-05-27 12:38:42 +03:00
githubactions_pr.response Various GitHub Onebox improvements (#13163) 2021-05-27 12:38:42 +03:00
githubblob.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
githubcommit.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
githubfolder-discourse-root.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
githubfolder.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
githubgist.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
githubpullrequest.response Various GitHub Onebox improvements (#13163) 2021-05-27 12:38:42 +03:00
gitlabblob.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
googledocs.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
googledrive.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
googlephotos.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
googleplayapp.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
image.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
imgur.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
instagram_new.response
instagram_old_onebox.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
instagram_old.response
instagram.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
kaltura.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
meetup_oembed.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
meetup.response.html DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
missing_description_and_image.response
missing_description.response
missing_image.response
pubmed-electronic-xml.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
pubmed-electronic.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
pubmed-xml.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
pubmed.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
reddit_image.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
slides.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
stackexchange-answer.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
stackexchange-question.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
tenor.response FIX: Support pausing GIFs for giphy/tenor oneboxes (#13194) 2021-05-28 08:40:30 -04:00
twitterstatus_quoted.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
twitterstatus.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
video_missing_description.response
video.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
wikimedia.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
wikipedia.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
wikipediaredirected.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
xkcd.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
youku-meta.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
youku.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
youtube-channel.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
youtube-embed.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
youtube-playlist.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
youtube.response DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30