Skip to content

Latest commit

 

History

History

README.md

Prerequsite

  • The plugin binary should exist on the system and it should be able to run with the user you run the pytest.
  • A Splunk instance (HEC port and splunkd port) should be accessible by the pytest.
  • Splunk HEC token should not overwrite index. The tests relies on "index=main"
  • Python version must be > 3.x

Testing Instructions

  1. (Optional) Use a virtual environment for the test
    virtualenv --python=python3.6 venv
    source venv/bin/activate

  2. Install the dependencies
    pip install -r requirements.txt

  3. Start the test with the required options configured
    python -m pytest <options>

    Options are:
    --splunkd-url

    --splunk-user

    • Description: splunk username
    • Default: admin

    --splunk-password

    • Description: splunk user password
    • Default: changeme

    --splunk-hec-url

    --splunk-hec-token

    • Description: splunk hec token for authentication.
    • Required

    --docker-plugin-path

    • Description: docker plugin binary path
    • Required

    --fifo-path

    • Description: full file path to the fifo
    • Required