Modified test case for nova security group

Modified test_security_group_create_get_delete()
by adding security group with space char between
name along with leading and trailing white spaces

Change-Id: I2a2664458e8505b3eef027435850de0b3df29019
Blueprint: testcases-expansion-icehouse
Add test to rescope token using v3

This adds a test that shows that an unscoped token can be used to
get a scoped token using the identity v3 API.

Change-Id: Ic0807dc8c91b0125bc9c447314cc095b511853ae
Enhance rescope token test using v3

There was a problem in Keystone recently where revoking a token
derived from another token caused the original token to be
revoked, so adding a test here to validate it continues to work
as expected.

Change-Id: Ifd210e49c3e15721264eb47eed453889d4e35942
Enhance test to rescope token using v2

There was a problem in Keystone recently where revoking a token
derived from another token caused the original token to be
revoked, so adding a test here to validate it continues to work
as expected.

Change-Id: I4b6a1440b661c075793e73edc52b4a5919d93d71
Add unit tests for debug

This commit adds unit tests for common.debug.

Partially implements bp unit-tests

Change-Id: I3ab573942293eea72294d395ae40e92c2126708d
Update Oslo config sample generator

This commit syncs the latest version of the config generator and all
it's dependency modules from oslo-incubator. The justification was
change Iee6cc05cad70963f2a151f595ac376c9338f5774 which adds the oslo
synced version of the check_uptodate script. Which among other things
does proper cleanup of the tempdirs

Change-Id: I56bdd239b328cc38a83f80d14e53cc62d4f97954
Add unit tests for configurable network resources

This commit adds additional tenant isolation unit tests that cover
configuring which network resources are required for an isolated
tenant. In addition to testing network resource creation for the admin
and alt tenants.

Partially implements bp unit-tests

Change-Id: I8cbe836f9a2357f53bbbaeefd2b4ec74553089fb
Verify the response attributes of 'show_host_detail'

This patch verifies the response attributes of 'show_host_detail'.
The response body of v2 and v3 API has the same format:

"host": [
{
"resource": {
"cpu": 1,
"disk_gb": 1028,
"host": "5ca60c6792a1442f9471ff575443f94d",
"memory_mb": 8192,
"project": "(total)"
}
}
]

Partially implements blueprint nova-api-attribute-test
Change-Id: I1b9e698a97d487541abb26aea10fa20e79448f84
Add validation test in identity v3 test_role

Add validation to test:
- test_grant_revoke_role_to_group_on_project

Change-Id: Ie4d07972ac09bd7e4f9b8b860355eb2ab1140494
Make add_remove_fixed_ip tests executable in Nova gate

The tests of test_add_remove_fixed_ip were introduced in
  I8448de16d2243bd08db50562eb2714e07b62ea63
  I7f8dcead3c42ae01354891d9fe6fd1ced0136b72
But they are not executed in Nova gate now. We should test these APIs
like others.

Change-Id: Ifc02080ddf403cb51aaa48b4235c0d286082d10f
Closes-Bug:#1294912
Add Cinder quota negatives

This set of tests ensures we are denied from creating new volumes,
or snapshots when hitting one of the quota enforcements.

Change-Id: I2eded016f522b1e1c1b5ac961af1546db70de236
Adds "add_dhcp_agent" to test_dhcp_agent_scheduler

This submission is to verify add-dhcp-agent-to-network functionality
and also added required support functions in both XML/JSON interfaces.

Change-Id: I6e9f8336db6d72b1123220f792091ca17b1b1647
Check attach-detach FIP & get FIP pool attributes

This patch adds the JSON schema for get Floating IPs pools
and attach & detach Floating IP APIs response and validate
the response with added JSON schema to block the backward
incompatibility change in the future.

attch, detach & delete Floating IPs does not return any
response body. So only response code is being validated.

The response body of get Floating IP pools API is below:

{
    "floating_ip_pools": [
        {
            "name": "pool1"
        }
    ]
}

Partially implements blueprint nova-api-attribute-test

Change-Id: I540b6c72fdcb6b568adbef72f5b2423a038bac7a
Add Keystone role and service test cases

Add two test cases about Keystone role and service:
test_get_role_by_id
test_create_service_without_description

Change-Id: I5c09e82bb9afbb6d1d8a81dfd6e7408b4ffdd58f
Check create/delete keypair attribute of Nova APIs

This patch adds the JSON Schema for response of Nova V2 & V3
create & delete keypair APIs and validate the response with
added JSON Schema to block the backward incompatibility change
in the future.

The response body of V2 & V3 create_keypairs APIs is same and
given below:

{
    "keypair": {
        "fingerprint": "%(fingerprint)s",
        "name": "%(keypair_name)s",
        "public_key": "%(public_key)s",
        "user_id": "fake",
        "private_key": "%(private_key)s"
    }
}

Response status code differ for create and delete keypairs

V2 - create_keypair = 200
V2 - delete_keypair = 202
V3 - create_keypair = 201
V3 - delete_keypair = 204

Partially implements blueprint nova-api-attribute-test

Change-Id: I179f0f11a43324d81ecbb41c0eae2f7072e8979a
Some keystone V3 API tests throw incorrect errors

Change-Id: I43a80861a087daa512ded7288ed2a4aa59363a7c
Closes-Bug: 1295434
Add unit tests for NegativeRestClient class

This commit adds unit tests for NegativeRestClient.

Partially implements bp unit-tests

Change-Id: I47db1b23b85b7636516292d4a6b78fba0afcfe99
Skip volume snapshot tests if feature is not enabled

Not all cinder volume backends support volume snapshot. For instance,
the default NFS backend doesn't. This patch adds a new entry to
CONF.volume_feature_enabled to add the possibility to skip volume
snapshot tests.

Change-Id: I40ce17924bbe4eb6f1c941df974bfa832ec2a999
Add config fixture support to unit tests

This commit adds a new env variable OS_TEST_LOCK_PATH to the
.testr.conf file to set the lock path for using oslo locks.
Previously, if an external lock couldn't be used to isolate test cases
because the unit tests do not have a config file. By getting a lock
path with an env variable and setting the location in the config
fixture external locks can be used by first invoking the config
fixture.

Partially implements bp unit-tests

Change-Id: I08c27ab125183f5d055eaa45c4f0e0a527445475
Typo in config.py

Change-Id: I172f44dc4115b520c7dcac7d632b49780574582d