Update middleware that was moved to keystonemiddleware

S3Token middleware has been moved (and slated for removal) in the
Juno Release. This Middleware has been removed from Keystone.

Keystone now uses the middleware located in keystonemiddleware for
providing the code for ec2_token middleware. The middleware class
in Keystone has been deprecated and is slated for removal in the
L release.

Change-Id: Iecda3400c0450bbeed42093dc916825d89b2c3fe
bp: split-middleware
Sqlite files excluded from the repo

In order to avoid submission of sql database files by mistake, it was
added the pattern of those files into the .gitignore file.

Change-Id: Iaec6b15c8d879c42883de138fa70a2004ca9b2b5
Closes-Bug: #1347976
Check url is in the 'self' link in list responses

Method RestfulTestCase.assertValidListLinks (test_v3.py) doesn't have
any information about the request, so the check of the 'self' url in
links collection is very general:

self.assertThat(links['self'], matchers.StartsWith('http://localhost'))

This fix adds an optional 'resource_url' parameter.

The ability for the assertValidListLinks methods to check the url will
also form the basis for testing of bug 1195037 ("Self" link in v3
collections omits any url filters).

To test this fix test cases in test_v3_identity.py were updated with the
optional 'resource_url' parameter.

Closes-Bug: #1348063.

Change-Id: Ifaf641e635709cbbefcde9f4908a1251a38a0405
Sample config update

Update the sample config post token persistence relocation.

Change-Id: Ia9dc3c6be9e7c619651cd6fa1d9bb8bd71806d9b
bp: non-persistent-tokens
Add tests related to V2 token issued_at time changing

There was no test that showed that when a V2 token is used in a V3
context its "issued_at" time changes. This affects validating a V2
token using V3 and also revoking a V2 token. The tests show the
current incorrect behavior.

Partial-Bug: #1348820

Change-Id: I2a3443847b2699384413933ae164fdc183aa110f
Fix for V2 token issued_at time changing

When the server converted a V2 token to a V3 token it regenerated
the issued_at time.

This was causing the server to return a different issued_at time
when a V2 token was validated using the V3 API.

This was causing the server to fail to revoke a V2 token if it was
revoked before validating it first because the regenerated token was
considered to be after the revocation event.

Change-Id: I71fea3253295ee8794fb2c8211e1f030de3ae205
Closes-Bug: #1348820
Add workaround to support tox 1.7.2

Change-Id: I58542f6e7dbbad98517c09b6176b9827f66dd1ff
Partial-Bug: 1348818
Merge "Add tests related to V2 token issued_at time changing"
Merge "Sample config update"
Correct revocation event test for domain_id

The revocation event test used "user_domain_id" and
"project_domain_id" as token fields that the "domain_id"
revocation event field maps to, but the token fields are
actually "identity_domain_id" and "assignment_domain_id", as
can be seen in
keystone.contrib.revoke.model.build_token_values().

Change-Id: I208484da243403287eaa33893d57429c7e6d27c7
Partial-Bug: #1349597
Merge "Sqlite files excluded from the repo"
Merge "Fix for V2 token issued_at time changing"
Update setup docs with Fedora 19+ dependencies

Change-Id: I7a903d4cf38aeaa0210335e39cff6cd6760e05d5
Merge "Update setup docs with Fedora 19+ dependencies"
Merge "Correct revocation event test for domain_id"
Merge "Add workaround to support tox 1.7.2"
KeyError instead of exception.KeyError

KeyError is a built-in error. Not part of Keystone exception module.

Change-Id: Ia3723c71fcd80773c2ac6f49ec7a7ab8bed602ad
closes-bug: #1349955
Updated from global requirements

Change-Id: I3aa1b69757cdf00cfd022eec0fc2315e6d7bde6b
Merge "Update middleware that was moved to keystonemiddleware"
Merge "Check url is in the 'self' link in list responses"