From ee51ad0f25d4de2c20c3c666156781e4ff678863 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Mon, 30 Nov 2015 19:04:02 +0100 Subject: [PATCH] Fix DNS tests: dns-resolve returns warning Reviewed-By: Petr Spacek --- ipatests/test_xmlrpc/test_dns_plugin.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ipatests/test_xmlrpc/test_dns_plugin.py b/ipatests/test_xmlrpc/test_dns_plugin.py index 5f692528e..45b0217c8 100644 --- a/ipatests/test_xmlrpc/test_dns_plugin.py +++ b/ipatests/test_xmlrpc/test_dns_plugin.py @@ -2883,6 +2883,15 @@ class test_dns(Declarative): 'result': True, 'summary': "Found '%s'" % wildcard_rec1_test1, 'value': wildcard_rec1_test1, + 'messages': ({ + 'message': u"'dns-resolve' is deprecated. The " + u"command may return an unexpected result, " + u"the resolution of the DNS domain is done " + u"on a randomly chosen IPA server.", + 'code': 13015, + 'type': u'warning', + 'name': u'CommandDeprecatedWarning' + },) }, ), @@ -2894,6 +2903,15 @@ class test_dns(Declarative): 'result': True, 'summary': "Found '%s'" % wildcard_rec1_test2, 'value': wildcard_rec1_test2, + 'messages': ({ + 'message': u"'dns-resolve' is deprecated. The " + u"command may return an unexpected result, " + u"the resolution of the DNS domain is done " + u"on a randomly chosen IPA server.", + 'code': 13015, + 'type': u'warning', + 'name': u'CommandDeprecatedWarning' + },) }, ),