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

Implement Result to encapsulate expected results and tests results #2

Closed
gpestana opened this issue Aug 23, 2017 · 0 comments
Closed

Comments

@gpestana
Copy link
Owner

Implement a Result type which encapsulates expected results and tests results.

The Result type must keep information about number of alerts triggered and its type (ok, warn, crit). An instance of Result can be constructed with data from the test configuration file or from the node-stats entry of the kapacitor task.

The method compare is implemented to compare two results. This method will compare an expected result with a test result. If the Results are the same, the test pass. Otherwise it will fail.

The String method of Test will compare the results and print whether the test has passed or not (and show the reason why it didn't)

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

No branches or pull requests

1 participant