openstack-python-openstackc.../openstackclient/tests/unit/identity
Alfredo Moralejo 52d56b3fd9 identity: in service set command, don't pass the enable option when it is None
Currently, it is passing None value which is not accepted by keystone
parameters validation:

BadRequestException: 400: Client Error for url: ... Invalid input for field 'enabled': None is not of type 'boolean'

Failed validating 'type' in schema['properties']['enabled']:
    {'enum': [True, False, None], 'type': 'boolean'}

On instance['enabled']:
    None

Closes-Bug: #2083021
Change-Id: Ia8772560deb54e71672102157659d4eb22e6ad59
2024-09-30 13:45:03 +02:00
..
v2_0 trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
v3 identity: in service set command, don't pass the enable option when it is None 2024-09-30 13:45:03 +02:00
__init__.py move unit tests to new "unit" test module 2016-09-08 15:19:50 -07:00