Cleanup sahara cli tests

* better readability
* local variable names fixed

Change-Id: Ie584db672c502ab9e58062a997f539027990403a
Add os-migration tests for Nova v3 API

v3 os-migration API returns a body which includes the info like:

 {
   "migrations": [
     {
       "id": 1,
       "status": "finished",
       "instance_uuid": "4ed20c05-6bcb-46c5-a6a4-115523660283",
       "source_node": "source-host",
       "source_compute": "source-host",
       "dest_node": "dest-host",
       "dest_compute": "dest-host",
       "dest_host": "10.21.43.148",
       "old_instance_type_id": 6,
       "new_instance_type_id": 7
       "created_at": "2014-02-17T18:59:18.000000",
       "updated_at": "2014-02-17T18:59:31.000000"
     }
   ]
 }

This patch adds this API tests.

Partially implements blueprint nova-v3-api-tests

Change-Id: I2bc8efa6eb5034ec2c4516fd147b8221600cf571
Remove singleton pattern in base_generator

A generator doesn't need to be a singleton and this causes problems
when executing unit tests. This code was simply a left-over.

Change-Id: Ieaf71bf824a630c75c95b190f34cc55a812d7fc0
Closes-Bug: #1300675
Verify the response attributes of 'startup_host' API

This patch verifies the response attributes of 'startup_host' API.
The response body format of v2:
{
    "host": "57f5de2fa5b44f14974a4f50b9ffcbf8",
    "power_action": "startup"
}

The response body format of v3:
{
    "host": {
        "host": "4b392b27930343bbaa27fd5d8328a564",
        "power_action": "startup"
    }
}

Partially implements blueprint nova-api-attribute-test
Change-Id: If73daa85c374ce2ae8187cdc7f4929c8647ebe66
Remove python25 workaround from glance_http

Since we don't support python25 removing to reduce what to cover in the
unittests.
Also fix a problem with a possible NoneType in the right side of the comparison
cause an exception. Now the default value for content-type header is an empty
string.

Change-Id: I3df5ac75455e62689f08c336fc89a0437dae6945
Check attributes of create/delete sec groups rule

This patch adds the JSON schema for Nova V2 create/delete security
groups rule APIs response and validate the response with added
JSON schema to block the backward incompatibility change in the future.

The response body of v2 create security groups rule API is the below:

{
    "security_group_rule": {
        "from_port": 80,
        "to_port": 80,
        "group": {},
        "ip_protocol": "TCP",
        "parent_group_id": 5,
        "id": 1,
        "ip_range":{
            "cidr": "10.10.10.0/24"
        }
    }
}

Partially implements blueprint nova-api-attribute-test

Change-Id: I8e85b3da74a2a5d4b16c3e33429c0b4d0da0c1c9
Adds unit test for negative class decorator

Partially implements bp unit-tests

Change-Id: I5ce11fb00f2fd18851ec3a684618bdddec6ed6b0
Make heat-slow job run in parallel

The heat slow job was running it's tests serially. This patch changes
that so the tests will run in parallel to enable faster execution.

Change-Id: I55fe85952c13b2b40b2b9f5b4dd6073b21b7a3ea
Merge "Adds unit test for negative class decorator"
Remove created routers as part of test cleanup

The network API routers test currently creates a total of 10 routers
(the default quota limit) but only deletes them in bulk during tearDownClass().
This can create issues hitting quota limits on setups without isolated
credentials, or environments that may already have routers created outside of
Tempest. This associates a cleanup with each created router and ensures each
individual test deletes the routers it creates.

Change-Id: I7f0e20cfe483fe3aa55d4641ca92ad9947fffbcc
Closes-bug: #1265498
Merge "Add os-migration tests for Nova v3 API"
Merge "Verify the response attributes of 'startup_host' API"
Merge "Remove singleton pattern in base_generator"
Merge "Check attributes of create/delete sec groups rule"
Merge "Remove python25 workaround from glance_http"
Merge "Cleanup sahara cli tests"
Merge "Make heat-slow job run in parallel"
Merge "Remove created routers as part of test cleanup"