This is a precursor to having them run under check and gate.
This also fixes a single test which fails on PyPy, the test failes at
because it assumes a ``dict`` has a particular order for its keys when
it is printed out, on PyPy dicts have a different order sometimes, the
exact ordering is not a guarnteed property of Python.
Change-Id: Ie86726a0221e5e9aa68f7303d8ca8c7acd878f65
The need was introduced with the renaming of field logical_resource_id
to resource_name, so let heatclient display the good one for the two
Heat versions.
Fixes bug #1216903
Change-Id: I3e86f482a1b814a27b15be3c102727c44153221f
In order to specify region_name, we let client send
the OS_REGION_NAME in header file
Fixes bug 1213291
Change-Id: Ie44f700ca7e412c2504b6b8faac3fd65d4fd744b
Even if we got OS_REGION_NAME on CLI, the value is not used.
In this commit, we apply OS_REGION_NAME for endpoint
selection.
Fixes bug 1215588
Change-Id: Ib2e2f655282b2730a9a3b7337e56993253972ce1
All Unauthorized exceptions are currently trapped and
the following message is printed:
Invalid OpenStack Identity credentials.
This is unhelpful now that heat-api is providing structured
errors with (sometimes) helpful context for authorization failures.
This change removes this error trapping and prints the intended
error message.
Change-Id: Ibd943deb1f365e5f212225be1e675beb14accf97
The order is correct already if python heat client does not recorder
it. Add option to make print_list not to reorder possible, and call it
in do_event_list.
Change-Id: I3f0990aff27df39371c583d5aae3edd106542ad1
Fixes: bug #1209506
Setup the command line options and calls for generating
a template from an installed resource.
blueprint resource-template
Change-Id: If533bd90b1ec73bbe2603b55a0a7621879d355ec
Pagination on the server has not yet been implemented, however
the client assumes it is, causing infinite recursion when paginate
is called.
With this change, no pagination is attempted unless page_size is
specified. However the 'limit' parameter is still honored, so it
is still possible to cap the total number of results returned.
heatclient users should not set page_size until pagination has been
implemented on the server. The stack list in Horizon currently
does not attempt to paginate, so is not affected.
Fixes: bug #1207839
Change-Id: I4087d3a8af48206d6ebe3edc441469464e4a401a
The current instance delete method assumes that a Stack
instance can be passed to the manager delete method, however
the manager delete method only accepts a stack identifier.
Change-Id: I87c30be1ea43695b7e13953531ea282fd8d386f8
This splits the stack_status back to an action and status,
as it is represented internally in heat-engine.
It assumes there will not be an action which contains an _.
This change is needed for code (such as tempest) which assumes a
convention of all openstack client resources having a status property.
Change-Id: If00db5508bf8469b1106cac20b8fc10f7e1a854d
With this fix, heatclient will display a clear error message when
encounter an server-side error. Additionally, the corresponding
traceback will be displayed when "--verbose" is set.
Change-Id: I99b828465f61478a3c63fcf549d044a62523be1f
Credentials will be set instead of a token for all invocations where
--os-no-client-auth is specified.
Change-Id: I35a81a9518833ce9758228266deb36c8073f9fb8
Determine hot template and display yaml format for it, display json
format for others.
Change-Id: Ie8d72c222a992ee0048897d040e8bc88fcf51760
Fixes: bug #1201482
Make format_parameters() raise CommandError with
the same message. Rather than raise MalformedRequestBody
and then catch that and raise CommandError. This just
simplifies things.
Change-Id: Ic05af32dd916e953e6b162daccc4525cb4734a46
All heat operations can be performed with only a token.
User credentials are required for stack create/update as they are
stored for later stack operations.
This change prevents credentials unnecessarily being sent over the wire.
Change-Id: I5ad18067c5db8ada9994d131e98f27af70a7ca06
This change has no effect if the resource details contains
no requires key (such as for older API versions).
Change-Id: I5bce5cf6a7c7cd3f531453cd126fb7b7b3e227ef
This class doesn't expect this argument. Passing the argument causes the
client to break on all HTTPS connections.
Change-Id: I56f02b3a8943ff9a8b9e7855796fd527683514f3
Fixes: bug #1190111
Per (propsed) Hacking H203 check, use the
non-deprecated except x as y: construct which
works with any Python version >= 2.6
Change-Id: Ibe58125719ba7fccf68974555a4b93f9dcdad6ae
Make text split only on the first "=" element, this will
allow for values to have multiple "=" in the string.
Also, ensure that key = value pair is honored in parameters,
exit otherwise with error message. Tests included.
Fixes bug #1183842
Change-Id: Ic8897405c61dee49f5927b53f055b0d0686eea7d
This is in prep for testr changes, but also cleans up
several things in the tests where state could leak.
Change-Id: I7f53dcee2f1fcffb622dd475ea8cf433ce43dbb2