Refactor tests regarding required attributes

Some tests regarding the _required_attribute(s) functions in the wsgi
module seemed to be somewhat confusing, so I refactored them trying to
increase readability.

Change-Id: Id9aedcb05063cf0d618399847f6afe73c800aa93
Fixes duplicated DELETE queries on SQL backends

The SQL deletion queries were sent twice a delete, for these entity types:
 - Region
 - Identity provider (federation extension)
 - Protocol (federation extension)
 - Consumer (oauth1 extension)
 - Access token (oauth1 extension)
 - request token (oauth1 extension)

Change-Id: Ibfaea87a24cac00f2a187eb5c8c8917b1f0a1929
Closes-Bug: 1324076
recommend excluding 35357 from ephemeral ports

Change-Id: I56c3b526ac4af255dd31ce0bd0e0f2ce128cb6fe
Closes-Bug: 1253482
Cleanup openstack-common.conf and sync from olso

An upcoming change[1] in oslo's update.py adds new warnings for
style issues in the config. To compensate this commit:

 - orders the modules alphabetically
 - uses the script directive for scripts

Sync with oslo-incubator caed79d

This syncs Keystone with oslo-incubator commit hash
caed79d8239679cb74476bb0d9e5011b4fcc39da.

In keystone:

$ rm -r keystone/openstack/common

In oslo-incubator:

$ python update.py ../keystone

Commits
-------

1173e46 Remove ValueError when accessing sys.modules
17c4e21 Fix docstring indentation in systemd
90ae24b Remove redundant default=None for config options
6c7407b fileutils: port to Python 3
18f2bc1 Enforce unicode json output for jsonutils.load[s]()
af36c2a Fix logging setup for Python 3.4
5ae792b Document config generator variables
ea9ead8 Allow file exclusion in config generator
cdcc19c Mask passwords that are included in commands
9e5a393 jsonutils.load() accepts file pointer, not string
a6b2aec On Python <= 2.6, use simplejson if available
fe3389e Improve help strings
8a0f567 Remove str() from LOG.* and exceptions
f3f14c9 Fixed several typos
0f495ee Emit a log statement when releasing internal lock
9912e5d Add API for creating translation functions

1. https://review.openstack.org/76901

Change-Id: I89de9ae9e3c574095967a2a67e842a90b5527ffa
Merge "recommend excluding 35357 from ephemeral ports"
Merge "Imported Translations from Transifex"
Merge "Suggest users to remove REMOTE_USER from shibd conf"
Fixed wrong behavior when updating tenant or user with LDAP backends

User or tenent update request returns old value of field 'enabled'
when we use LDAP backends and flag tenant_enabled_emulation is True.

Closes-Bug: #1318927
Change-Id: I4b0c76a181e14a11df0cd14141abfdf78d4cedee
document pki_setup and ssl_setup in keystone.conf.sample

Change-Id: I9630bfa623dbdb470b89978ebb4a8ec026c5e793
Closes-Bug: 1275823
Make sure scoping to the project of a disabled domain result in 401.

Addresses the problem where we check for the validity of the scoped project,
we did not subsequently making sure its domain is also enabled.

Change-Id: I24e539aea9bb0ef0a22727fd9c1fb5d9d2ad1353
Closes-Bug: 1315556
remove out of date docs for Fedora 15

Fedora 20 is the current version.

Change-Id: I7624c79625a180b9424ec1114d1ad011cc32756f
Merge "Make sure scoping to the project of a disabled domain result in 401."
Merge "Fixed wrong behavior when updating tenant or user with LDAP backends"
Merge "Cleanup openstack-common.conf and sync from olso"
Merge "Refactor tests regarding required attributes"
Merge "Check that the user is dumb moved to the common method"
Updated from global requirements

Change-Id: I413514eb61579dabac22909e30b8e86aca0b3a0e
Fix type error message in format_url

The error message for a TypeError in format_url mentioned a key error rather
than a type error as it should have.

Change-Id: I8557d49901f8a8e591654ef0bd530eb8e45e8b5b
Merge "Refactor driver_hints"
Consistenly use jsonutils instead of json

Under Python 2.6 jsonutils imports simplejson, which
can not be used together with json. Using jsonutils
everywhere avoids the conflict.

Change-Id: I25ddae130bd42d2788a2f8cf37986b7e0d851827
Closes-Bug: #1325235