Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid feed error and update to 5.0 event api #18

Closed
wants to merge 6 commits into from
Closed

Fix invalid feed error and update to 5.0 event api #18

wants to merge 6 commits into from

Conversation

purbon
Copy link

@purbon purbon commented May 12, 2016

This PR:

  • Fixes the case when there is an invalid feed, exceptions are now catched and logged.
  • Also add test for normal, valid but empty and invalid feeds use cases.
    • And updates to use the 5.0 event api.

include code to be using the new logstash-core api, backport will be necessary.

fixes #1
relates to elastic/logstash#5309

exception, in this case now this error is log and the plugin continues
to operate.

Also intoduced some simple test cases for when the rss is perfect, when
is valid but empty and for when is invalid.
@purbon
Copy link
Author

purbon commented May 12, 2016

@guyboertje your thoughts here are welcome.

@guyboertje
Copy link

@purbon - looks good so far. Please make one of the failure fixtures an atom feed.

@purbon
Copy link
Author

purbon commented May 12, 2016

@guyboertje can do that, will look for examples.

@purbon
Copy link
Author

purbon commented May 27, 2016

@guyboertje added atom test as requested, also helped fixing a few issues 👍 , let me know what do you think.

@guyboertje
Copy link

LGTM

@purbon purbon closed this Jun 14, 2016
@purbon purbon reopened this Jun 14, 2016
@purbon purbon changed the title Fix invalid feed error Fix invalid feed error and update to 5.0 event api Jun 14, 2016
@elasticsearch-bot
Copy link

Pere Urbon-Bayes merged this into the following branches!

Branch Commits
master 56675d6, 49b6474, 88609d8, 1a4fae1, 10221fa, d9f5909

elasticsearch-bot pushed a commit that referenced this pull request Jun 14, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jun 14, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jun 14, 2016
…ld is not supose to be in all atom feeds as of the specs added atom tests

Fixes #18
elasticsearch-bot pushed a commit that referenced this pull request Jun 14, 2016
elasticsearch-bot pushed a commit that referenced this pull request Jun 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Error if no feed item
3 participants