Skip to content

Commit

Permalink
Update test_ubiquiti_unifi.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Oct 19, 2021
1 parent 2e4a4ee commit 21d571d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_ubiquiti_unifi.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ def test_ubiquiti_unifi_ap_u7pg2(
epoch = epoch[:-7]

mt = env.from_string(
"{{mark}}{{ bsd }} U7PG2,788a2056b181,v4.0.66.10832: logread[5495]: Logread connected to 10.1.1.1:514 {{host}}"
"{{mark}}{{ bsd }} U7PG2,788a2056b181,v4.0.66.10832: logread[5495]: Logread connected to 10.1.1.1:514 {{ host }}"
)
message = mt.render(mark="<27>", bsd=bsd, host=host)
sendsingle(message, setup_sc4s[0], setup_sc4s[1][514])

st = env.from_string(
'search _time={{ epoch }} index=netops sourcetype=ubnt NOT host=U7PG2 "{{host}}"'
'search _time={{ epoch }} index=netops sourcetype=ubnt NOT host=U7PG2 "{{ host }}"'
)
search = st.render(epoch=epoch, host=host)

Expand All @@ -124,13 +124,13 @@ def test_ubiquiti_unifi_ap_u7pg2_alt(
epoch = epoch[:-7]

mt = env.from_string(
"{{mark}}{{ bsd }} 788a2056b181,v4.0.66.10832: logread[5495]: Logread connected to 10.2.0.9:514 {{host}}"
"{{mark}}{{ bsd }} 788a2056b181,v4.0.66.10832: logread[5495]: Logread connected to 10.2.0.9:514 {{ host }}"
)
message = mt.render(mark="<27>", bsd=bsd, host=host)
sendsingle(message, setup_sc4s[0], setup_sc4s[1][514])

st = env.from_string(
'search _time={{ epoch }} index=netops sourcetype=ubnt NOT host=U7PG2 NOT host={{host}} "{{host}}"'
'search _time={{ epoch }} index=netops sourcetype=ubnt NOT host=U7PG2 NOT host={{ host }} "{{ host }}"'
)
search = st.render(epoch=epoch)

Expand Down

0 comments on commit 21d571d

Please sign in to comment.