[Freeipa-devel] [PATCH 0028][Tests] Fix failing user tests

Martin Babinsky mbabinsk at redhat.com
Wed Jul 20 12:04:53 UTC 2016


On 07/15/2016 06:10 PM, Lenka Doudova wrote:
> Hi,
>
> here's patch with fix for failing user tests, specifically tests with
> renaming users.
>
> Failures were caused by RFE Kerberos principal aliases. As part of the
> fix, I had to rewrite few of the tests themselves, since they used
> "--setattr" option rather than "--rename" option, which produces
> different results.
>
>
> Lenka
>
>
>

Hi Lenka,

I get nice green *user tests with this patch, so functionally it seems ok.

However, the commit message does not meet our project standards[1]:

1.) The message summary is very vague, I would rather see something more 
specific like:

"""
Tests: improve the handling of rename operations by user tracker
"""

2.) The message itself should be wrapped at the maximum of 78 character 
width (IIRC) but your lines are way too long.

A nice way to automate this in vim is to highlight the text, enter 
command mode and run 'gq', that should format the text for you.

3.) You did not add upstream ticket URL to the end of the message, 
please do so.

There is also an extraneous whitespace here:
"""
              else:
                  if type(value) is list:
                      self.attrs[key] = value
                  else:
                      self.attrs[key] = [value]
+
          for key, value in expected_updates.items():
              if value is None or value is '' or value is u'':
                  del self.attrs[key]
"""

that has nothing to do with the scope of the patch. Please remove it.

[1] http://www.freeipa.org/page/Contribute/Patch_Format

-- 
Martin^3 Babinsky




More information about the Freeipa-devel mailing list