openstack-python-openstackc.../openstackclient
Eric Fried 3b409e4d0e Refactor AggregateTests
While investigating the referenced story/bug I noticed that
wait_for_status in
openstackclient.tests.functional.compute.v2.test_aggregate.AggregateTests
was doing a lot more than it should ever need to (it probably got copied
in from somewhere). The two places calling it only need to a) check the
output of `openstack aggregate show`, and b) try once -- since they just
got done creating the aggregate synchronously, there should never be a
need to delay/retry. So this commit removes the helper method and just
inlines the check.

At the same time, the addCleanup(aggregate delete) directives are moved
above their respective creates. This is a defensive best practice which
makes sure cleanup happens even if something fails very soon after the
actual back-end create (as was in fact the case with the referenced
bug/story).

It is unknown whether this will impact the referenced bug.

Change-Id: I0d7432f13642fbccd5ca79da9c76adfcbabb5fa9
Story: 2006811
Related-Bug: #1851391
2019-11-05 21:32:15 +00:00
..
api Remove token_endpoint auth type 2019-08-27 11:08:50 -05:00
common Merge "Use SDK to get compute API extensions" 2019-11-04 22:09:23 +00:00
compute Merge "Add 'openstack server migrate (confirm|revert)' commands" 2019-10-03 11:19:48 +00:00
identity neutron: autogenerate docs 2019-11-01 14:24:30 -05:00
image Use cliff formattable columns in image commands 2019-06-22 13:36:46 -05:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network neutron: autogenerate docs 2019-11-01 14:24:30 -05:00
object Use cliff formattable columns in object storage commands 2019-06-22 18:44:27 +00:00
tests Refactor AggregateTests 2019-11-05 21:32:15 +00:00
volume Default to Cinder v3 API 2019-09-09 09:35:44 -05:00
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py Clean up app initialization and config 2019-09-09 14:01:57 +00:00