Test needs to be updated due deprecation of dns-resolve command.

Patch attached
From 0166e2455b273a5f8f2811edd92b8287b5d77222 Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Mon, 30 Nov 2015 19:04:02 +0100
Subject: [PATCH] Fix DNS tests: dns-resolve returns warning

---
 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 5f692528eb9a5ae0dc488c663ab43cc47ffd29b3..45b0217c8027aff4b8de81011c21a4f03bec336c 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'
+                    },)
             },
         ),
 
-- 
2.5.0

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to