#5452 test_xmlrpc/test_range_plugin failing on Fedora 23
Closed: fixed 11 months ago Opened 3 years ago by pspacek.

Environment: Fedora 23 with IPA build from master branch: efe8f26

Packages:

  • pki-tools-10.2.6-12.fc23.x86_64
  • pki-base-10.2.6-12.fc23.noarch
  • pki-ca-10.2.6-12.fc23.noarch
  • pki-server-10.2.6-12.fc23.noarch
  • pki-kra-10.2.6-12.fc23.noarch

Failure:

self = <ipatests.test_xmlrpc.test_range_plugin.test_range object at 0x7f2ee6db7f90>
nice = "0004: idrange_mod: Try to modify ID range u'testrange1' to get out bounds object #1", cmd = 'idrange_mod', args = ['testrange1']
options = {'ipabaseid': 731500001, 'version': '2.157'}
expected = ValidationError(u"invalid 'ipabaseid,ipaidrangesize': range modification leaving objects with ID out of the defined range is not allowed",)

    def check_exception(self, nice, cmd, args, options, expected):
        klass = expected.__class__
        name = klass.__name__
        try:
            output = api.Command[cmd](*args, **options)
        except Exception as e:
            pass
        else:
            raise AssertionError(
                EXPECTED % (cmd, name, args, options, output)
            )
        if not isinstance(e, klass):
            raise AssertionError(
>               UNEXPECTED % (cmd, name, args, options, e.__class__.__name__, e)
            )
E           AssertionError: Expected 'idrange_mod' to raise ValidationError, but caught different.
E             args = [u'testrange1']
E             options = {'ipabaseid': 731500001, 'version': u'2.157'}
E             ExecutionError: This command can not be used to change ID allocation for local IPA domain. Run `ipa help idrange` for more information

/usr/lib/python2.7/site-packages/ipatests/test_xmlrpc/xmlrpc_test.py:341: AssertionError


self = <ipatests.test_xmlrpc.test_range_plugin.test_range object at 0x7f2ee6dc5b50>
nice = "0005: idrange_mod: Try to modify ID range u'testrange1' to get out bounds object #2", cmd = 'idrange_mod', args = ['testrange1']
options = {'ipaidrangesize': 100, 'version': '2.157'}
expected = ValidationError(u"invalid 'ipabaseid,ipaidrangesize': range modification leaving objects with ID out of the defined range is not allowed",)

    def check_exception(self, nice, cmd, args, options, expected):
        klass = expected.__class__
        name = klass.__name__
        try:
            output = api.Command[cmd](*args, **options)
        except Exception as e:
            pass
        else:
            raise AssertionError(
                EXPECTED % (cmd, name, args, options, output)
            )
        if not isinstance(e, klass):
            raise AssertionError(
>               UNEXPECTED % (cmd, name, args, options, e.__class__.__name__, e)
            )
E           AssertionError: Expected 'idrange_mod' to raise ValidationError, but caught different.
E             args = [u'testrange1']
E             options = {'version': u'2.157', 'ipaidrangesize': 100}
E             ExecutionError: This command can not be used to change ID allocation for local IPA domain. Run `ipa help idrange` for more information



self = <ipatests.test_xmlrpc.test_range_plugin.test_range object at 0x7f2ee6dc5b10>
nice = "0006: idrange_mod: Try to modify ID range u'testrange1' to get out bounds object #3", cmd = 'idrange_mod', args = ['testrange1']
options = {'ipabaseid': 100, 'ipaidrangesize': 100, 'version': '2.157'}
expected = ValidationError(u"invalid 'ipabaseid,ipaidrangesize': range modification leaving objects with ID out of the defined range is not allowed",)

    def check_exception(self, nice, cmd, args, options, expected):
        klass = expected.__class__
        name = klass.__name__
        try:
            output = api.Command[cmd](*args, **options)
        except Exception as e:
            pass
        else:
            raise AssertionError(
                EXPECTED % (cmd, name, args, options, output)
            )
        if not isinstance(e, klass):
            raise AssertionError(
>               UNEXPECTED % (cmd, name, args, options, e.__class__.__name__, e)
            )
E           AssertionError: Expected 'idrange_mod' to raise ValidationError, but caught different.
E             args = [u'testrange1']
E             options = {'ipabaseid': 100, 'version': u'2.157', 'ipaidrangesize': 100}
E             ExecutionError: This command can not be used to change ID allocation for local IPA domain. Run `ipa help idrange` for more information

/usr/lib/python2.7/site-packages/ipatests/test_xmlrpc/xmlrpc_test.py:341: AssertionError


self = <ipalib.rpc.JSONServerProxy object at 0x7f2ee6dc5f10>, name = 'idrange_mod'
args = (('testrange1',), {'all': False, 'ipaidrangesize': 90000, 'raw': False, 'rights': False, ...})
[...]
>               raise error_class(message=error['message'])
E               ExecutionError: This command can not be used to change ID allocation for local IPA domain. Run `ipa help idrange` for more information

/usr/lib/python2.7/site-packages/ipalib/rpc.py:1098: ExecutionError


self = <ipatests.test_xmlrpc.test_range_plugin.test_range object at 0x7f2ee6bd4250>
nice = "0013: idrange_mod: Try to modify ID range u'testrange2' so that its rid ranges are overlapping themselves", cmd = 'idrange_mod', args = ['testrange2']
options = {'ipabaserid': 1000, 'version': '2.157'}, expected = ValidationError("invalid 'ID Range setup': Primary RID range and secondary RID range cannot overlap",)

    def check_exception(self, nice, cmd, args, options, expected):
        klass = expected.__class__
        name = klass.__name__
        try:
            output = api.Command[cmd](*args, **options)
        except Exception as e:
            pass
        else:
            raise AssertionError(
                EXPECTED % (cmd, name, args, options, output)
            )
        if not isinstance(e, klass):
            raise AssertionError(
>               UNEXPECTED % (cmd, name, args, options, e.__class__.__name__, e)
            )
E           AssertionError: Expected 'idrange_mod' to raise ValidationError, but caught different.
E             args = [u'testrange2']
E             options = {'ipabaserid': 1000, 'version': u'2.157'}
E             ExecutionError: This command can not be used to change ID allocation for local IPA domain. Run `ipa help idrange` for more information

/usr/lib/python2.7/site-packages/ipatests/test_xmlrpc/xmlrpc_test.py:341: AssertionError

Metadata Update from @pspacek:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.5 backlog

2 years ago

I'm no longer seeing these test failures in F-27 on git master. 5a4e358

Metadata Update from @rcritten:
- Issue close_status updated to: None

a year ago

Issue does not happen any more on git master F-28, closing.

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

11 months ago

Login to comment on this ticket.

Metadata