Fixes LP Bug# 930482 - Test for security -tenanid by pass

Change-Id: Idd6b6d0b7086ddf7682cfa6ac94daf5020a9eb82
Merge "Fixes LP Bug# 930482 - Test for security -tenanid by pass"
Add a RestClient variant that sends and expects XML

For now, this leaves the base class as defaulting to JSON and
just adds RestClientXML as a variant that does XMLish things.

This adds a headers argument to get and delete so that we can
declare to the API that we speak XML.

Also, add some common XML utilities.

Change-Id: I883de8e21ae18eed929705cff49b6dfb112d20c2
Attempt to clean up any servers we left behind after a test

This lists and deletes any servers still in our list during
tearDownClass().

Change-Id: I113bee5019eb387d2ae2539e783f550d8c34ce6d
Merge "Attempt to clean up any servers we left behind after a test"
Add an xml/servers_client.py implementation

This needs to inherit some common bits from the json implementation,
but works for now.

This changes openstack.py::Manager to take an interface argument and
select the appropriate client(s) accordingly. This is ugly, and probably
not the best approach, but for the moment, it avoids the class inflation
that would result from creating subclasses at the Manager _and_ Base*Test
layers.

Change-Id: I7814054eab59bc34258fbbd1df43a4140448f448
Add XML support for test_images.py

Change-Id: I8f41396bb6d870299dba0a2a07b21748211ccb70
Add XML support for test_servers.py

Change-Id: I94f73c6592916fbf5cdf766bb7ac1874369711b9
Add XML support for test_list_server_filters.py

Change-Id: I968ad6e1e3fbea1d4bfb85e993c38a34e3509ec7
Add XML support for test_server_actions.py

Change-Id: Ie909a0462ac07a44f0ed65eb03da34aab6d55da6
Add XML support for test_create_server.py

Change-Id: Ia8690b49dafb0d5365fe70507fa09d78ebd44947
Fix XML formatting for create server personality.

This fixes generating the XML of personality attribute in create_server()

Change-Id: I375304964f564866447d32f3560985c434378c4d
Signed-off-by: Matthew Treinish <treinish@linux.vnet.ibm.com>
Add XML support to the limits client.

Change-Id: Ib3cecacbc722721ea04e6506969d159cd1269cf0
Signed-off-by: Matthew Treinish <treinish@linux.vnet.ibm.com>
Add XML support to the server personality test.

Change-Id: I19683261c177d5ed31fd72ddfb7644ec8cdf8609
Signed-off-by: Matthew Treinish <treinish@linux.vnet.ibm.com>
Resolves lp#1042541

* Skipping flavor admin tests until 1042539 is resolved

Change-Id: Ice2b9db395be5bcd65093ddfd4ec4d7c55d5e660
Add xml support to keypairs_client and its tests

Change-Id: I991ce5c386ce1c63610d0836b6ea05b60dfb8757
Merge "Fix XML formatting for create server personality."
Prevent stale isolated tenants from blocking test runs

Especially while developing tests, it's easy to kill a test before
it has a chance to clean up the tenants it has created for isolation.
Since the database has a lot of consistency requirements, it's non-
trivial to go clean these up, and (for me) re-running stack.sh is
the quickest path to a running system again (which is annoying).

This patch adds a configuration option that can allow the tenant
creation to avoid the failure by re-using the existing tenant/user
already present. I think it's safe to have this enabled by default
since it only happens if tenant isolation is enabled.

Also, this augments the error message for the condition (in the case
that the configuration option is disabled) to better indicate
what is happening.

Change-Id: I97052b827ca1b2076ac67025539339b39d3260ae
Add XML support for test_security_groups.py

Change-Id: If801ae235b72026e7ecb092d185c95b0aeef4d0b
Add XML support for test_attach_volume

Change-Id: Id2e02522f7f4ee799fbbc70549b226695fa95a18