@pytest.mark.parametrize('event', testdata)
def test_aruba(record_property, setup_wordlist, get_host_key, setup_splunk, setup_sc4s, event):
    host = get_host_key
    dt = datetime.datetime.now()
    (iso, bsd, time, date, tzoffset, tzname, epoch) = time_operations(dt)
    arubadate = dt.strftime('%b %d %H:%M:%S %Y')
    epoch = epoch[:(- 7)]
    mt = env.from_string((event + '\n'))
    message = mt.render(mark='<188>', bsd=bsd, host=host, arubadate=arubadate)
    sendsingle(message, setup_sc4s[0], setup_sc4s[1][514])
    st = env.from_string('search index=netops _time={{ epoch }} sourcetype="aruba:syslog" host={{ host }}')
    search = st.render(epoch=epoch, host=host)
    (resultCount, eventCount) = splunk_single(setup_splunk, search)
    record_property('host', host)
    record_property('resultCount', resultCount)
    record_property('message', message)
    assert (resultCount == 1)
@pytest.mark.parametrize('event', testdata)
def test_aruba(record_property, setup_wordlist, get_host_key, setup_splunk, setup_sc4s, event):
    host = get_host_key
    dt = datetime.datetime.now()
    (iso, bsd, time, date, tzoffset, tzname, epoch) = time_operations(dt)
    arubadate = dt.strftime('%b %d %H:%M:%S %Y')
    epoch = epoch[:(- 7)]
    mt = env.from_string((event + '\n'))
    message = mt.render(mark='<188>', bsd=bsd, host=host, arubadate=arubadate)
    sendsingle(message, setup_sc4s[0], setup_sc4s[1][514])
    st = env.from_string('search index=netops _time={{ epoch }} sourcetype="aruba:syslog" host={{ host }}')
    search = st.render(epoch=epoch, host=host)
    (resultCount, eventCount) = splunk_single(setup_splunk, search)
    record_property('host', host)
    record_property('resultCount', resultCount)
    record_property('message', message)
    assert (resultCount == 1)