From 21d571de2c7af4970bd6dbaf7cd79237f5aad25d Mon Sep 17 00:00:00 2001 From: rfaircloth-splunk Date: Tue, 19 Oct 2021 08:58:59 -0400 Subject: [PATCH] Update test_ubiquiti_unifi.py --- tests/test_ubiquiti_unifi.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_ubiquiti_unifi.py b/tests/test_ubiquiti_unifi.py index b9523ce988..9c94c6d9e0 100644 --- a/tests/test_ubiquiti_unifi.py +++ b/tests/test_ubiquiti_unifi.py @@ -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) @@ -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)