Backport 51471

This commit is contained in:
twangboy 2019-02-06 13:46:48 -07:00
parent 0c989f04f1
commit 20a7ee5d4b
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -22,8 +22,12 @@ class WinDNSTest(ModuleCase):
'''
Test add and removing a dns server
'''
# Get a list of interfaces on the system
interfaces = self.run_function('network.interfaces_names')
skipIf(interfaces.count == 0, 'This test requires a network interface')
interface = interfaces[0]
dns = '8.8.8.8'
interface = 'Ethernet'
# add dns server
self.assertTrue(self.run_function('win_dns_client.add_dns', [dns, interface], index=42))