test_share_manage.ManageNFSShareTest might leave undeleted shares on
backend if some tests are not run. This happens because the shares are
created and unmanaged on resource_setup and are expected to be managed
and deleted on the tests. If the tests don't run, the cleanup will not
delete the shares because they are already unmanaged, thus leaving them
created on the backend.
This patch fixes this issue by moving the share creation and unmanage
operations from resource_setup to the tests themselves.
Reviewed: https:/ /review. openstack. org/394388 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=1eadb5a51cd 67610fab9bc5a82 b2e6cbd1cbd12c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 1eadb5a51cd6761 0fab9bc5a82b2e6 cbd1cbd12c
Author: tpsilva <email address hidden>
Date: Mon Nov 7 10:03:39 2016 -0200
Fix share manage tempest test cleanup
test_ share_manage. ManageNFSShareT est might leave undeleted shares on
backend if some tests are not run. This happens because the shares are
created and unmanaged on resource_setup and are expected to be managed
and deleted on the tests. If the tests don't run, the cleanup will not
delete the shares because they are already unmanaged, thus leaving them
created on the backend.
This patch fixes this issue by moving the share creation and unmanage
operations from resource_setup to the tests themselves.
Closes-bug: #1639848
Change-Id: I2d1790f0a323fd c7b11805842985c a5907dd23c3