Browse Source

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>
changes/84/579784/5
songbaisen 3 years ago
parent
commit
e41436c9ee
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      tricircle/tests/unit/network/test_central_plugin.py

+ 4
- 2
tricircle/tests/unit/network/test_central_plugin.py View File

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


Loading…
Cancel
Save