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

Some initial tests #6

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

defect
Copy link

@defect defect commented May 28, 2016

I've been starting to work on the opentsdb output on things unrelated to this change, but felt that some tests would be nice to ensure that I don't break something. This adds some very basic tests just to make sure that the plugin writes what we expect to opentsdb.

I stole Mocks::Server and a few ideas from logstash-output-graphite for this, since it makes it super simple to make sure we write what we expect to the server. It's just testing successful cases though. I'll try to add some tests for exception handling in the future.

I know the tests are quite simple, but please let me know what you think! Thanks.

EDIT: Added a test to ensure the plugin tries to reconnect if the connection is reset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant