Skip to content

Commit

Permalink
Update test_common.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Feb 3, 2020
1 parent 0cfe902 commit 9727a8f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,14 @@ def test_check_config_version_multiple(record_property, setup_wordlist, setup_sp
record_property("resultCount", resultCount)

assert resultCount == 0

def test_check_sc4s_version(record_property, setup_wordlist, setup_splunk):

st = env.from_string("search index=main sourcetype=\"sc4s:events:startup:out\" \"sc4s version=\" NOT \"UNKNOWN\"")
search = st.render()

resultCount, eventCount = splunk_single(setup_splunk, search)

record_property("resultCount", resultCount)

assert resultCount == 0

0 comments on commit 9727a8f

Please sign in to comment.