Ignore broken endpoints in get_v3_catalog

Change-Id: Ifd858e9f37155e3806329c4688be494d0132a9c7
Partial-bug: #1230279
Refactor notifications

I'm replacing the implementation of notifications with the blinker
library. In order to do this properly I wanted to have a more defined
interface and less coupling in the tests. Test should be unaware of the
implementation of the thing they are testing so that the implementation
can be changed later.

Change-Id: Icdcbf77944187bc9b2b390420862f700baa179c9
Use oslo.test mockpatch

Keystone was using mockpatch from oslo-incubator. Since oslo has
migrated these parts to oslo.test, switch to the oslo.test versions.

Note that these modules aren't mentioned in openstack-common.conf,
otherwise this change would remove it.

Change-Id: I2d4cd0b3e980d397b0111f25b2f645ae09dd9199
Some methods in ldap were moved to superclass

Methods add_user and remove_user was moved from RoleAPI and GroupAPI
to the superclass BaseLdap for unification.

Change-Id: Iacc9c87cee4b62b5535d2ad6515a6f58942257e6
Move hacking code to a separate fixture

Move the hacking checks to a separate file so we can flake8 test
the test_hacking_checks test cases. This change simply isolates the code
that would not pass flake8 into a fixture so that the keystone-specific
hacking test-case classes can also be run through flake8.

Change-Id: Id56cb78f39bd2f1766afe9c67443810008f5b25b
Correct `nullable` values in models and migrations

* Region.description is declared as non-nullable in migration, so model nullable
value changed to False too.

* FederationProtocol.mapping_id must logically be not nullable. Provide a
migration script to add the NOT NULL constraint to the column.

Change-Id: I15a9e50b5461a112faca08f0ea68cbae2ce77d0d
Partial-Bug: #1292591
Redundant unique constraint

federation extension have redundant unique constraint. The unique
constraint is totally useless, as (id, idp_id) columns are
columns of a composite primary key, which is unique by definition.

Change-Id: I93648ab89b26d7e77875a1faa8575a146224232f
Partial-Bug: #1292591
Migration DB_INIT_VERSION in common place

Init version value exists only in migration_helpers. migration_helpers
shouldn't know nothing about migrate repos, primarily because it is
intended for handling of any migrate repo in the project.

Change-Id: I8bceea0cf5eaf8e623efbb39e385b1990eca0a6f
Closes-Bug: #1308593
Merge "Refactor notifications"
Merge "Some methods in ldap were moved to superclass"
Merge "Use oslo.test mockpatch"
Merge "Ignore broken endpoints in get_v3_catalog"
Merge "Move hacking code to a separate fixture"
Merge "Correct `nullable` values in models and migrations"
Merge "Redundant unique constraint"
Merge "Migration DB_INIT_VERSION in common place"