tests: python3 changes for dns tests

Type: fix
Change-Id: Ia81c60d469b29606d9988d7d9ed1e133e6af7158
Signed-off-by: snaramre <snaramre@cisco.com>
This commit is contained in:
snaramre
2019-10-11 19:04:19 +00:00
committed by Ole Trøan
parent b0d83f188d
commit 26ea1465ae

View File

@ -82,7 +82,7 @@ class TestDns(VppTestCase):
self.logger.info(self.vapi.cli("dns cache add bozo.clown.org 1.2.3.4")) self.logger.info(self.vapi.cli("dns cache add bozo.clown.org 1.2.3.4"))
# Test the binary API # Test the binary API
rv = self.vapi.dns_resolve_name(name='bozo.clown.org') rv = self.vapi.dns_resolve_name(name=b'bozo.clown.org')
self.assertEqual(rv.ip4_address, IPv4Address(u'1.2.3.4').packed) self.assertEqual(rv.ip4_address, IPv4Address(u'1.2.3.4').packed)
# Configure 127.0.0.1/8 on the pg interface # Configure 127.0.0.1/8 on the pg interface