Add cleanUp method into integration tests

Registered by Martin Pavlásek

I think that can be useful to have cleanUp method in BaseTestCase [1]. Purpose of this method is remove all allocated resources (created users, images, etc.) at the end of scenario - like it's done in Tempest [2].

What do you think that is a good idea/suitable to implement cleanup method into integration tests?

examle (pseudopython):
def test_create_update_user(self):
    goto_admin_panel()

    username = random_str('user-')

    create_user(username)
    self.cleanUp(delete_user, username)

    update_user(username)

[1] https://github.com/openstack/horizon/blob/master/openstack_dashboard/test/integration_tests/helpers.py
[2] http://docs.openstack.org/developer/tempest/HACKING.html#test-fixtures-and-resources

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Martin Pavlásek
Direction:
Needs approval
Assignee:
Martin Pavlásek
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
David Lyle

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.