]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix context.elevated
authorAnn Kamyshnikova <akamyshnikova@mirantis.com>
Thu, 20 Nov 2014 16:13:52 +0000 (19:13 +0300)
committerYaguang Tang <yaguang.tang@canonical.com>
Tue, 25 Nov 2014 03:20:34 +0000 (11:20 +0800)
commitd09ba29a5f16ad26fb01abfc9791c1ef7a845bc7
tree2b7c29e7b626d9d8591c24086ee6b16e7f06954a
parent581977d958a456294044043e0c422303ba5a1def
Fix context.elevated

The current version of elevated method sets for the original context
the admin role too. This change fix this.

Added unittest.

Closes-bug: #1386932

Change-Id: Ife881112efa151e53bfa4b7af35643dcf2d1114f
(cherry picked from commit 98fae47ad1b9b72e41d444ce6f96cf5f2a3b6f0c)
neutron/context.py
neutron/tests/unit/test_api_v2_resource.py