https://fedorahosted.org/freeipa/ticket/5281

I forgot to send patch that fixes also stageuser tests with current changes in has_keytab and has_password attributes.

Patch attached
From 125509907e74f77624086e2e86b531ac0feaf7ef Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Wed, 4 May 2016 13:46:44 +0200
Subject: [PATCH] fix stageuser tests (removal of has_keytab and has_password
 from find)

User tests has been fixed, but stageuser tests was forgotten, this
commit fixes it.

https://fedorahosted.org/freeipa/ticket/5281
---
 ipatests/test_xmlrpc/tracker/stageuser_plugin.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/ipatests/test_xmlrpc/tracker/stageuser_plugin.py b/ipatests/test_xmlrpc/tracker/stageuser_plugin.py
index dd973c8a43dea81418e032ae7eb3fe6fb745422a..73b33c62694f4482806c519f1f12615064b35d85 100644
--- a/ipatests/test_xmlrpc/tracker/stageuser_plugin.py
+++ b/ipatests/test_xmlrpc/tracker/stageuser_plugin.py
@@ -58,6 +58,9 @@ class StageUserTracker(Tracker):
     activate_keys = retrieve_keys | {
         u'has_keytab', u'has_password', u'nsaccountlock'}
 
+    find_keys = retrieve_keys - {u'has_keytab', u'has_password'}
+    find_all_keys = retrieve_all_keys - {u'has_keytab', u'has_password'}
+
     def __init__(self, name, givenname, sn, **kwargs):
         super(StageUserTracker, self).__init__(default_version=None)
         self.uid = name
@@ -188,9 +191,9 @@ class StageUserTracker(Tracker):
     def check_find(self, result, all=False, raw=False):
         """ Check 'stageuser-find' command result """
         if all:
-            expected = self.filter_attrs(self.retrieve_all_keys)
+            expected = self.filter_attrs(self.find_all_keys)
         else:
-            expected = self.filter_attrs(self.retrieve_keys)
+            expected = self.filter_attrs(self.find_keys)
 
         # small override because stageuser-find returns different
         # type of nsaccountlock value than DS, but overall the value
-- 
2.5.5

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