def test_delete_resource_pool_appear_after_refresh(setup_provider, provider): """ Tests delete pool Metadata: test_flag: delete_object """ resourcepool_name = provider.data['remove_test']['resource_pool'] test_resourcepool = resource_pool.ResourcePool(name=resourcepool_name) test_resourcepool.delete(cancel=False, wait=True) provider.refresh_provider_relationships() test_resourcepool.wait_for_exists()
def test_delete_resource_pool(setup_provider, provider, remove_test): """ Tests delete pool Metadata: test_flag: delete_object """ resourcepool_name = remove_test['resource_pool'] test_resourcepool = resource_pool.ResourcePool(name=resourcepool_name) test_resourcepool.delete(cancel=False) test_resourcepool.wait_for_delete() provider.refresh_provider_relationships() test_resourcepool.wait_for_appear()