python-openstackclient/openstackclient/tests/functional
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
..
common Remove token_endpoint auth type 2019-08-27 11:08:50 -05:00
compute Refactor AggregateTests 2019-11-05 21:32:15 +00:00
examples move all functional tests to tests module 2016-09-09 03:29:47 +00:00
identity Fix functional tests for py3 2019-10-31 00:17:35 +00:00
image Use cliff formattable columns in image commands 2019-06-22 13:36:46 -05:00
network Remove races in floating ip functional tests 2019-08-31 09:03:46 -05:00
object Fix functional tests for py3 2019-10-31 00:17:35 +00:00
volume Merge "Use cliff formattable columns in volume v2 commands" 2019-06-23 00:45:37 +00:00
__init__.py move all functional tests to tests module 2016-09-09 03:29:47 +00:00
base.py Fix functional.base.TestCase.openstack() to optionally omit --os-auth-type 2019-08-22 11:05:09 -05:00