openstack-python-openstackc.../openstackclient/tests/functional/compute/v2
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
..
__init__.py move all functional tests to tests module 2016-09-09 03:29:47 +00:00
common.py volume functest: ensure snapshots deleted when volume delete 2017-06-06 01:14:20 +00:00
test_agent.py Fix functional tests for py3 2019-10-31 00:17:35 +00:00
test_aggregate.py Refactor AggregateTests 2019-11-05 21:32:15 +00:00
test_flavor.py Replace assertEqual(True/False, expr) with assertTrue/assertFalse 2018-11-14 14:50:05 +08:00
test_keypair.py Fix functional tests for py3 2019-10-31 00:17:35 +00:00
test_server.py Add openstack server create --boot-from-volume option 2019-08-09 16:44:46 +00:00
test_server_event.py Refactor ServerTests and ServerEventTests functional test classes 2017-03-10 14:50:21 +08:00
test_server_group.py Functional test for server group 2016-11-24 22:50:44 +08:00