#1527 Fix invalid issuer in unit tests
Closed: Fixed None Opened 12 years ago by mkosek.

There are several test failures when issuer does not match the one generated by make-testcert:

FAIL: test_host[9]: host_mod: Update u'testhost1.idm.lab.bos.redhat.com'
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 187, in runTest
    self.test(*self.arg)
  File "/root/freeipa/tests/test_xmlrpc/xmlrpc_test.py", line 207, in <lambda>
    func = lambda: self.check(nice, test)
  File "/root/freeipa/tests/test_xmlrpc/xmlrpc_test.py", line 223, in check
    self.check_output(nice, cmd, args, options, expected)
  File "/root/freeipa/tests/test_xmlrpc/xmlrpc_test.py", line 251, in check_output
    assert_deepequal(expected, got, nice)
  File "/root/freeipa/tests/util.py", line 318, in assert_deepequal
    assert_deepequal(e_sub, g_sub, doc, stack + (key,))
  File "/root/freeipa/tests/util.py", line 318, in assert_deepequal
    assert_deepequal(e_sub, g_sub, doc, stack + (key,))
  File "/root/freeipa/tests/util.py", line 326, in assert_deepequal
    VALUE % (doc, expected, got, stack)
AssertionError: assert_deepequal: expected != got.
  test_host[9]: host_mod: Update u'testhost1.idm.lab.bos.redhat.com'
  expected = u'CN=IDM.LAB.BOS.REDHAT.COM Certificate Authority'
  got = u'CN=Certificate Authority,O=IDM.LAB.BOS.REDHAT.COM'
  path = ('result', 'issuer')

master: 18aa73e06e30939b6b8d0a2c6def41fb6d4eef8

ipa-2-0: 0dba747

Metadata Update from @mkosek:
- Issue assigned to mkosek
- Issue set to the milestone: FreeIPA 2.1 - 2011/07

7 years ago

Login to comment on this ticket.

Metadata