diff options
| author | Eric Fried <openstack@fried.cc> | 2019-11-05 13:26:19 -0600 |
|---|---|---|
| committer | Eric Fried <openstack@fried.cc> | 2019-11-05 21:32:15 +0000 |
| commit | 3b409e4d0e136380042a59a421ec4c4dc5b95c18 (patch) | |
| tree | 8fd2af5c84f269ddffdfac03263b0c24634fe562 /openstackclient/common | |
| parent | d17a1c8039807cdac29e77eb5f0724d181bdd831 (diff) | |
| download | python-openstackclient-3b409e4d0e136380042a59a421ec4c4dc5b95c18.tar.gz | |
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
Diffstat (limited to 'openstackclient/common')
0 files changed, 0 insertions, 0 deletions
