[Freeipa-devel] [PATCH][RFC] 9 CA-less tests generate failure

Misnyovszki Adam amisnyov at redhat.com
Fri Apr 4 08:59:11 UTC 2014


CA-less test suite always generate failures when installing revoked
certificates. This is a known issue, described in
https://fedorahosted.org/freeipa/ticket/4270 , this fix skips these
tests, outputting a notification message for the ticket.
Now it outputs this:

[amisnyov at host freeipa]$ ./make-test
/usr/bin/nosetests -v --with-doctest --doctest-tests --exclude=plugins
IPA server install with revoked HTTP certificate ... SKIP: Known
CA-less installation defect, see

Ran 1 test in 1020.253s

passed under '/usr/bin/python2.7'

** pass **


There could be another possible solution, I could write a nose plugin to
enable raising warnings instead of skipping a test. This could be
achieved by adding a @unittest.expectedFailure for a specific test, so
if it fails, it counts as an error/warning. There is a poc in a nose
ticket located in
http://code.google.com/p/python-nose/issues/detail?id=428 , not sure
how much time it takes to implement it as a plugin, or is it even
worth, because if this is implemented, we could also use this feature
when eg. DNS is not configured, this is why RFC.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-amisnyov-0009-1-CA-less-tests-generate-failure.patch
Type: text/x-patch
Size: 3753 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140404/a1ad35cf/attachment.bin>

More information about the Freeipa-devel mailing list