LBaaS V2 resource data format change

Adding code in LBaaS V2 driver to support resource data format
change. LBaas V2 driver should work according to resource data
sent by orchestration side.

Change-Id: Ib94bb125445a4dee597ca196ab74b8c5d6f7c848
This commit is contained in:
Ashutosh Mishra
2016-12-13 12:19:47 +05:30
parent be792291c1
commit 952a52b4dd
4 changed files with 97 additions and 49 deletions

View File

@@ -468,7 +468,8 @@ class TestHeatDriver(unittest.TestCase):
self.heat_driver_obj.keystoneclient.get_admin_token = (
mock.MagicMock(return_value='token'))
self.heat_driver_obj._create_policy_target_for_vip(
auth_token, provider_tenant_id, provider)
auth_token, provider_tenant_id, provider,
'LOADBALANCER')
pools.assert_called_once_with(
subnet_id=[subnets.return_value['subnets'][0]['id']])