2.36. test_dns module

class test_dns.TestDns(methodName='runTest')

Bases: framework.VppTestCase

Dns Test Cases

create_stream(src_if)

Create input packet stream for defined interface.

Parameters

src_if (VppInterface) – Interface to create packet stream for.

setUp()

Clear trace before running each test

classmethod setUpClass()

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

tearDown()

Show various debug prints after each test

classmethod tearDownClass()

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

test_dns_unittest()

DNS Name Resolver Basic Functional Test

verify_capture(dst_if, capture)

Verify captured input packet stream for defined interface.

Parameters
  • dst_if (VppInterface) – Interface to verify captured packet stream for.

  • capture (list) – Captured packet stream.