Fix cleanup order for tempest test

One of tests creates share network and then share based on it. Both have
default values for cleanup order - either in after test method or after whole
test suite. Default value for share is deletion afer test suite, but for
share network is after test method. That caused errors for clean up.

Change-Id: I5a33bc5adc3a9aa84f9ce0dd6a5df204c5bb7452
This commit is contained in:
vponomaryov 2015-03-13 19:17:36 +02:00
parent aba0786f46
commit 0bdf502957

View File

@ -122,10 +122,12 @@ class ShareNetworksNegativeTest(base.BaseSharesTest):
__, new_sn = self.create_share_network(
neutron_net_id=share_network['neutron_net_id'],
neutron_subnet_id=share_network['neutron_subnet_id'],
nova_net_id=share_network['nova_net_id'])
nova_net_id=share_network['nova_net_id'],
cleanup_in_class=False)
# Create share with share network
__, share = self.create_share(share_network_id=new_sn['id'])
__, share = self.create_share(
share_network_id=new_sn['id'], cleanup_in_class=False)
# Try delete share network
self.assertRaises(