Hi,

I've made patch to fix for https://fedorahosted.org/freeipa/ticket/5987.

Please note, that this patch must be applied on top on my patch no. 0018, which provides other fixes on the same file (and same test).


Lenka

From ef04d8d013643fd5d2a0a7de32ab23686e46531d Mon Sep 17 00:00:00 2001
From: Lenka Doudova <ldoud...@redhat.com>
Date: Tue, 28 Jun 2016 06:27:41 +0200
Subject: [PATCH] Tests: Fix frontend tests

Test ipatests/test_ipalib/test_frontend.py::test_Command::test_validate fails due to attributes that are no longer present, therefore assertion for these values was removed.

https://fedorahosted.org/freeipa/ticket/5987
---
 ipatests/test_ipalib/test_frontend.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/ipatests/test_ipalib/test_frontend.py b/ipatests/test_ipalib/test_frontend.py
index 0a5951159978706a2265bb688f08deca85de4c0d..c3dd9104c152dc9e9da774a53e0c6a42b9a89bf8 100644
--- a/ipatests/test_ipalib/test_frontend.py
+++ b/ipatests/test_ipalib/test_frontend.py
@@ -493,10 +493,7 @@ class test_Command(ClassChecker):
         fail['option0'] = u'whatever'
         e = raises(errors.ValidationError, sub.validate, **fail)
         assert_equal(e.name, u'option0')
-        assert_equal(e.value, u'whatever')
         assert_equal(e.error, u"must equal 'option0'")
-        assert e.rule.__class__.__name__ == 'Rule'
-        assert e.index is None
 
         # Check with a missing required arg
         fail = dict(okay)
-- 
2.7.4

-- 
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