keystone/keystone/tests/unit/identity/shadow_users
Pedro Martins 7597ecc135 Stop adding entry in local_user while updating ephemerals
Problem description
===================
Today we have a consistency problem when updating federated
users via OpenStack. When I update a ephemeral user via OpenStack,
a registry in the local_user table is created, making this user
having entries in user, local_user and federated_user tables in
the database.

Furthermore, if I try to do some operations using this user
(that has entries in all three tables), I get a "More than one
user exists with the name ..." error from the OpenStack
Keystone API. It happens because the user has an entry in both
local_user and federated_user tables.

I fix the persistence in the local_user table for ephemeral
users when doing updates.

Proposal
========
I fix the problem with creating an entry in the
local_user table while updating an ephemeral user

Closes-Bug: #1848342

Change-Id: I2ac6e90f24b94dc5c0d9c0758f008a388597036c
2019-12-11 16:07:06 -03:00
..
__init__.py Refactor shadow users tests 2017-01-25 16:11:01 +00:00
test_backend.py Convert auth to flask native dispatching 2018-10-09 23:23:03 -07:00
test_core.py Stop adding entry in local_user while updating ephemerals 2019-12-11 16:07:06 -03:00