Duplicated testname in scenarios will result duplicated testname
by testscenarios, they can not be sorted in PY33 env, and will
induce TypeError:
TypeError: unorderable types: StackManagerNoPaginationTest() <
StackManagerNoPaginationTest()
Close-Bug #1243096
Change-Id: I4c02c9f3868495ec4399f795e864f26afc3d26b7
In Python 3.3, hash randomization is enabled by default. It causes the
iteration order of dicts and sets to be unpredictable and differ across
Python runs.
In the test case, the fixed expecting string will not match the test
result, it is relying on the dict order.
This change transforms the input dict to a sequence of two-element list,
with fixed order, and exchange the order of "limit" and "marker" for
expecting string.
Partial implement: blueprint py33-support
Change-Id: If9c25fb0d457b31034111e7e879f1f95a576a78f
The update of urlutils is same as follows:
https://review.openstack.org/#/c/52875/
Partial implement: blueprint py33-support
Change-Id: Iac43acd616504ede12bcdb4df15e32bb636a09c6
Replace dict.iteritems() with six.iteritems(dict)
Import six for StringIO
Import urlutils for urlencode
Partial implement: blueprint py33-support
Change-Id: Ieae1299915168ef10ff54e0a9e9a346350e9d1fb
Mox3 is an unofficial port of the Google mox framework
(http://code.google.com/p/pymox/) to Python 3.
https://pypi.python.org/pypi/mox3
Align with global-requirement and update the importing clause.
Partial implement: blueprint py33-support
Change-Id: I5d46d30b72b8504977d8d1891b3b0c81714e9099
The default base_url is now derived from the location
of the environment file, so now resource registry paths
can be relative instead of absolute URLs.
This change also includes the following:
* more complete test coverage
* refactor of _process_environment_and_files and
_get_file_contents to make test coverage easier
* use the full URL instead of just the file name in the
'files' field to avoid key clashes
* make _get_file_contents less specific to the resource registry
so it can be used for other inclusion tasks
* stop calling _get_file_contents recursively so that deep URLs
do not get loaded, instead call _get_file_contents on
resource_registry and resource_registry.resources.*
Closes-Bug: #1233912
Change-Id: Ic729cbcd1711b89e91daf0d645f4f56bae2accf3
If --parameters is specified more than once it is assumed
that each one contains only one parameter key=value.
This means semicolons are ignored if there is more than one -P
specified.
This should be fully backwared compatible, a single -P will
be assumed to be semicolon delimited.
Change-Id: Ic202ff3e0596b786cd5b07c53509f97a95d41585
Closes-Bug: #1224825
Closes-Bug: #1229030
The identifier property formats the stack name and ID for
REST API request paths.
This has the following consequences for each action method:
- get, same behaviour but using the identifier property
- delete, using the full identifier avoids one http redirect
- update, this method was non-functional before this change, and is
now fixed
Change-Id: Ib2b12826243e25772acccb8ca56039e54d3857d5
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
A project-wide concensus is forming that mox should be phased
out and mock should be encouraged for writing new tests.
This change allow mock to be used for new tests.
Change-Id: I3cdf77bbeadd419b811bddcc31f048c1c6ec38bb
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