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

Add integration tests #14

Open
lowell80 opened this issue Nov 19, 2018 · 0 comments
Open

Add integration tests #14

lowell80 opened this issue Nov 19, 2018 · 0 comments

Comments

@lowell80
Copy link
Member

Add integration tests in the form of either (1) wrapper calls to the SPL command executable (at the "chunked" protocol level, or (2) full end-to-end test in the form of run-anywhere SPL command with an expected output.

  1. Simulate splunk interface
  • PRO: Better "unittest" like concept; modular.
  • PRO: Allows for easier automated testing unittest framework and automated testing with Travis.
  • It may be possible to avoid low-level chunked encoding stuff by using mock.
  1. Test it in Splunk
  • PRO: A full end-to-end test may catch additional corner cases.
  • CON: More overhead
  • CON: Requires a fully running Splunk instance, and authentication to connect via the SDK (REST endpoints)
  • Alternatively, could be implemented as a dashboard or something like that where all the test run automatically whenever the dashboard is loaded. Seems like this could be painful to troubleshoot, but it would allow the entire test suite to be shipped with the product so that end-users could confirm behavior. (Seems complicated.)

Either way, it should be possible to borrow from the existing run-anywhere commands I put together in the docs.

I'm thinking 1 may be easier.

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