2.90. test_syslog module

class test_syslog.TestSyslog(methodName='runTest')

Bases: framework.VppTestCase

Syslog Protocol Test Cases

classmethod setUpClass()

Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api

syslog_generate(facility, severity, appname, msgid, sd=None, msg=None)

Generate syslog message

Parameters
  • facility – facility value

  • severity – severity level

  • appname – application name that originate message

  • msgid – message identifier

  • sd – structured data (optional)

  • msg – free-form message (optional)

syslog_verify(data, facility, severity, appname, msgid, sd=None, msg=None)

Verify syslog message

Parameters
  • data – syslog message

  • facility – facility value

  • severity – severity level

  • appname – application name that originate message

  • msgid – message identifier

  • sd – structured data (optional)

  • msg – free-form message (optional)

classmethod tearDownClass()

Perform final cleanup after running all tests in this test-case

test_syslog()

Syslog Protocol test