Volume xml client translate json attribute names

Translate the XML special attribute names
 to the same as we get via the json api.

Also changing the _check_if_bootable will be called only from the
_parse_volume.

Change-Id: I32ba5001a84bbee9459b3c9ce7a70d48fede22bd
Add network API test to create/update a port with 2 IP addresses

Test sequence is as follows:
- Create a network with 2 subnets.
- Create a port on the network with single IP addr from
  first subnet.
- Update port with a second IP addr from second subnet.
- Update port to return to a single IP addr.
- Clean up resources (port, subnets, and network) via
  the tearDownClass method of the BaseNetworkTest class.

Change-Id: I0036cd7fe412f4a371027fc5c323a7bc3ccce5b9
Enable security_groups_basic_ops blocking tests

Enable tests for security groups blocking traffic on default.
Check that bug 1252620 and bug 1112912 are fixed

Partially Implements: blueprint neutron-advanced-scenarios

Change-Id: I20d02d97664f1032e43e11c2465a26ae6f5be80e
Improve the extra routes test on router

Insure that the values returned by the
update_extra_routes method are correct and that
the show_router method returns the extra route
information.

Change-Id: I62891ebc522b1aa9689d9b4c0c8f88d9b4910c8b
Unit Tests for glance_http

This patch tests most of what is currently in use by Tempest of
glance_http.
There is a comment regarding this matter, but reafirming there is no
class testing against glance_http's https backend since it also ends up
using httplib.

Partially implements bp unit-tests
Change-Id: Iaa2477da4b559e4383fd8904ae4185edcb0dea36
VPNaaS API tests cleanup

This patch removes some redundant method definitions
that could be autogenerated with _create method of NetworkClientBase
class

Change-Id: Iec8d672a1744f7d851adaaeb54130a94618b76bf
Verify tenant usages API response attributes

Now most attributes of Nova APIs are not checked in Tempest,
and this patch adds some tests which check these attributes to block
the backward incompatibility change in the future.

This patch adds the checks of tenant usages API responses.
The response body of this API is the following:

{
    'tenant_usages': [{
        'server_usages': [{
            'ended_at': '2014-03-23T23:09:03.000000',
            'flavor': 'm1.nano',
            'hours': 0.0033333333333333335,
            'instance_id': '64093cb4-9185-4b13-b375-53124bd70728',
            'local_gb': 0,
            'memory_mb': 64,
            'name': 'server-412020127'
            'started_at': '2014-03-23T23:08:51.000000',
            'state': 'terminated',
            'tenant_id': '9461ce3ff1a94bdfa5a3ffdecfd5fa3a',
            'uptime': 12,
            'vcpus': 1,
        }]
        'start': '2014-03-22T23:09:40.241602',
        'stop': '2014-03-23T23:09:40.652279',
        'tenant_id': '9461ce3ff1a94bdfa5a3ffdecfd5fa3a',
        'total_hours': 0.0033333333333333335,
        'total_local_gb_usage': 0.0,
        'total_memory_mb_usage': 0.21333333333333335,
        'total_vcpus_usage': 0.0033333333333333335,
    }]
}

Partially implements blueprint nova-api-attribute-test

Change-Id: Ia4be5e5c0175d9ba524a4e97129b6cd0f8125ad2
Verify attributes through Nova os-quota-sets API

This patch adds checks whether a response of Nova os-quota-sets
update/get/get_default/get_detail API includes the attributes
to block the backward incompatibility change in the future.

The quotas response body of v2 get/get_default API is the following:
{
    "quota_set": {
        "id": "231a1e7fd1b344f9874d0334d98b459c",
        "instances": 10,
        "cores": 20,
        "ram": 51200,
        "floating_ips": 10,
        "fixed_ips": -1,
        "metadata_items": 128,
        "injected_files": 5,
        "injected_file_content_bytes": 10240,
        "injected_file_path_bytes": 255,
        "key_pairs": 100,
        "security_groups": 10
        "security_group_rules": 20,
    }
}

The quotas response body of v2 update API is the following:
{
    "quota_set": {
        "instances": 10,
        "cores": 20,
        "ram": 51200,
        "floating_ips": 10,
        "fixed_ips": -1,
        "metadata_items": 128,
        "injected_files": 5,
        "injected_file_content_bytes": 10240,
        "injected_file_path_bytes": 255,
        "key_pairs": 100,
        "security_groups": 10
        "security_group_rules": 20,
    }
}

The quotas response body of v3 get/get default API is the following:
{
    "quota_set": {
        "id": "231a1e7fd1b344f9874d0334d98b459c",
        "instances": 10,
        "cores": 20,
        "ram": 51200,
        "floating_ips": 10,
        "fixed_ips": -1,
        "metadata_items": 128,
        "key_pairs": 100,
        "security_groups": 10
        "security_group_rules": 20,
    }
}

The quotas response body of v3 get detail API is the following:
{
    "quota_set": {
        "id": "30032cae7b864e5aad58
        "instances": {
            "reserved": 0,
            "limit": 10,
            "in_use": 0
        },
        "cores": {
            "reserved": 0,
            "limit": 20,
            "in_use": 0
        },
        "ram": {
            "reserved": 0,
            "limit": 51200,
            "in_use": 0
        },
        "floating_ips": {
            "reserved": 0,
            "limit": 10,
            "in_use": 0
        },
        "fixed_ips": {
            "reserved": 0,
            "limit": -1,
            "in_use": 0
        },
        "metadata_items": {
            "reserved": 0,
            "limit": 128,
            "in_use": 0
        },
        "key_pairs": {
            "reserved": 0,
            "limit": 100,
            "in_use": 0
        },
        "security_groups": {
            "reserved": 0,
            "limit": 10,
            "in_use": 0
        },
        "security_group_rules": {
            "reserved": 0,
            "limit": 20,
            "in_use": 0
        }
    }
}

Partially implements blueprint nova-api-attribute-test

Change-Id: I3730cde95f6ffea75e3329aed4d13d3bb6cc765b
Check for 'Generated' in SSH key comment

This test fails for https://review.openstack.org/76904 (replace spaces with
dashes in Nova generated SSH key comments) and thus prevents 76904 from
merging. This change simply checks for 'Generated' in the SSH key comment
instead of 'Generated by' which contains a problematic space.

Related-Bug: #1297685
Change-Id: I3adf4e8fa4de3bd7ad7773b345d80e671442ade6
Adds more testcases to test_telemetry_alarming_api

This submission is to add more testcases in "test_telemetry_alarming_api.py"
test_script. The test cases added are for scenarios "update-alarm",
"set-get-alarm-state", "create_delete_combination_alarm".
Removes alarm create logic from list_alarms method and uses the alarms
in setUp for verification.

Supporting functions "update_alaram", "alarm_get_state", "alarm_get_state"
are added and "put" method is modified in telemetry_client_base.py script.

Change-Id: Ie15cc48ee404db62fb9d74392ed2acc826b852d7
Implements: bp add-basic-ceilometer-tests
Remove unused arguments

The "response_checker" method has unused arguments ("url", "headers", "body").
So method does not need them and we can remove them.

Change-Id: I8b3a25513693e6a950fc44a8da5ae9549c13a23d
Add a response header validation

Nova API sometimes returns important information in a response header,
and Tempest needs to check it for keeping the backward compatibility.
This patch adds the check for "create a server snapshot" API as the
sample.

Partially implements blueprint nova-api-attribute-test

Change-Id: I2441147ee050e7b818906aaa754dcec4480d8c18
ssh_floating verify reboot

The reboot true option is usually useful for generate more ovs
events, but actually it can fail on the machine remains in SHUTOFF
state. A status check added, in order to help identify this situation.

The icmp echo test generated more logs than it required.
The intermediate pings will not be logged.

Change-Id: I524da1f2324227ef77755c070430221918e1694e
Sahara: preparations for data source tests

* create/list/get/delete methods to API client for data sources were added;
* Method "create_data_source" was added;
* tearDownClass method was expanded;

Partially implements: blueprint savanna-api-tests

Change-Id: I60d7a5553b642a2a7a03d4c6cf2befdfe2172341
Add V3 Test to get Spice & RDP console of server

This patch adds Nova V3 API Test to get the Spice and RDP
console of a server

Partially implements blueprint nova-v3-api-tests

Change-Id: I9560983c29398f9479e4139ef2f096902c3eae66
Use fixed ips for lbaas pool members

test_load_balancer_basic was using the floating ips.

Change-Id: Ia3cad4ecad7d86b28c57a377352fc1aad039418d
Closes-Bug: 1313121
Add a lacking message format letter 's'

This lacking leads an unhelpful error message.

Change-Id: I435defc871c69423ed2800e1b304cc7b27792256
Closes-Bug: #1313616
Stress runner/driver prints stats after SIGINT

Changes stress driver to print out statistics
on interruption of test execution.

Change-Id: Id96e9bdd9246f8efbaa212b3934c4acb05352842
Fix stress runner not stopping on first fail

Use of for-loop as condition if to 'break' while-loop
caused that only the 'condition' itself was stopped
from iterating, not stopping the parent loop as desired.

Change-Id: Ic1d3e55b7f4aa14132ebff2d533b5a61a8bad5ae
Define V3 Credentials

Extend the Credentials class hierarchy to include keystone v3
Credentials. Extend unit tests accordingly.
Extend credentials configurations parameters to include domain.

Partially implements: bp multi-keystone-api-version-tests

Change-Id: I4c7f21f769a20ab45c0f9672ebaa738b146cf6a0