Convert aggregates testing to use httpretty

This is the first in the series and so contains some setup classes. In
general the original data will not be able to be removed from fakes
until the very end because testing shell depends on a lot of it.

Change-Id: I499fe968923b9452f60c1b2ca50d5749e89827de
blueprint: httpretty-testing
Updated from global requirements

Change-Id: I85276146bd621f905cf57388147d410bd3c56986
Fix mac address and task_state in baremetal-node-list

Currently nova baremetal-node-list doesn't display the
list of MAC addresses for each node because this is part
of the interfaces object, and not a top level field.

It also doesn't display the task state, which is very useful
when trying to find which nodes have failed to build.

This change fixes both issues

Change-Id: If7a3bcab1220be400519ac811bd727ca8ff85827
Closes-Bug: #1308147
Fix the unlimited length of console-log

Since the commit Idf88a238d1b0e545ebab5be872269b1b1030cc56 of Nova,
the unlimited length has been changed to -1 for API consistency.

This patch applies it to novaclient.

Change-Id: I581609a55f081184ad9d791ba38d78fa30d298a6
Closes-Bug: #1295426
Fix wrong fake return values for Nova V3 client tests

The response format for the hypervisor servers list action in
Nova API V3 has changed. This patch corrects the fake return
values used for client testing.

Change-Id: I645607b5adcfe3fa1c1d1efc071c87d2bb2b37b5
Closes-Bug: #1309542
Fix the incorrect return messages in keypair show and delete

When we delete or show a keypair, if the keypair doesn't exist,
we'll get "The resource could not be found.(HTTP 404)", this
patch will change it to "ERROR: No keypair with a name or ID of
'keypair_name' exists."

Change-Id: Ifebd8d2213c327f3d3fdd672207170aebbe1bb40
Closes-Bug: #1307338
Updated from global requirements

Change-Id: I1f5be823bd33ff05b055c58eac5a1f7706429453
Merge "Fix the unlimited length of console-log"
Merge "Updated from global requirements"
Merge "Fix wrong fake return values for Nova V3 client tests"
Merge "Fix mac address and task_state in baremetal-node-list"
Add unit test for keypair's api

Add unit test for keypair's api in test_shell.py, just for v1.1,
not for v3, because of v3 inherits from v1.1.

Change-Id: Ibbad199449431b328091ef4b5e4b955ffcddc303
Closes-Bug: #1309986
Fixed a typo in a comment

Found using: https://github.com/intgr/topy

Change-Id: I1fba0b8c8e978f286905eeb96ae0a2e47762f413
Fix for "nova help list" command

The output of "nova help list" shows several argument as "Admin Only",
when they are not.
This patch modifies help notes for --ip, --ip6 and --instance-name,
which can be used by regular users.

DocImpact

Change-Id: Iac541ac8e698a27348b437ad53910bd09ea7f257
Closes-Bug: #1295126
Synced jsonutils from oslo-incubator

The sync includes change that drastically enhances performance on Python
2.6 with fresh simplejson library installed.

The latest commit in oslo-incubator:
- 732bdb6297eb9de81667f7713ebcb1ccc2ee45a7

Change-Id: Ib3dc0b713ed90396919feba018772243b3b9c90f
Closes-Bug: 1314129
Fix documentation for config_drive boot parameter

The "config_drive" boot parameter only accepts a Boolean parameter, but
the documentation says otherwise.

Change-Id: I7cbf5aefbd006d8b5425cd8592bacb5d8435b3c9
Closes-Bug: #1314395
Updated from global requirements

Change-Id: I2f3f0b9f09e458eec4eb1e7a3b83e49043a8cb11
Merge "Synced jsonutils from oslo-incubator"
Merge "Fix for "nova help list" command"
Merge "Fix documentation for config_drive boot parameter"