[Freeipa-devel] test_changepw is failing on master

Martin Kosek mkosek at redhat.com
Fri Jun 29 06:44:40 UTC 2012


This is most likely caused by old SELinux policy for which I reported a
bug and which should be resolved by now. You could confirm this
in /var/log/audit/audit.log.

What is a version of your selinux-policy package? I retested this issue
with selinux-policy-3.10.0-132.fc17.noarch and it worked for me without
any error. If this is not a SELinux failure, /var/log/httpd/error_log
should contain more information about what failed.

Thanks,
Martin

On Thu, 2012-06-28 at 14:50 -0400, John Dennis wrote:
> tests/test_ipaserver/test_changepw.py is failing on master. Could 
> someone who is familiar with the code take a look and see what's wrong.
> 
> Thanks,
> 
> John
> 
> ====================================================================== 
>  
> 
> 
> FAIL: tests.test_ipaserver.test_changepw.test_changepw.test_invalid_auth 
>  
> 
> 
> ---------------------------------------------------------------------- 
>  
> 
> 
> Traceback (most recent call last): 
>  
> 
> 
>    File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in 
> runTest 
>  
> 
>      self.test(*self.arg) 
>  
> 
> 
>    File 
> "/home/jdennis/src/freeipa.ref/tests/test_ipaserver/test_changepw.py", 
> line 86, in test_invalid_auth 
>  
> 
>      assert_equal(response.getheader('X-IPA-Pwchange-Result'), 
> 'invalid-password') 
>  
> 
>    File "/home/jdennis/src/freeipa.ref/tests/util.py", line 107, in 
> assert_equal 
>  
> 
>      assert val1 == val2, '%r != %r' % (val1, val2) 
>  
> 
> 
> AssertionError: 'error' != 'invalid-password' 
>  
> 
> 
> 
> 
> 
> 
> ====================================================================== 
>  
> 
> 
> FAIL: 
> tests.test_ipaserver.test_changepw.test_changepw.test_pwpolicy_error 
>  
> 
> 
> ---------------------------------------------------------------------- 
>  
> 
> 
> Traceback (most recent call last): 
>  
> 
> 
>    File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in 
> runTest 
>  
> 
>      self.test(*self.arg) 
>  
> 
> 
>    File 
> "/home/jdennis/src/freeipa.ref/tests/test_ipaserver/test_changepw.py", 
> line 95, in test_pwpolicy_error 
>  
> 
>      assert_equal(response.getheader('X-IPA-Pwchange-Result'), 
> 'policy-error') 
>  
> 
>    File "/home/jdennis/src/freeipa.ref/tests/util.py", line 107, in 
> assert_equal 
>  
> 
>      assert val1 == val2, '%r != %r' % (val1, val2) 
>  
> 
> 
> AssertionError: 'error' != 'policy-error' 
>  
> 
> 
> 
> 
> 
> 
> ====================================================================== 
>  
> 
> 
> FAIL: 
> tests.test_ipaserver.test_changepw.test_changepw.test_pwpolicy_success 
>  
> 
> 
> ---------------------------------------------------------------------- 
>  
> 
> 
> Traceback (most recent call last): 
>  
> 
> 
>    File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in 
> runTest 
>  
> 
>      self.test(*self.arg) 
>  
> 
> 
>    File 
> "/home/jdennis/src/freeipa.ref/tests/test_ipaserver/test_changepw.py", 
> line 106, in test_pwpolicy_success 
>  
> 
>      assert_equal(response.getheader('X-IPA-Pwchange-Result'), 'ok') 
>  
> 
> 
>    File "/home/jdennis/src/freeipa.ref/tests/util.py", line 107, in 
> assert_equal 
>  
> 
>      assert val1 == val2, '%r != %r' % (val1, val2) 
>  
> 
> 
> AssertionError: 'error' != 'ok' 
>  
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------- 
>  
> 
> 
> Ran 4 tests in 31.398s 
>  
> 
> 
> 
> 
> 
> 
> FAILED (failures=3) 
>  
> 
> 
> ====================================================================== 
>  
> 
> 
> FAILED under '/usr/bin/python2.7'
> 





More information about the Freeipa-devel mailing list