splunk / eventgen

Splunk Event Generator: Eventgen
Apache License 2.0
376 stars 180 forks source link

[BUG] Unable to run test cases #399

Open ryanfaircloth opened 4 years ago

ryanfaircloth commented 4 years ago

Describe the bug Unable to use pytest

To Reproduce setup venv and run pytest

Expected behavior Setup of develop dependencies should be adequate to test.

Actual behavior

pytest failed for missing dependency immediately in addition I suspect there area requirements for access to Splunk instances not defined

Screenshots

`================================================================================================================== ERRORS =================================================================================================================== ____ ERROR collecting tests/large/test_outputplugin.py ____ ImportError while importing test module '/Users/rfaircloth/Documents/GitHub/eventgen/tests/large/test_output_plugin.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: tests/large/test_output_plugin.py:1: in from tests.large.utils.splunk_search_util import ( E ModuleNotFoundError: No module named 'tests' ============================================================================================================= warnings summary ============================================================================================================== venv/lib/python3.7/site-packages/_pytest/mark/structures.py:334 /Users/rfaircloth/Documents/GitHub/eventgen/venv/lib/python3.7/site-packages/_pytest/mark/structures.py:334: PytestUnknownMarkWarning: Unknown pytest.mark.large - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html PytestUnknownMarkWarning,

-- Docs: https://docs.pytest.org/en/latest/warnings.html !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ==================================================================================================== 1 warnings, 1 error in 0.99 seconds ====================================================================================================

Additional context Add any other context about the problem here.