Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Feb 4, 2020
1 parent c812c60 commit 2055d30
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
- name: Build
run: |
docker-compose -f test/docker-compose.yml build
- name: Test with pytest
run: |
pip install pytest
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def splunk_docker(request, docker_services, docker_ip):
}

docker_services.wait_until_responsive(
timeout=180.0, pause=0.5, check=lambda: is_responsive_splunk(splunk)
timeout=300.0, pause=1.0, check=lambda: is_responsive_splunk(splunk)
)

return splunk
Expand Down
2 changes: 1 addition & 1 deletion tests/test_juniper_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def test_juniper_netscreen_fw_singleport(record_property, setup_wordlist, get_ho
"{{ mark }} {% now 'utc', '%b %d %H:%M:%S' %} {{ host }} ns204: NetScreen device_id=netscreen2 [Root]system-notification-00257(traffic): start_time=\"2009-03-18 16:07:06\" duration=0 policy_id=320001 service=msrpc Endpoint Mapper(tcp) proto=6 src zone=Null dst zone=self action=Deny sent=0 rcvd=16384 src=21.10.90.125 dst=23.16.1.1 singleport=5000\n")
message = mt.render(mark="<23>", host=host)

sendsingle(message, setup_sc4s[0], setup_sc4s[1][5000])
sendsingle(message, host=setup_sc4s[0], port=setup_sc4s[1][5000])

st = env.from_string("search index=netfw host=\"{{ host }}\" sourcetype=\"netscreen:firewall\" | head 2")
search = st.render(host=host)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_pfsense.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_pfsense_filterlog(record_property, setup_wordlist, setup_splunk, setup_
mt = env.from_string(
"{{mark}}{% now 'utc', '%b %d %H:%M:%S' %} filterlog: 82,,,1000002666,mvneta2,match,pass,out,6,0x00,0x00000,64,ICMPv6,58,8,{{key}},\n")
message = mt.render(mark="<27>", key=host)
sendsingle(message, setup_sc4s[0], setup_sc4s[1][5006])
sendsingle(message, host=setup_sc4s[0], port=setup_sc4s[1][5006])

st = env.from_string("search index=netfw sourcetype=pfsense:filterlog \"{{key}}\" earliest=-2m | head 2")
search = st.render(key=host)
Expand Down Expand Up @@ -58,7 +58,7 @@ def test_pfsense_syslogd(record_property, setup_wordlist, setup_splunk, setup_sc
mt = env.from_string(
"{{mark}}{% now 'utc', '%b %d %H:%M:%S' %} syslogd: restart {{key}}\n")
message = mt.render(mark="<27>", key=host)
sendsingle(message, setup_sc4s[0], setup_sc4s[1][5006])
sendsingle(message, host=setup_sc4s[0], port=setup_sc4s[1][5006])

st = env.from_string("search index=netops sourcetype=pfsense:syslogd \"{{key}}\" earliest=-2m | head 2")
search = st.render(key=host)
Expand Down

0 comments on commit 2055d30

Please sign in to comment.