Improve testing of driver failure during implicit resource creation

Bug #1432791 reported by Robert Kukura
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Group Based Policy
Confirmed
Low
Unassigned

Bug Description

The gbpservice.neutron.tests.unit.services.grouppolicy.test_resource_mapping.TestL3Policy.test_implicit_creation_failure testcase is intended to verify that if a driver fails during implicit creation of a resource needed for another resource, the proper exception is returned from the operation that triggered implicit resouce creation, and that resource needing the implicit resource is not created. This test currently depends on the resoure_mapping driver disallowing overlapping IP pools within a tenant, which may eventually be relaxed.

We should instead have this testcase patch the RMD's create_l3_policy_postcommit to raise an exception. This approach should also be applied to other resource types that can trigger implicit resource creation, and could should be moved to the implicit_policy driver's test cases where it belongs rather than depending on the resource_mapping driver.

Changed in group-based-policy:
status: New → Confirmed
milestone: none → next
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.