Images not deleted after failure in test_Images.py tests
Bug #938923 reported by
Donald Ngo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Invalid
|
Medium
|
Donald Ngo |
Bug Description
There is no teardown method in the ImageTest class to cleanup images and servers that were created. These images and servers are left orphaned after a failure in the test.
Changed in tempest: | |
assignee: | nobody → Donald Ngo (donald-ngo) |
status: | Triaged → In Progress |
Changed in tempest: | |
status: | In Progress → Invalid |
To post a comment you must log in.
There is no tearDownClass because there are no images created in the setUpClass method. Test methods that create images must clean up after themselves.
Each test method (such as test_create_ delete_ image() should be changed to use the following strategy:
def test_blah(self):
try:
# Create servers and/or images
# Test what needs to be tested
finally:
# Delete servers and images as needed