Extend compute-manage cli tests

* Test DB commands
* Make sure debug and verbose flags don't cause an error

Change-Id: I56e9dbae59fd141a985d0b64ac07b1da508f9fdb
Add service cleanup handler for test_list_services.

It is not necessary to check the status of deletes again since that is
checked in the other test.

Fixes bug #1156640.

Change-Id: Id97390c69133e60cab7d93924e9913624a7449ad
Updating the try/except blocks to assertRaises.

Tests Modified:
test_get_metadata_of_alt_account_image_fails
test_delete_metadata_of_alt_account_server_fails
test_delete_metadata_of_alt_account_image_fails

Modifications:
As per new Tempest style guidelines, convert "try/expect/else"
statements into "assertRaises".

In order to ensure that other tests remain unaffected
because of this change, replace "finally" with "addCleanup".

Parially implements Blueprint update-expected-exception-tests.

Change-Id: Iac2a911ee6f812e18f41e66ac6d7fd648ce2f1fa
add test for creating a floating IP specifying an non-existent pool

fix bug 1144353

In the bug description, the tests for Creating a floating IP specifying
the default pool and listing existing floating IPs (with an user
authorized by policy.json) have been implemented in other tests.

Change-Id: Ic77fbc2d508eeff23ca0d757ebe8d806fe06be86
Adds XML support to test_live_block_migration.py

Added "live_migrate_server" method to servers_client.py
of XMl interface and XML interface Support functionality to
test_live_block_migration.py, so as to run the testscript
using both JSON and XML interfaces.

Change-Id: I75098d59fa93a6f0ca83cdeb6cb2b0620beefe73
Implements: blueprint add-xml-support
Remove skips in volume types tests.

This commit removes the skips from test_volume_types_extra_specs_negative
for bugs that have been marked as fixed. However, the XML client class was
not written to accept the bad input for the negative tests. So the XML
client is modified to accept this input. Additionally, the skip in
test_volume_types_negative.py was removed as well.

Change-Id: I45090c29a4115c205b656777e57a940a7de7dbf5
Merge "Updating the try/except blocks to assertRaises."
Merge "Add service cleanup handler for test_list_services."
correct the reduplicate tests for list_severs_with_detail({'limit':1})

Currently, the test test_list_servers_detailed_filter_by_limit is the
same as test_list_servers_detailed_limit_results, so change it to test
list_servers not list_servers_with_detail.

Change-Id: I879dfe79b3dcb99b9e1c9f9cc5413cee4349b73a
Refactor of test_network_basic_ops -prep new tests

    This is the preparatory work that enables new tests to be added which
    can re-use code currently in test_network_basic_ops. It pulls out a
    number of methods to a common library.

    Implements: blueprint quantum-quota-basic-tests quota tests
    Change-Id: I57336acd038cb70b6e9d8025b9c9e01d72475768

Change-Id: I6b916d4d15f4af05882a0ff0f384907d5bf3360c
Merge "Extend compute-manage cli tests"
Normalize skip bug format.

This commit changes all the bug formats in skip decorators to conform
to a single format:

Bug #\d+

Change-Id: Ifd1927837d433401c9b8cb80ca341f2e8d1f31d8
Update hacking.py for @testtools.skip() formatting.

This commit updates the hacking rules to add a strict format for bug
skips. Previously, there was no defined rules for skip formatting
which caused a number of test skips to be added without consistent
formatting. These skips then failed to get picked up by
tools/skip_tracker.py. This commit adds a new hacking test to ensure
that any skips added conform to a format that the skip_tracker will pick
up. HACKING.rst was also updated to explain the new rules being enforced.

Change-Id: I95f3ec7de2ee5e2039d53ad9565b5cec936a7672
Merge "Adds XML support to test_live_block_migration.py"
Merge "add test for creating a floating IP specifying an non-existent pool"
enable xml tests test_disk_config

This enable the xml tests in file test_disk_config.
In diskconfig extension, it require disk_config
must be 'AUTO' or 'MANUAL'. So Change it in
test_create_server.py. It can work before, because
it didn't deal with the parameter disk_config.

Partially implements bp missing-tempest-tests

Change-Id: Ib6ed2f2b4319193ba57a139083e8974deeee3f35
Add properties to CreateRegisterImagesTest case

Adding a properties dict to the test_images CreateRegisterImagesTest
test case.

Change-Id: I46eea7b6d05adc61722447787a3e01b46597c23f
Add basic read only glance cli tests

* Display help
* List images

Change-Id: Iee5a4ebf4a47e8c41545c0d404cc15eb345705da
Make volume attach and detach rescue tests negative.

Previously, test_rescued_vm_detach_volume() and
test_rescued_vm_attach_volume() were being skipped because of a bug.
However, the fix for that bug, which has been committed, was to disable
this functionality. It is now incorrect behavior to attach or detach a
volume for a instance in the rescue state. So, this commit changes the
tests to be negative and checks for the error response.

Change-Id: I80c0d33f078b0df46c2af7ea0df6b141a56dc2a2
Create and delete flavor as regular user

The new negative test cases are trying to perform compute admin
 operations as regular user.
Regular user should not be able to create or delete flavor.

Change-Id: Icec59ba9e39b8a9c9ea93e5e633989c962f42e33