Fix the unit test error

1. What is the problem?

   the unit test can not pass.

2. What is the solution to the problem?

   add the segmentation_id to the subnet.

3. What the features to be implemented in the Tricircle to realize the solution?

   no

Signed-off-by: song baisen <songbaisen@szzt.com.cn>

Change-Id: I023a46af393b94cc3c4f2ec9f5636e740fa12224
Co-Authored-By: tangzhuo <ztang@hnu.edu.cn>, zhiyuan_cai <luckyvega.g@gmail.com>
This commit is contained in:
songbaisen 2018-07-03 14:58:49 +08:00
parent c889fd525e
commit e41436c9ee
1 changed files with 4 additions and 2 deletions

View File

@ -1632,7 +1632,8 @@ class PluginTest(unittest.TestCase,
'project_id': project_id, 'project_id': project_id,
'description': 'description', 'description': 'description',
'host_routes': [], 'host_routes': [],
'dns_nameservers': [] 'dns_nameservers': [],
'segment_id': 'b85fd910-e483-4ef1-bdf5-b0f747d0b0d5'
} }
TOP_NETS.append(test_utils.DotDict(t_net)) TOP_NETS.append(test_utils.DotDict(t_net))
TOP_SUBNETS.append(test_utils.DotDict(t_subnet)) TOP_SUBNETS.append(test_utils.DotDict(t_subnet))
@ -1671,7 +1672,8 @@ class PluginTest(unittest.TestCase,
'project_id': project_id, 'project_id': project_id,
'description': 'description', 'description': 'description',
'host_routes': [], 'host_routes': [],
'dns_nameservers': [] 'dns_nameservers': [],
'segment_id': 'b85fd910-e483-4ef1-bdf5-b0f747d0b0d5'
} }
if region_name == 'pod_1': if region_name == 'pod_1':
BOTTOM1_NETS.append(test_utils.DotDict(b_net)) BOTTOM1_NETS.append(test_utils.DotDict(b_net))