Skip to content

Anton0/splunk-tester

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Splunk Tester

Performing a cluster upgrade? Writing a complicated SPL?

Maybe you need some automated test cases!

Install

Pull

$ git pull git@github.com:pwmcintyre/splunk-tester.git

Install

$ npm install

Install Mocha

$ npm install --global mocha

Configure

Update your config accordingly here:

$ vi ./config/development.json

See detailed config documentation.

Run a local Splunk instance (optional)

I've used this docker splunk container for testing. I recommended it for small tests.

Run

Run all test cases

$ mocha

Example output (if you haven't changed any test cases)

$ mocha    

  Basic searching
    ✓ should return 1 result quickly (367ms)

  1 passing (377ms)

Write More Test Cases

Add as many test cases as you need in the test folder.

$ ls ./tests/test-*.js

See detailed mocha documentation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%