Skip to content

Commit

Permalink
feat: added --sc4s-version option
Browse files Browse the repository at this point in the history
  • Loading branch information
kdoroszko-splunk committed Nov 23, 2023
1 parent 3d2f34e commit b20c7d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pytest_splunk_addon/splunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,13 @@ def pytest_addoption(parser):
default="514",
help="SC4S Port. default is 514",
)
group.addoption(
"--sc4s-version",
action="store",
dest="sc4s_version",
default="latest",
help="SC4S version. default is latest",
)
group.addoption(
"--thread-count",
action="store",
Expand Down Expand Up @@ -437,6 +444,7 @@ def splunk(request, file_system_prerequisite):
os.environ["SPLUNK_USER"] = request.config.getoption("splunk_user")
os.environ["SPLUNK_PASSWORD"] = request.config.getoption("splunk_password")
os.environ["SPLUNK_VERSION"] = request.config.getoption("splunk_version")
os.environ["SC4S_VERSION"] = request.config.getoption("sc4s_version")

request.fixturenames.append("splunk_docker")
splunk_info = request.getfixturevalue("splunk_docker")
Expand Down

0 comments on commit b20c7d1

Please sign in to comment.