@@ -63,9 +63,11 @@ class TestIpamSubnetPool(UseIpamMixin, test_db_base.TestSubnetPoolsV2):
63
63
64
64
65
65
class TestDbBasePluginIpam (test_db_base .NeutronDbPluginV2TestCase ):
66
- def setUp (self ):
66
+ def setUp (self , plugin = None ):
67
+ if not plugin :
68
+ plugin = 'neutron.tests.unit.db.test_ipam_backend_mixin.TestPlugin'
69
+ super (TestDbBasePluginIpam , self ).setUp (plugin = plugin )
67
70
cfg .CONF .set_override ("ipam_driver" , 'internal' )
68
- super (TestDbBasePluginIpam , self ).setUp ()
69
71
self .tenant_id = uuidutils .generate_uuid ()
70
72
self .subnet_id = uuidutils .generate_uuid ()
71
73
self .admin_context = ncontext .get_admin_context ()
@@ -413,7 +415,7 @@ def test_create_ipv6_pd_subnet_over_ipam(self, pool_mock):
413
415
subnetpool_id = constants .IPV6_PD_POOL_ID ,
414
416
ipv6_ra_mode = constants .IPV6_SLAAC ,
415
417
ipv6_address_mode = constants .IPV6_SLAAC ):
416
- self .assertEqual (2 , pool_mock .get_instance .call_count )
418
+ self .assertEqual (3 , pool_mock .get_instance .call_count )
417
419
self .assertTrue (mocks ['driver' ].allocate_subnet .called )
418
420
request = mocks ['driver' ].allocate_subnet .call_args [0 ][0 ]
419
421
self .assertIsInstance (request , ipam_req .SpecificSubnetRequest )
0 commit comments