network: add metering api operations

This patch aims to bring new tests related to Neutron Metering plugin.

They cover:
- List / Create / Show / Delete metering labels
- List / Create / Show / Delete metering label rules

Note: Update operation is not covered by the API.
Also add basic operations in network admin client.

Change-Id: Ieaf9a5dcd52f54e015e7565f50a3ea81569c483a
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
enable volume list tests for cinder v2 - part2

this ports test_volumes_list into cinder v2 api,
and also ports corresponding client.

1. changes of the response data of list and list details in v2:
(their items are same in v1)
- list view includes items:
id, name, link
- list details view includes items:
id, status, size, availability_zone,created_at, attachments, name,
description, volume_type, snapshot_id, source_volid, metadata,
links, user_id, bootable

2. use 'name' instead of 'display_name'

v2 commit id:
0c507aa6d08a9471bf896961cc99d40f337f1e4d
484fb9e1c748e718349e451e80a0e025ed007b1d

Change-Id: I19cf00270f0ca55770188c6c71c02e13c5bd82f6
Implements: blueprint cinder-v2-api-tests
Remove tests for Nova V3 API os-instance-usage-audit-log

Removes the positive and negative tests for the Nova V3 API
extension os-instance-usage-audit-log as the extension will not
be supported in the final Nova V3 API release.

See mailing list thread here:

http://lists.openstack.org/pipermail/openstack-dev/2014-February/026670.html

and the Nova corresponding patch:

https://review.openstack.org/#/c/72197/

Change-Id: Iea00cdbfc32d63f5fa08ac4ed9843739e3ae12ce
Remove tests for Nova V3 API os-simple-tenant-usage

Removes the positive and negative tests for the Nova V3 API
extension os-simple-tenant-usage as the extension will not
be supported in the final Nova V3 API release.

See mailing list thread here:

http://lists.openstack.org/pipermail/openstack-dev/2014-February/026670.html

and the Nova corresponding patch:

https://review.openstack.org/#/c/72058/

Change-Id: Ia046f1d28dbf97804fc472ae2ec0f77e6e50335d
Test updating port's admin_state_up

This adds updating the port's admin_state_up
from the default 'True' to 'False' into testcase
test_create_update_delete_port.

Change-Id: Ibd11cf7490cf298d60f89124e52d2eace35905a2
Add test case for snapshot-create with in-use volume

Tempest did not contain test case for snapshot-create with in-use
volume, so add it

Change-Id: I1ef608778be614500e1eefde8ad3ed212914da04
Ensure that bug number is actually a number for skip_because

This commit adds a regex check that bugs numbers passed into the
skip_because decorator are actually numbers. Previously any string
could be passed into the decorator which defeats the whole purpose of
the decorator.

Change-Id: I437fd8fab8721711530249894fae2c3c13683b4d
port nova v2 images related tests into nova v3 part2

In nova v3 api, there is no image api. So in nova v3
api tests, we just keep these tests related to create_image
action of the server api. Other tests are moved into glance
testing, also some tests is no longer available, as some
actions are just nova v2 api for glance proxy behaviour.
eg: update the specified item of image properties. In glance
we can only  update all values of image properties.

Partially implements blueprint nova-v3-api-tests

Change-Id: I89cec53f30f607b39ff2b4762d35c0f307cc634b
Remove using of deprecated self.headers (part1)

Attr self.headers in rest client is deprecated now, and
should be removed from usage by service clients.

This patch removes first bunch of attrs.
Second and last part is intended to be in another patch,
with removing from all other service clients
and from rest client itself.

Change-Id: I28981738a9e7f39343cf530c2642315f0a5b22f2
Partially-implements: bp refactor-rest-client
Merge "enable volume list tests for cinder v2 - part2"
Merge "Remove tests for Nova V3 API os-simple-tenant-usage"
Merge "Remove using of deprecated self.headers (part1)"
Merge "Add test case for snapshot-create with in-use volume"
Merge "Remove tests for Nova V3 API os-instance-usage-audit-log"
Merge "Test updating port's admin_state_up"
Merge "Ensure that bug number is actually a number for skip_because"
Merge "port nova v2 images related tests into nova v3 part2"
Merge "network: add metering api operations"
Merge branch 'master' of https://github.com/openstack/tempest