Merge "Remove unused cache functions from token.core"

Change-Id: I95ce7d5618ea254610423a8b7720ca2efe01c530
Update the feature/hierarchical-multitenancy branch

Change-Id: I92b86f4b5a4aebcf39ea49a16f20af24cf6f5e28
Fixes endpoint_filter tests

The tests were written incorrectly and only worked because SQLite
doesn't enforce foreign key relationships by default.

implements bp tests-on-rdbmses
Change-Id: I8f4b64485ecdc6088c816f7f675cc5cefc83f9ac
Merge remote-tracking branch 'origin/master' into feature/hierarchical-multitenancy

Change-Id: I7e27d042575609e4107764c1ff2e1048e5a14a02
Add parent_id field to projects

Field to point to a parent project. This enables
the possibility to use hierarchical projects.

Co-Authored-By: Rodrigo Duarte <rodrigods@lsd.ufcg.edu.br>
Co-Authored-By: Raildo Mascena <raildo@lsd.ufcg.edu.br>
Co-Authored-By: Telles Mota Vidal Nobrega <tellesmvn@lsd.ufcg.edu.br>

Implements: blueprint hierarchical-multitenancy
Change-Id: I2b56a362df40b664e3a802d09ca027277678b300
sys.exit mock cleanup

The base testcase didn't need to keep a reference to the sys.exit
mockpatch fixture.

Also, added a unit test for calling sys.exit() since there wasn't
one.

Change-Id: Ifa2e6c89dc556ed09623805e618a95744cc8c97f
Base methods to handle hierarchical projects

Add base methods to be used at hierarhical projects.

Co-Authored-By: Rodrigo Duarte <rodrigods@lsd.ufcg.edu.br>
Co-Authored-By: Raildo Mascena <raildo@lsd.ufcg.edu.br>
Co-Authored-By: Telles Mota Vidal Nobrega <tellesmvn@lsd.ufcg.edu.br>
Co-Authored-By: Andre Aranha <afaranha@lsd.ufcg.edu.br>
Co-Authored-By: Samuel de Medeiros Queiroz <samuel@lsd.ufcg.edu.br>

Implements: blueprint hierarchical-multitenancy
Change-Id: I70ffbf426af5c3901dc2347efb9a43540f7d0604
Provide useful info when parsing policy file

When parsing the policy.json file we should provide a message that helps
the user or deployer understand there was an issue with the policy file,
and that they should make sure the policy.json file is valid JSON.

Change-Id: I63bdb6d8f03a0510e34b7e10cec25263e7c6c63c
Closes-Bug: #1177623
Move notification unit tests to unit test dir

The test_notification.py module holds unit tests for the notification
module and should live in the common unit test directory.

Change-Id: I9eb9885a2e3d3a743920818a733f299bf012bb5d
make sample_data.sh account for the default options in keystone.conf

Closes-Bug: 1394816

Change-Id: Ifb19d09a1ed8e82aebcaea82783480176daa3536
Moves hacking tests to unit directory

Change-Id: I3da5d3c55b4d26cd9fb8bbbb790db1c2c24ce95e
Merge remote-tracking branch 'remotes/origin/feature/hierarchical-multitenancy' into HEAD

This merge commit collapses the feature/hierarchical-multitenancy branch into
master.

Change-Id: I8505e4efc713f1c99c7cd747e1559c0fe6107181
remove deprecated access log middleware

blueprint: removed-as-of-kilo

Change-Id: Ie55bbbeca586161a664b64a108b0a854c2a91bd7
Remove irrelative comment

Remove comment that conflict with implementation from class
JsonBodyMiddleware.

Change-Id: I30fc8b89263356b88ec39666bdb145b1836f9376
Merge "Merge remote-tracking branch 'remotes/origin/feature/hierarchical-multitenancy' into HEAD"
Merge "sys.exit mock cleanup"
Create, update and delete hierarchical projects

Changes at basic operations related to projects
were modified to handle projects hierarchy.

This changes includes:
- Create and update projects with parent_project_id
  field
- Avoid deleting projects that are not leaf in the
  hierarchy
- Deny the update of a project's parent
- Limit the max depth of a tree branch (in the
  hierarchy)

Co-Authored-By: Henrique Truta <henrique@lsd.ufcg.edu.br>
Co-Authored-By: Rodrigo Duarte <rodrigods@lsd.ufcg.edu.br>
Co-Authored-By: Raildo Mascena <raildo@lsd.ufcg.edu.br>
Co-Authored-By: Samuel de Medeiros Queiroz <samuel@lsd.ufcg.edu.br>
Co-Authored-By: Thiago Paiva Brito <thiagop@lsd.ufcg.edu.br>

Change-Id: Ia8ae4c1d8d1e7e591a272928af0dfd17da4047c1
Implements: blueprint hierarchical-multitenancy
Add an identity backend method to get group by name.

We already support a get_user_by_name method, but an equivalent
one for groups is missing. This is needed for enhancements to
our federation mapping engine. This patch provides this new
method.

This patch does not expose this functionality as part of the
REST API, it is only supported at the manager/driver level.

Partially implements: bp mapping-enhancements

Change-Id: I2508a99125d9aec2a66b3b48e63c9b1ed2fe12a4
Merge "remove deprecated access log middleware"
Merge "Fixes endpoint_filter tests"