There are 3 types of tests included:
Knowledge objects test cases
CIM Compatibility test cases
Index Time test cases
The test generation mechanism is divided into 3 types of class
Tests: Test templates
TestGenerator: Generates the test cases using pytest.params
SampleGenerator: Generates the data for which the test cases will be executed.
EventIngestor: Ingests the generated data to Splunk.
Other utility classes like Add-on parser & Data model handlers.
The workflow of the pytest-splunk-addon is as follows:
The API is divided into the following packages & modules.